pub fn compile(sql: &str) -> Result<Compilation, SqlError>Expand description
Compile a whole SQL schema file into a Compilation.
Whole-file semantics: statements accumulate per table (a table’s
CREATE INDEXes fold into its single TABLE.DECLARE), then each
CREATE VIEW is checked against the table’s declared access
paths. The compiler never plans — a view whose WHERE has no
declared path errors naming the exact CREATE INDEX to add.