[][src]Crate pgrepr

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.

Values are easily converted to and from repr::Datums. See, for example, the values_from_row function.

Structs

Interval

A wrapper for the repr crate's Interval type that can be serialized to and deserialized from the PostgreSQL binary format.

Jsonb

A wrapper for the repr crate's Jsonb type that can be serialized to and deserialized from the PostgreSQL binary format.

Numeric

A wrapper for the repr crate's Decimal type that can be serialized to and deserialized from the PostgreSQL binasry format.

Record

A wrapper for tuples that implements FromSql for PostgreSQL composite types.

Enums

Format

The encoding format for a Value.

Type

The type of a Value.

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.