Expand description
Conversions between Rust and SQL types.
To see how each SQL type maps to a Rust type, see the corresponding types
module for each
database:
- Postgres: postgres::types
- MySQL: mysql::types
- SQLite: sqlite::types
- MSSQL: mssql::types
Any external types that have had Type
implemented for, are re-exported in this module
for convenience as downstream users need to use a compatible version of the external crate
to take advantage of the implementation.
Modules§
- bstr
- chrono
- git2
- ipnetwork
- mac_
address - time
- uuid
- Generate and parse universally unique identifiers (UUIDs).
Structs§
- BigDecimal
- A big decimal type.
- BitVec
- The bitvector type.
- Decimal
Decimal
represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of typeDecimal
are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.- Json
- Json for json and jsonb fields
- Json
RawValue - Reference to a range of bytes encompassing a single valid JSON value in the input data.
- Uuid
- A Universally Unique Identifier (UUID).
Enums§
- Json
Value - Represents any valid JSON value.
Traits§
- Type
- Indicates that a SQL type is supported for a database.