Skip to content

name a column as a field of its table - #458

Merged
lestrrat merged 4 commits into
mainfrom
refactor-table-column-fields
Sep 19, 2026
Merged

lestrrat merged 4 commits into
mainfrom
refactor-table-column-fields

Conversation

@lestrrat

Copy link
Copy Markdown
Contributor
  • A generated table carries its own columns, so users.ID replaces binding a separate UsersColumns value first.
  • Table.Column goes away because Ref().Column already did the same thing, freeing the name for the column fields.
  • As and InSchema rebind the fields, so a column always carries the alias and namespace of the table it came from.

…-fields

# Conflicts:
#	docs/orm/04-writing.md
#	examples/rasql_delete_example_test.go
#	examples/rasql_delete_returning_example_test.go
#	examples/rasql_hook_example_test.go
#	examples/rasql_render_mutation_example_test.go
#	examples/rasql_update_example_test.go
#	examples/store/rasql.sum
#	examples/typed_patch_example_test.go
#	generate/compact_rich_test.go
#	generate/typed_mutation_sqlite_test.go
#	internal/conformance/profile_test.go
#	internal/conformance/testdata/mysql/internal/store/rasql.sum
#	internal/conformance/testdata/postgresql/internal/store/rasql.sum
#	internal/conformance/testdata/sqlite/internal/store/rasql.sum
#	internal/schemagen/table_in_schema_live_test.go
#	sample/taskboard/internal/store/docs_examples_test.go
#	sample/taskboard/internal/store/rasql.sum
#	sample/taskboard/internal/store/repository.go
#	sample/taskboard/walkthrough/05-queries.md
#	sample/taskboard/walkthrough/steps.bundle
@lestrrat
lestrrat merged commit 2e2c5ac into main Sep 19, 2026
3 checks passed
@lestrrat
lestrrat deleted the refactor-table-column-fields branch September 19, 2026 05:42
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