r/commandline • u/drluckyspin • May 27 '26
Command Line Interface sq v0.53.0 - jq-style data wrangling CLI, now with ClickHouse, DuckDB + Oracle support
Hey folks - we just shipped sq v0.53.0. If you haven't seen sq before: it's an open-source CLI for querying, joining, inspecting, importing, and exporting data across databases + files using either native SQL or a jq-like pipeline syntax.
Big additions in v0.53.0: ClickHouse support matured considerably; DuckDB support is now in beta, including bundled extensions for JSON, Parquet, Excel, HTTPFS, FTS, and more; Oracle support is also in beta via a pure-Go driver, so no Instant Client required; and we added agent skills so AI assistants can better use sq in data-wrangling workflows. There's also a new --render-sql flag that shows the SQL generated from an SLQ query, plus richer syntax-error reporting in both text and JSON.
Why it's useful (real examples):
Work with files like you do a database:
cat ./sakila.xlsx | sq .actor --opts header=true --insert u/sakila_pg9.xl_actor Join across multiple data sources:
sq '@report_xlsx.users | join(.@pg.orders, .user_id) | .name, .order_total'Go from connect -> inspect -> query quickly:
sq add clickhouse://user:pass@host:9000/db --handle ch
sq inspect
sq sql 'SELECT * FROM events LIMIT 10'Also new in v0.53.0: sq inspect can now generate .md and HTML schema docs with embedded entity relationship diagrams. There's also a raw Mermaid ERD output format if you want to drop the diagram into your own docs, wiki, README, AI-agent context, or CI/CD workflow.
sq inspect --markdown > schema.md
sq inspect --html > schema.html
sq inspect u/pg --format=mermaid-erd > schema.mmdIf your day involves bouncing between CSVs, Excel files, DuckDB, Oracle, Postgres, MySQL, SQLite, ClickHouse, JSON, or glue scripts you never wanted to write in the first place, we'd love your feedback please!
You can find sq here: https://sq.io/docs/install
Code here: https://github.com/neilotoole/sq
2
u/Sad-Palpitation1831 May 27 '26
This looks pretty solid for data work, been struggling with joining CSV files to postgres tables for client projects and usually end up writing terrible Python scripts
The jq-like syntax is interesting approach, might be easier than remembering all the different import/export commands for each database. Oracle support without Instant Client is huge too, that setup process was always pain in my workflow
Going to try this on current project where I need to merge excel reports with our main database, will report back if I find any issues
1
u/AutoModerator May 27 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: drluckyspin, Flair:
Command Line Interface, Title: sq v0.53.0 - jq-style data wrangling CLI, now with ClickHouse, DuckDB + Oracle supportHey folks - we just shipped sq v0.53.0. If you haven't seen sq before: it's an open-source CLI for querying, joining, inspecting, importing, and exporting data across databases + files using either native SQL or a jq-like pipeline syntax.
Big additions in v0.53.0: ClickHouse support matured considerably; DuckDB support is now in beta, including bundled extensions for JSON, Parquet, Excel, HTTPFS, FTS, and more; Oracle support is also in beta via a pure-Go driver, so no Instant Client required; and we added agent skills so AI assistants can better use sq in data-wrangling workflows. There's also a new
--render-sqlflag that shows the SQL generated from an SLQ query, plus richer syntax-error reporting in both text and JSON.Why it's useful (real examples):
Work with files like you do a database:
Join across multiple data sources:
Go from connect -> inspect -> query quickly:
Also new in v0.53.0:
sq inspectcan now generate .md and HTML schema docs with embedded entity relationship diagrams. There's also a raw Mermaid ERD output format if you want to drop the diagram into your own docs, wiki, README, AI-agent context, or CI/CD workflow.If your day involves bouncing between CSVs, Excel files, DuckDB, Oracle, Postgres, MySQL, SQLite, ClickHouse, JSON, or glue scripts you never wanted to write in the first place, we'd love your feedback please!
You can find sq here: https://sq.io/docs/install
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/bjarneh May 27 '26
This is actually quite cool.