Expand description
Unframed fields of snapshot merge metadata, also used in coven’s SQLite blobs.
These are the same bytes as the corresponding snapshot fields, using the shared bounded encoder and decoder. The containing database schema or frame supplies the format version. Decoders reject trailing bytes and malformed fields; relationships between fields and writes remain merge’s responsibility.
Functions§
- decode_
change_ id - Decode exactly one original row change identity.
- decode_
change_ verdict - Decode a change’s verdict stored with its original change.
- decode_
column_ value - Decode exactly one snapshot field containing a lost cell value and its parents.
- decode_
columns - Decode exactly one snapshot field containing a removed row’s values and parents.
- decode_
dependency - Decode a dependent change’s write and failed sources.
- decode_
exclusion - Decode an excluded write’s identity and breaking version from its loss record.
- decode_
foreign_ key - Decode exactly one foreign key identity.
- decode_
loss - Decode one retained loss using the snapshot loss fields.
- decode_
merge_ row - Decode a retained merge row against its original checked write metadata.
- decode_
multiproof - Decode a retained authorship opening.
- decode_
rules - Decode exactly one snapshot field containing removal rules.
- decode_
setters - Decode exactly one snapshot field containing a removed row’s setters.
- decode_
timestamp - Decode exactly one snapshot field containing a write timestamp.
- decode_
unauthorized - Decode an unauthorized change’s write and reason.
- decode_
unique_ constraint - Decode exactly one unique constraint identity.
- decode_
write_ header - Decode a retained write header. Its checks ran when the write was accepted.
- decode_
write_ id - Decode exactly one snapshot field containing a setter or replacing write.
- encode_
change_ id - Encode an original row change’s identity using its D5 field bytes.
- encode_
change_ verdict - Encode a change’s verdict with the bytes its snapshot evidence uses.
- encode_
column_ value - Encode a lost cell value and its parents using its snapshot field bytes.
- encode_
columns - Encode a removed row’s values and parents using its snapshot field bytes.
- encode_
dependency - Encode a dependent change’s write and failed sources for its loss record.
- encode_
exclusion - Encode the excluded write and the breaking schema version that excluded it.
- encode_
foreign_ key - Encode a foreign key’s stable identity using its snapshot field bytes.
- encode_
loss - Encode one loss using the same bytes as the snapshot loss section.
- encode_
merge_ row - Encode retained generations and winning cells using the snapshot merge fields.
- encode_
multiproof - Encode a retained authorship opening using its D7 field bytes.
- encode_
rules - Encode removal rules using its snapshot field bytes.
- encode_
setters - Encode a removed row’s setters using its snapshot field bytes.
- encode_
timestamp - Encode a write timestamp using its snapshot field bytes.
- encode_
unauthorized - Encode an unauthorized change’s write and reason for its loss record.
- encode_
unique_ constraint - Encode a unique constraint’s terms and partial predicate.
- encode_
write_ frame - Encode a received row change, execution or dismissal as its D5 frame for
local retention.
Decoding with
WriteFrame::decodechecks it again before it is reapplied. - encode_
write_ header - Encode a received write header for local retention, using its D5 field bytes. The receiving transaction checks the write; a refused write commits nothing.
- encode_
write_ id - Encode a setter or replacing write using its snapshot field bytes.