Skip to main content

Module wal_format_json

Module wal_format_json 

Source
Expand description

The WAL’s on-disk JSON codec for redo property values (ADR-0078).

The tagged {"t":..., "v":...} encoding itself is canonical on Value in relate-core (Value: Serialize/Deserialize), shared with the Parquet checkpoint codec. This module is the redo-side glue: the props_json / props_from_json helpers for the one cold path that still carries a raw serde_json::Value (CatalogIndexDetail.options). The Parquet checkpoint loader decodes its properties cells through props_from_json too, so both refuse a non-object (ADR-0183).

A future binary WAL format replaces this module; redo itself is format-agnostic.

Functions§

props_from_json
Decode a tagged-JSON object into a typed property map. Strict: a non-object payload is an error, never a silently dropped value.
props_json
Tagged-JSON object form of a property map. Retained for the cold CatalogIndexDetail.options field (a raw serde_json::Value); the hot create/set paths serialize typed values directly via Value: Serialize.