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.
Value
s are easily converted to and from mz_repr::Datum
s. See, for
example, the values_from_row
function.
Modules§
Structs§
- A wrapper for the
repr
crate’sInterval
type that can be serialized to and deserialized from the PostgreSQL binary format. - A wrapper for the
repr
crate’sJsonb
type that can be serialized to and deserialized from the PostgreSQL binary format. - A wrapper for the
repr
crate’sDecimal
type that can be serialized to and deserialized from the PostgreSQL binary format. - A wrapper for tuples that implements
FromSql
for PostgreSQL composite types. - A wrapper for 16-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
- A wrapper for 32-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
- A wrapper for 64-bit unsigned integers that can be serialized to and deserialized from the PostgreSQL binary format.
Enums§
- The type of a
Value
. - An error that can occur when converting a
Type
to aScalarType
. - An error that can occur when constructing a
Type
from an OID. - A PostgreSQL datum.
Statics§
- An anonymous
Type::List
, akin topostgres_types::Type::ANYCOMPATIBLEARRAY
. - An anonymous
Type::Map
, akin topostgres_types::Type::ANYCOMPATIBLEARRAY
. - An anonymous
Type::List
, akin topostgres_types::Type::ANYARRAY
. - An anonymous
Type::Map
, akin topostgres_types::Type::ANYARRAY
.
Functions§
- Converts a Materialize row into a vector of PostgreSQL values.