4 ms·
Wait - sqlite can register python functions to be used from sqlite https://simonwillison.net/2021/Aug/6/sqlite-utils-convert/ https://simonwillison.net/2021/Aug
by pletnes 3y ago
Wait - sqlite can register python functions to be used from sqlite
https://simonwillison.net/2021/Aug/6/sqlite-utils-convert/ https://simonwillison.net/2021/Aug/6/sqlite-utils-convert/
So you could, presumably, write a python function to process json using jq, i.e make a jq-from-sqlite function?
Presumably you can do the same in C directly with libjq + sqlite directly, with more effort but better performance.
- simonw 3y agoYeah, a C extension for SQLite that embedded jq would be neat.