Skip to main content

Module tsv

Module tsv 

Source
Expand description

TSV import/export for kit tables.

Format (matches the engine’s TSV convention): a header row of column names, tab-separated cells, NULL encoded as an empty field, and \t \n \r \\ backslash-escaped. Numbers/bools render as their literal text; arrays and objects (json/embedding/sparse columns) render as escaped JSON.

Because NULL is the empty field, an empty string value round-trips as null — the documented limitation of this format.

Functions§

rows_to_tsv
Serialize rows (in schema column order) to a TSV document.
tsv_to_rows
Parse a TSV document into rows (maps keyed by the header column names). Only columns named in the header are set; unknown header columns are ignored.