[][src]Module pgx::datum

Handing for easily converting Postgres Datum types into their corresponding Rust types and converting Rust types into their corresponding Postgres types

Structs

AnyArray
AnyElement
Array
ArrayIntoIterator
ArrayIterator
ArrayTypedIterator
Date
Inet
Internal
Json
JsonB
JsonString
Numeric
PgVarlena

Wraps a Postgres varlena *, presenting it as if it's a Rust type of a fixed size.

Time
TimeWithTimeZone
Timestamp
TimestampWithTimeZone

Traits

FromDatum

Convert a (pg_sys::Datum, is_null:bool, type_oid:pg_sys::Oid) tuple into a Rust type

IntoDatum

Convert a Rust type into a pg_sys::Datum.

PostgresType

A tagging trait to indicate a user type is also meant to be used by Postgres Implemented automatically by #[derive(PostgresType)]

Functions

cbor_decode
cbor_decode_into_context

Type Definitions

VariadicArray