-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
Description
Idea come to me while re-reading this: https://simonwillison.net/2021/Aug/6/sqlite-utils-convert/
This is a bit of a hack:
cat /tmp/log.txt | \
jq --raw-input '{line: .}' --compact-output | \
sqlite-utils insert /tmp/logs.db log - --nl
Would be great if you could pipe lines to insert
and transform them on the way in.
A --convert python-code
option, modeled after sqlite-utils convert
, could do this.