neilotoole/sq
2,467 stars · Last commit 2026-04-23
sq data wrangler
README preview
[](https://pkg.go.dev/github.com/neilotoole/sq) [](https://goreportcard.com/report/neilotoole/sq) [](https://github.com/neilotoole/sq/blob/master/LICENSE)  # sq data wrangler `sq` is a command line tool that provides jq-style access to structured data sources: SQL databases, or document formats like CSV or Excel. It is the lovechild of sql+jq.  `sq` executes jq-like [queries](https://sq.io/docs/query), or database-native [SQL](https://sq.io/docs/cmd/sql/). It can [join](https://sq.io/docs/query#cross-source-joins) across sources: join a CSV file to a Postgres table, or MySQL with Excel. `sq` outputs to a multitude of [formats](https://sq.io/docs/output#formats) including [JSON](https://sq.io/docs/output#json), [Excel](https://sq.io/docs/output#xlsx), [CSV](https://sq.io/docs/output#csv),