Skip to content

Address composite identities as JSON objects and stacked route params - #27

Merged
rmcfadden merged 1 commit into
mainfrom
composite-crud-identities
Aug 26, 2026
Merged

rmcfadden merged 1 commit into
mainfrom
composite-crud-identities

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Bind every primary-key column in Rust repositories and routers so find/update/delete accept a scalar or a named JSON object.
  • Stack route params (/api/links/:left_id/:right_id) and emit primary_key_params from codegen.
  • Stop importing the removed unionMembers / DATASOURCE_YAML helpers from generators-common.

Depends on generators-common#21 (merged).

Test plan

  • In-memory, SQLite, and CRUD router tests for composite identities
  • Route codegen coverage for stacked primary_key_params
  • CI on this PR

Made with Cursor

Repositories and routers bind every primary-key column so /links/:left_id/:right_id finds the named record, and codegen no longer imports the removed unionMembers helper.
@rmcfadden
rmcfadden merged commit 169a4c3 into main Aug 26, 2026
0 of 2 checks passed
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