Expand description
Types and traits related to deserializing values from the database
Traits§
- FromSql
- Deserialize a single field of a given SQL type.
- From
SqlRow - Deserialize a database row into a rust data structure
- From
Static SqlRow - A helper trait to deserialize a statically sized row into a tuple
- Queryable
- Trait indicating that a record can be queried from the database.
- Queryable
ByName - Deserializes the result of a query constructed with
sql_query
. - Statically
Sized Row - A marker trait indicating that the corresponding type consumes a static at compile time known number of field
Type Aliases§
- Result
- A specialized result type representing the result of deserializing a value from the database.
Derive Macros§
- From
SqlRow - Implements
Queryable
for types that correspond to a single SQL type. The type must implementFromSql
. - Queryable
- Implements
Queryable
to load the result of statically typed queries - Queryable
ByName - Implements
QueryableByName
for untyped sql queries, such as that one generated bysql_query