Expand description
SQLite DDL generation from the schema model. Kept dialect-shaped (every statement goes through this module) so a second backend is a new module, not a rewrite.
Functions§
- column_
sql - One column definition line.
auto_pksays whether this table uses the conventionalid: i64surrogate key (rendered inline asINTEGER PRIMARY KEY AUTOINCREMENT); composite keys are rendered as a table constraint bycreate_table_sqlinstead. - composite_
index_ name - composite_
index_ sqls CREATE [UNIQUE] INDEXstatements for every struct-level#[orm(unique(...))]/#[orm(index(...))]— composite constraints, enforced as indexes (not inline table constraints) so they can be added/dropped without a rebuild.- create_
table_ sql - index_
name - index_
sqls CREATE INDEXstatements for every#[orm(index)]column.