Skip to content

feat: c api file decomposition#76

Merged
raphasampaio merged 9 commits intomasterfrom
rs/phase4
Feb 10, 2026
Merged

feat: c api file decomposition#76
raphasampaio merged 9 commits intomasterfrom
rs/phase4

Conversation

@raphasampaio
Copy link
Member

No description provided.

raphasampaio and others added 9 commits February 10, 2026 10:04
…m C API database.cpp

- Create database_helpers.h with shared marshaling templates and inline converters
- Extract create/update/delete element functions into database_create.cpp
- Extract all read functions and co-located free functions into database_read.cpp
- Extract relation functions into database_relations.cpp
- Trim database.cpp from 1611 to 973 lines (update/metadata/query/time_series remain for Plan 02)
- Add new source files to CMakeLists.txt quiver_c library

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ted C API files

- Create database_update.cpp with 9 update scalar/vector/set functions
- Create database_metadata.cpp with get/list metadata + co-located free functions
- Create database_query.cpp with 6 query functions + static convert_params
- Create database_time_series.cpp with all time series ops + co-located free functions
- Trim database.cpp to 157 lines (lifecycle-only: open, close, factory, describe, CSV)
- Add 4 new source files to quiver_c SHARED library in CMakeLists.txt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Document all src/c/ files in Architecture section
- Add alloc/free co-location pattern to C API Patterns section
- Update helpers reference from database.cpp to database_helpers.h

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create 04-02-SUMMARY.md with execution results
- Update STATE.md: Phase 4 complete, ready for Phase 5

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 67.19160% with 250 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.02%. Comparing base (027006d) to head (1fe23fe).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/c/database_read.cpp 59.00% 82 Missing ⚠️
src/c/database_metadata.cpp 46.15% 49 Missing ⚠️
src/c/database_update.cpp 54.54% 45 Missing ⚠️
src/c/database_query.cpp 75.49% 25 Missing ⚠️
src/c/database_time_series.cpp 82.60% 24 Missing ⚠️
src/c/database.cpp 0.00% 9 Missing ⚠️
src/c/database_create.cpp 71.42% 6 Missing ⚠️
src/c/database_relations.cpp 53.84% 6 Missing ⚠️
src/c/database_helpers.h 95.50% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

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

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

Files with missing lines Coverage Δ
src/c/database_helpers.h 95.50% <95.50%> (ø)
src/c/database_create.cpp 71.42% <71.42%> (ø)
src/c/database_relations.cpp 53.84% <53.84%> (ø)
src/c/database.cpp 54.65% <0.00%> (-11.98%) ⬇️
src/c/database_time_series.cpp 82.60% <82.60%> (ø)
src/c/database_query.cpp 75.49% <75.49%> (ø)
src/c/database_update.cpp 54.54% <54.54%> (ø)
src/c/database_metadata.cpp 46.15% <46.15%> (ø)
src/c/database_read.cpp 59.00% <59.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raphasampaio raphasampaio merged commit 066ba18 into master Feb 10, 2026
11 of 12 checks passed
@raphasampaio raphasampaio deleted the rs/phase4 branch February 10, 2026 13:54
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