Expand description
Checked query macros for compile-time SQL verification
Modules§
- query
- Types and traits for the
queryfamily of functions and macros.
Macros§
- query
- Statically checked SQL query with
println!()style syntax. - query_
as - A variant of
query!which takes a path to an explicitly defined struct as the output type. - query_
scalar - A variant of
query!which expects a single column from the query and evaluates to an instance of QueryScalar.
Functions§
- query
- Execute a single SQL query as a prepared statement (transparently cached).
- query_
as - Execute a single SQL query as a prepared statement (transparently cached).
Maps rows to Rust types using
FromRow. - query_
scalar - Execute a single SQL query as a prepared statement (transparently cached) and extract the first column of each row.