Types which represent a native SQL data type, and the conversions between them and Rust primitives. The structs in this module are only used as markers to represent a SQL type, and shouldn't be used in your structs. See the documentation for each type to see the Rust types that can be used with a corresponding SQL type. Additional types can be added by other crates.
Any backend specific types are re-exported through this module
Apps should not need to concern themselves with this module.
The big integer SQL type.
The binary SQL type.
The boolean SQL type. On SQLite this is emulated with an integer.
The date SQL type.
The double precision float SQL type.
The float SQL type.
The integer SQL type.
The interval SQL type.
The nullable SQL type. This wraps another SQL type to indicate that it can
be null. By default all values are assumed to be
The numeric SQL type.
The small integer SQL type.
The text SQL type.
The time SQL type.
The timestamp/datetime SQL type.
The tinyint SQL type. This is only available on MySQL.
Tiny enum to make the return type of
Marker trait for types which can be folded for a sum.
How to deserialize a single field of a given type. The input will always be the binary representation, not the text.
How to deserialize multiple fields, with a known type. This type is implemented for tuples of various sizes.
Marker trait for types which can be compared for ordering.
Serializes a single value to be sent to the database. The output will be included as a bind parameter, and is expected to be the binary format, not text.