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§
Enums§
Constants§
- DEFAULT_
MAX_ MESSAGE_ SIZE - Default maximum HTTP body size (64 MB).
- SEVERITY_
ERROR ErrorResponseseverity byte for non-fatal errors.- SEVERITY_
FATAL ErrorResponseseverity 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::Refvariant. - 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>.