Skip to main content

Module wal

Module wal 

Source
Expand description

WAL segment envelopes, records, and codecs.

Structs§

WalCommitDelta
Associates a materialized WAL delta with the semantic operation that produced it.
WalCommitPayload
Carries one accepted logical commit inside a WAL segment.
WalInlineContent
Carries bytes named by a revision delta in the same commit.
WalSegmentPayload
Carries the namespace identity, numbered range, and commits stored in one WAL object.

Enums§

WalDelta
Records one replayable metadata mutation materialized from a semantic commit operation.
WalEnvelopeKind
Identifies the durable payload family carried by a WAL envelope.

Constants§

MAX_WAL_INLINE_CONTENT_BYTES
Reader limit per inline value in Appendix A.5; writer thresholds are policy at or below this limit.
MAX_WAL_SEGMENT_BYTES
Largest decompressed WAL document allowed by Appendix A.5.
MAX_WAL_SEGMENT_INLINE_CONTENT_BYTES
Reader limit for total inline bytes in one WAL segment in Appendix A.5; writer thresholds are policy at or below this limit.
WAL_FORMAT_VERSION
Version 1: a zstd-compressed CBOR envelope document carrying the payload as an opaque CBOR byte string. payload_checksum covers exactly those bytes, and delta/precondition tags use the snake_case names the format spec fixes (“Standard mutation operations” and “Preconditions”).
WAL_SEGMENT_OVERHEAD_BYTES
Upper bound for the document and payload fields outside commit records.

Functions§

decode_wal_segment_envelope_zstd
Decodes and verifies a durable zstd-compressed WAL segment envelope.
encode_wal_segment_envelope_zstd
Encodes a WAL payload once, then checksums and compresses its durable document.

Type Aliases§

WalSegmentEnvelope
A WAL segment decoded through its checked durable codec.