Skip to main content

Module json_column

Module json_column 

Source
Expand description

Read boundary for UTF-8 JSON payload columns.

Meerkat writes JSON payload columns as BLOB (serde_json::to_vec), but SQLite column affinity does not rewrite values, so carried stores written by external hosts can hold the same UTF-8 JSON as TEXT. Both physical encodings are byte-identical UTF-8 JSON; a typed read boundary accepts either so one legacy TEXT row cannot fail every read of the table.

(Moved here from meerkat-store, which re-exports it, so every SQLite store — including ones below meerkat-store in the dependency order — stops re-solving the TEXT-vs-BLOB question.)

Structs§

JsonColumnBytes
UTF-8 JSON payload read from a SQLite column, tolerant of both the canonical BLOB encoding and legacy TEXT rows.