Rows are currently stored on disk in this format: ``` [1, "Simon"] [2, "Cleo"] ``` You have to consult the accompanying metadata JSON file to find out what the column names are. A command that streams out one of these dumps as newline separated objects with the column names as keys would be useful.
Activity
simonw commentedon Aug 15, 2022
Potential design:
This would look for column info in
data/rows.metadata.json.It would stream newline delimited output to standard out.
-o filenamecould save to disk instead.An option to write it out as a JSON array of objects would be useful too - maybe called
--array.simonw commentedon Aug 18, 2022
Documentation: https://github.com/simonw/sqlite-diffable/blob/d8f071b3ff41147029d3a8c674509aef70c1241c/README.md#converting-to-json-objects
Tests for new objects command, refs #7
Release 0.5