Releases: dbohdan/sqawk
Releases · dbohdan/sqawk
v0.24.0
v0.23.1
v0.23.0
- A parser for JSON and JSON Lines has been added.
- Unknown per-file options cause an error. No more silent typos!
- The parser/serializer options
arraysanddictsare unified into one option:kv(for "key-value").kv=trueacts asdicts=true;kv=falseacts asarrays=true. - The
indentoption for the JSON serializer is renamed topretty. - The Tcl serializer has new options:
linesandpretty. - New SQLite functions are added for working with Tcl data:
dict_exists,dict_get,lindex,llength,lrange,regexp,regsub. - Error messages are valid Tcl lists.
- We have dropped support for Tcl 8.5.
v0.22.1
v0.22.0
Changes in this version include:
- New command line options:
-dbfileto store the SQLite database on disk rather than in memory. It lets you parse the data once and query it later, saving time.-noinput, which stops Sqawk from reading from the standard input if it is given no input files. Use it with-dbfilewhen you only want to query an existing database file.
- The script can now to be empty. This is useful with
-dbfile. - You can insert data into an existing table over multiple invocations of Sqawk (with
-dbfile) or in a single invocation with several input sources. - Most of the input parsers and the output serializers are now lazy. This results in:
- A massive reduction in memory usage (e.g., inserting 1 000 000 rows now takes 40 MiB, not 900 MiB), which makes it feasible to work with larger datasets even in memory.
- Approximately 20% slower parsing and serialization, a price well worth paying in the developer's view.
v0.21.0
Changes in this version include:
- The new file option
fieldsfor the default parserawklets you skip as well as merge parts of the input. It replaces the optionmerge. - You can disable the zeroth column (
a0,b0, etc.) with the file optionF0. - The zeroth column no longer counts towards NF.
rawis no longer a synonym for the parserawk.- The README has been much improved.