Crate pgrepr[−][src]
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 Format
type for details.
Value
s are easily converted to and from repr::Datum
s. See, for
example, the values_from_row
function.
Modules
format | |
oid | Reserved OIDs through Materialized. |
types | |
value |
Structs
Interval | A wrapper for the |
Jsonb | A wrapper for the |
LIST | An anonymous |
MAP | An anonymous |
Numeric | A wrapper for the |
Record | A wrapper for tuples that implements |
Enums
Format | The encoding format for a |
Type | The type of a |
Value | A PostgreSQL datum. |
Functions
null_datum | Constructs a null datum of the specified type. |
values_from_row | Converts a Materialize row into a vector of PostgreSQL values. |