Module types

Source

Structs§

CharLength
A length associated with Type::Char and Type::VarChar.
IntervalConstraints
Constraints associated with Type::Interval
NumericConstraints
Constraints on Type::Numeric.
TimePrecision
A precision associated with Type::Time and Type::TimeTz.
TimestampPrecision
A precision associated with Type::Timestamp and Type::TimestampTz.

Enums§

Type
The type of a Value.
TypeConversionError
An error that can occur when converting a Type to a ScalarType.
TypeFromOidError
An error that can occur when constructing a Type from an OID.

Constants§

MAX_INTERVAL_PRECISION 🔒
Mirror of PostgreSQL’s MAX_INTERVAL_PRECISION constant.
MAX_TIMESTAMP_PRECISION 🔒
Mirror of PostgreSQL’s MAX_TIMESTAMP_PRECISION constant.
MAX_TIME_PRECISION 🔒
Mirror of PostgreSQL’s MAX_TIME_PRECISION constant.
VARHDRSZ 🔒
Mirror of PostgreSQL’s VARHDRSZ constant.

Statics§

ANYCOMPATIBLELIST
An anonymous Type::List, akin to postgres_types::Type::ANYCOMPATIBLEARRAY.
ANYCOMPATIBLEMAP
An anonymous Type::Map, akin to postgres_types::Type::ANYCOMPATIBLEARRAY.
LIST
An anonymous Type::List, akin to postgres_types::Type::ANYARRAY.
MAP
An anonymous Type::Map, akin to postgres_types::Type::ANYARRAY.
MZ_ACL_ITEM
An anonymous Type::MzAclItem, akin to postgres_types::Type::TEXT.
MZ_ACL_ITEM_ARRAY
An anonymous Type::Array, akin to postgres_types::Type::TEXT_ARRAY.
MZ_TIMESTAMP
An anonymous Type::MzTimestamp, akin to postgres_types::Type::TEXT.
MZ_TIMESTAMP_ARRAY
An anonymous Type::Array, akin to postgres_types::Type::TEXT_ARRAY.
UINT2
An anonymous Type::UInt2, akin to postgres_types::Type::INT2.
UINT4
An anonymous Type::UInt4, akin to postgres_types::Type::INT4.
UINT8
An anonymous Type::UInt8, akin to postgres_types::Type::INT8.
UINT2_ARRAY
An anonymous Type::Array, akin to postgres_types::Type::INT2_ARRAY.
UINT4_ARRAY
An anonymous Type::Array, akin to postgres_types::Type::INT4_ARRAY.
UINT8_ARRAY
An anonymous Type::Array, akin to postgres_types::Type::INT8_ARRAY.

Traits§

TypeConstraint
An unpacked typmod for a Type.