Expand description
Representation of and serialization for PostgreSQL datums.
This crate exports a Value type that maps directly to a PostgreSQL
datum. These values can be serialized using either the text or binary
encoding format; see the mz_pgwire_common::Format type for details.
Values are easily converted to and from mz_repr::Datums. See, for
example, the values_from_row function.
Modules§
Structs§
- Interval
- A wrapper for the
reprcrate’sIntervaltype that can be serialized to and deserialized from the PostgreSQL binary format. - Jsonb
- A wrapper for the
reprcrate’sJsonbtype that can be serialized to and deserialized from the PostgreSQL binary format. - Numeric
- A wrapper for the
reprcrate’sDecimaltype that can be serialized to and deserialized from the PostgreSQL binary format. - Record
- A wrapper for tuples that implements
FromSqlfor PostgreSQL composite types. - UInt2
- A wrapper for 16-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
- UInt4
- A wrapper for 32-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
- UInt8
- A wrapper for 64-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
Enums§
- Type
- The type of a
Value. - Type
Conversion Error - An error that can occur when converting a
Typeto aSqlScalarType. - Type
From OidError - An error that can occur when constructing a
Typefrom an OID. - Value
- A PostgreSQL datum.
Statics§
- ANYCOMPATIBLELIST
- An anonymous
Type::List, akin topostgres_types::Type::ANYCOMPATIBLEARRAY. - ANYCOMPATIBLEMAP
- An anonymous
Type::Map, akin topostgres_types::Type::ANYCOMPATIBLEARRAY. - LIST
- An anonymous
Type::List, akin topostgres_types::Type::ANYARRAY. - MAP
- An anonymous
Type::Map, akin topostgres_types::Type::ANYARRAY.
Functions§
- values_
from_ row - Converts a Materialize row into a vector of PostgreSQL values.