Skip to content

2 schema - #3

Merged
luxas merged 3 commits into
1-initfrom
2-schema
Sep 26, 2026
Merged

luxas merged 3 commits into
1-initfrom
2-schema

Conversation

@luxas

@luxas luxas commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Stack created with GitHub Stacks CLI • Give Feedback 💬

luxas and others added 3 commits September 13, 2026 22:14
`SQLIdentifier`, the `DatabaseConfiguration` model and its builder from the
validator schema and the `@sql_*` annotations (read from the schema
fragment), Postgres DDL with deferred foreign keys, and the entity loader
with the canonical JSON encoding of sets, records and entity references.
Tests: golden DDL for the README's schemas executed on Postgres, the naming
and conflict rules, and a load round trip.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JSRPugoPu8zLyykBCW6QJh
Shorten long constraint names at a char boundary (the previous loop hung on
multibyte names), keep `__entity_id` unique when another column is the
primary key, check the entity type of references and tag values when
loading, resolve qualified common type names for attribute annotations, add
the column an undefined `@sql_entity_id_column` names, and reject
conflicting annotation and custom-config values. Tests for each.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JSRPugoPu8zLyykBCW6QJh
@luxas
luxas added this pull request to stack #8 September 13, 2026 20:58
@luxas
luxas marked this pull request as ready for review September 26, 2026 09:54
@luxas
luxas merged commit 51ca25b into main Sep 26, 2026
1 check 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