Quick start
The following program uses the default SQLite feature to create a table, insert a row, and run a typed read.
Declare a table and execute queries
What happened
orm_table!created a zero-sized table marker and typed column constructors.insert_into::<Person>()only accepts columns owned byPerson.valuechecks that each Rust value belongs to the column value family.Databasecompiles withSqliteDialectbefore calling the executor.fetch_one_asdecodes the query output type and rejects zero or multiple rows.
Inspect SQL first
Production code can compile a query before executing it:
Choose a fetch method
Continue with tables and expressions to learn column ownership, nullability, and expression composition.