Skip to main content

Module record

Module record 

Source
Expand description

Record payloads (v1/v2) and row/scalar codecs.

Structs§

Cursor
DecodedRecord

Enums§

RowValue
In-memory value for a row field (including nested structures).
ScalarValue

Constants§

OP_DELETE
OP_INSERT
OP_REPLACE
RECORD_PAYLOAD_VERSION_V2
RECORD_PAYLOAD_VERSION_V3

Functions§

decode_record_payload
Decode either v1 or v2 record payload.
decode_record_payload_any
Decode v1/v2/v3 record payload.
decode_record_payload_v1
decode_row_value
Decode a row value according to ty (record payload v2).
decode_tagged_scalar
decode_tagged_string
encode_record_payload_v1
encode_record_payload_v2
Encode a record segment body (version 2). Preferred for all new inserts (0.6+).
encode_record_payload_v3
Encode a record segment body (version 3) insert.
encode_record_payload_v2_op
Encode a record segment body (version 2) with an explicit operation code.
encode_record_payload_v3_op
Encode a record segment body (version 3) with an explicit operation code.
encode_row_value
Encode a row value according to ty (record payload v2).
encode_tagged_scalar
Encode a scalar with a leading type tag (must match ty).
non_pk_defs_in_order
Ordered non-PK field definitions (schema order, excluding primary key column).