Module checked

Module checked 

Source
Expand description

Checked query macros for compile-time SQL verification

Modules§

query
Types and traits for the query family 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.