Skip to content

feat: standardize C API function names and error handling patterns#77

Merged
raphasampaio merged 8 commits intomasterfrom
rs/phase5
Feb 10, 2026
Merged

feat: standardize C API function names and error handling patterns#77
raphasampaio merged 8 commits intomasterfrom
rs/phase5

Conversation

@raphasampaio
Copy link
Member

No description provided.

raphasampaio and others added 8 commits February 10, 2026 12:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… convention

Rename 12 quiver_free_* to quiver_database_free_*, drop _by_id from
delete_element, and rename quiver_string_free to quiver_element_free_string.
Updates all headers, implementations, and test call sites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ning tests

- Julia/Dart FFI layers already regenerated with new function names
- Julia/Dart wrapper files already use quiver_database_free_* and quiver_element_free_string
- Fix 3 remaining C API test files with stale old function names from Plan 05-01
- All 247 C API tests and 385 C++ tests pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add extern "C" block and QUIVER_C_API to all 4 lua_runner function definitions
- Update CLAUDE.md Memory Management section with new quiver_{entity}_free_* names
- Update CLAUDE.md Metadata Types section with quiver_database_free_* names
- All 247 C API tests and 385 C++ tests pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 91.44737% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.02%. Comparing base (066ba18) to head (acd7dd9).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
bindings/dart/lib/src/database_read.dart 68.42% 6 Missing ⚠️
bindings/julia/src/database_read.jl 70.00% 6 Missing ⚠️
tests/test_c_api_database_lifecycle.cpp 83.33% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #77   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files          92       92           
  Lines       10291    10291           
  Branches      537      537           
=======================================
  Hits         8853     8853           
  Misses       1413     1413           
  Partials       25       25           
Flag Coverage Δ
cpp 89.12% <98.63%> (ø)
dart 76.99% <81.25%> (ø)
julia 70.63% <87.23%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
bindings/dart/lib/src/database_delete.dart 100.00% <100.00%> (ø)
bindings/dart/lib/src/database_metadata.dart 96.87% <100.00%> (ø)
bindings/dart/lib/src/database_query.dart 100.00% <100.00%> (ø)
bindings/dart/lib/src/database_relations.dart 96.66% <100.00%> (ø)
bindings/julia/src/c_api.jl 60.15% <100.00%> (ø)
bindings/julia/src/database_delete.jl 100.00% <100.00%> (ø)
bindings/julia/src/database_metadata.jl 96.39% <100.00%> (ø)
bindings/julia/src/database_query.jl 87.50% <100.00%> (ø)
bindings/julia/src/element.jl 78.87% <100.00%> (ø)
src/c/database_create.cpp 71.42% <100.00%> (ø)
... and 15 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@raphasampaio raphasampaio merged commit 589945b into master Feb 10, 2026
10 checks passed
@raphasampaio raphasampaio deleted the rs/phase5 branch February 10, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant