Expand description
SSG2 rows segments (SPEC.md §5.2) and the §2.4 generated-row codec they
embed. All structural decode failures are sync.invalid_request (§5.2
error-code rule); the column-table-vs-generated-schema comparison
(sync.schema_mismatch) is the receiver’s job, not the codec’s.
Structs§
- Column
- Rows
Segment - Segment
Row - One §5.2 row record: the row’s
server_version(≥ 1) plus its values.
Enums§
- Column
Type - Column type tags (§2.4) — unchanged from v1’s binary-table-v1 assignment.
- Column
Value - A decoded column value.
Jsonkeeps the raw string (round-trip fidelity).
Constants§
Functions§
- decode_
row - Decode one row per the §2.4 row codec: null bitmap (LSB-first, byte i/8), then non-null values positionally in column order.
- decode_
rows_ segment - Decode a complete SSG2 rows segment (§5.2). Structural validation only —
exactly the closed §5.2 failure list, every failure
sync.invalid_request. - encode_
row - Encode one row canonically per §2.4.
- encode_
rows_ segment - Canonically encode a rows segment (§5.2).
Type Aliases§
- Row
- One row:
columns.len()slots,None= NULL.