Expand description
Renders PostgreSQL DDL statements from the runtime schema types.
TableSql renders CREATE TABLE and the statements that go with it
(indexes, comments, row-level security, policies). The entity types also
get methods here for single statements and clauses (add_column_sql,
create_enum_sql, to_constraint_sql, …). Identifiers are
double-quoted and objects in the public schema are left unqualified;
SQL fragments (types, defaults, expressions) are written as stored.
Structs§
- Table
Sql - A table and the entities that belong to it, for rendering
CREATE TABLEand its related statements.