Expand description
WAL segment envelopes, records, and codecs.
Structs§
- WalCommit
Delta - Associates a materialized WAL delta with the semantic operation that produced it.
- WalCommit
Payload - Carries one accepted logical commit inside a WAL segment.
- WalInline
Content - Carries bytes named by a revision delta in the same commit.
- WalSegment
Payload - 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.
- WalEnvelope
Kind - 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_checksumcovers 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§
- WalSegment
Envelope - A WAL segment decoded through its checked durable codec.