Expand description
The exact encoding of every journal record.
What:
The exact encoding of every schema-version-2 journal record:
compact JSON in the
incumbent’s field order,
one record per line.
Why:
writeJournalRecord writes JSON.stringify(record) and a newline;
the native wrapper
writes the same bytes for the same values so either wrapper can recover the other’s
transactions.
In TS you’d write (pseudocode):
`${JSON.stringify(record)}\n`Functions§
- conclusion_
name - What: The wire spelling of a conclusion kind. Why: Shared by encoding and its tests.
- encode_
index_ lock - What:
Encode
index-lock-<n>.jsonwith its trailing newline. Why: Seeencode_preparing. - encode_
landing - What:
Encode
landing-<n>.jsonwith its trailing newline; optional fields are omitted when absent, asJSON.stringifyomitsundefined. Why: Seeencode_preparing. - encode_
prepared - What:
Encode
prepared.jsonwith its trailing newline. Why: Seeencode_preparing. - encode_
preparing - What:
Encode
preparing.jsonwith its trailing newline. Why:writeJournalRecordwritesJSON.stringify(record)and a newline. - encode_
ref_ updated - What:
Encode
ref-updated.jsonwith its trailing newline. Why: Seeencode_preparing. - mode_
name - What: The wire spelling of a mode. Why: Shared by encoding and its tests.
- ref_
format_ name - What: The wire spelling of a ref format. Why: Shared by encoding and its tests.