Prostore::Adapter::Postgres::DDL
PostgreSQL DDL builders (ADR-0014). Mirrors SQLite::DDL but emits PG idiomatic syntax: GENERATED BY DEFAULT AS IDENTITY, real BOOLEAN, ALTER TABLE ADD CONSTRAINT, etc.
Instance methods
render_create_table(definition : Schema::Definition, pk_lookup : Hash(String, Array(String))) : String
SourceRender the CHECK (...) clause that constrains an enum column to
its declared member set (ADR-0016). Returns nil for non-enum fields.
When a table name is supplied the constraint is emitted in named
form so the AlterEnumMembers step can drop and re-add it by name
at migration time.