You may know this already, but the SQLite CLI can actually read and query data directly from a csv file, with the right flags
They are Jedi’s at jq though.
Re:Sq.io: jq for databases and more
by aurareturn on Monday October 07, 2024 @01:33AM
(#41763076)
I agree with @candiddevmike. Might I add that you can do those things fairly easily now with ChatGPT/Claude. I doubt LLMs know how to use Sq.io that much.
If you use things like `array_to_json(array_agg(row_to_json(....)))` in your psql commands to output some rows to JSON, then sq's `--json` or `--jsonl` is quite a bit easier IMHO. If you know the exact SQL query you want to run you can just do `sq sql '....'` as well, but I agree there's not much point in doing that if you aren't taking advantage of some other sq feature.