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
arrays
anddicts
are unified into one option:kv
(for "key-value").kv=true
acts asdicts=true
;kv=false
acts asarrays=true
. - The
indent
option for the JSON serializer is renamed topretty
. - The Tcl serializer has new options:
lines
andpretty
. - 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.
v0.22.1
v0.22.0
Changes in this version include:
- New command line options:
-dbfile
to 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-dbfile
when 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
fields
for the default parserawk
lets 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.
raw
is no longer a synonym for the parserawk
.- The README has been much improved.