Skip to content

[codex] Expose bound model metadata - #120

Merged
TheSentinel454 merged 1 commit into
masterfrom
codex/expose-bound-model-metadata
Jun 9, 2026
Merged

[codex] Expose bound model metadata#120
TheSentinel454 merged 1 commit into
masterfrom
codex/expose-bound-model-metadata

Conversation

@TheSentinel454

Copy link
Copy Markdown
Collaborator

What changed

  • Add DB.BoundModels() to expose read-only snapshots of bound model metadata for a datasource.
  • Add value-only metadata structs for bound models, mapped columns, and keys/indexes.
  • Include copied mapped column details such as AutoIncr, Nullable, and SQLType.
  • Add unit coverage for metadata contents and slice-copy behavior.

Validation

  • go test -vet=off ./... -count=1

Note: plain go test ./... -run TestDBBoundModelsReturnsReadOnlyMetadata -count=1 is blocked by an existing vet issue in builder_test.go: ExampleTable_Join refers to unknown field or method: Table.Join.

@TheSentinel454
TheSentinel454 marked this pull request as ready for review June 9, 2026 13:41
@TheSentinel454
TheSentinel454 merged commit 897e1e9 into master Jun 9, 2026
7 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