feat(dactyl): complete typed/NULL-safe named row projections (#25) - #41
Merged
Conversation
Close the remaining gaps from the #25 backlog after PR #31: document and test first-match duplicate-alias semantics, prove the full scalar/NULL conversion matrix through SQLite and Neon, and make borrowed-vs-owned lifetime contracts explicit via get_str_ref/get_json_ref plus try_get and is_null. Unit tests cover the pure Row API; conformance covers both adapter paths and cross-adapter parity. README and INTERFACES link the contract to dactyl #25/#2 and DecapodLabs/decapod#1111.
Merged
This was referenced Aug 2, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the remaining proof obligations for dactyl#25 after PR #31:
Rowunit tests and both adapter paths.get/ lenient getters return owned values that outlive the row;get_str_ref/get_json_refborrow for the row lifetime; rows outlive the short-lived adapter.try_get(alias ofget),is_null, clearer NULLConversionmessages.rowscontract, INTERFACES living spec; links dactyl [dactyl] Add typed and NULL-safe named row projections #25, [dactyl] Conformance harness: same universal query must round-trip identically across datastore = sqlite and datastore = neon, with optimize = true and optimize = false #2, and [dactyl] Replace every direct .decapod/data/*.db access in src/decapod/ with a dactyl::read / dactyl::write call decapod#1111.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets --features "sqlite neon" -- -D warningscargo test --all-targets --features "sqlite neon"rowsunit teststyped_projection_matrix_sqlite,typed_projection_matrix_neon,typed_projection_cross_adapter_parity)Closes #25