Skip to main content

Module protocol

Module protocol 

Source
Expand description

Shared protocol constants and types used by the storage codec, the HTTP/2 server, and the msgpack wire codec.

The actual wire encoding lives in crate::msgpack_codec; this module holds the data-type tag taxonomy (also used by the storage codec to keep a single set of type identifiers across storage and wire), the error code enum, and the column description used in query response schemas.

Structs§

ColumnDescription

Enums§

ErrorCode

Constants§

DEFAULT_MAX_MESSAGE_SIZE
Default maximum HTTP body size (64 MB).
SEVERITY_ERROR
ErrorResponse severity byte for non-fatal errors.
SEVERITY_FATAL
ErrorResponse severity byte for fatal errors.
TAG_BIG_INT
TAG_BOOLEAN
TAG_BYTES
TAG_DOUBLE
TAG_FLOAT
TAG_INSTANT
TAG_KEYWORD
TAG_LONG
TAG_MAP
TAG_REF
Reserved for a future DataType::Ref variant.
TAG_STRING
TAG_UNION
Column-description-only tag for unions of concrete types.
TAG_UNKNOWN
Column-description-only tag for indeterminate column types.
TAG_UUID
TAG_VECTOR

Functions§

data_type_tag
Returns the DataType tag byte for a value (see TAG_* constants).
micros_to_datetime
Convert microseconds since Unix epoch to a DateTime<Utc>.