sq data wrangler
Go to file
2021-01-01 21:10:02 -07:00
.github/workflows github workflow 2021-01-01 18:28:58 -07:00
cli removed notify stuff (#74) 2020-12-30 12:18:22 -07:00
drivers close db resources 2021-01-01 18:57:07 -07:00
grammar codebase refactor 2020-08-06 11:58:47 -06:00
libsq files handling cleanup (#77) 2021-01-01 21:10:02 -07:00
testh Fixed issues with files and databases not being closed correctly (#73) 2020-12-30 11:57:58 -07:00
.editorconfig tidy up 2016-10-16 22:14:01 -06:00
.gitattributes Added go test to github action; fixed Windows test issues (#52) 2020-08-07 23:10:41 -06:00
.gitignore codebase refactor 2020-08-06 11:58:47 -06:00
.golangci.yml codebase refactor 2020-08-06 11:58:47 -06:00
.goreleaser.yml made sq repo public, at long last (#75) 2020-12-30 12:26:33 -07:00
.lnav.json Initial work on a JSON driver (#70) 2020-10-20 09:05:43 -06:00
go.mod github workflow 2021-01-01 18:28:58 -07:00
go.sum github workflow 2021-01-01 18:28:58 -07:00
LICENSE codebase refactor 2020-08-06 11:58:47 -06:00
magefile_release.go codebase refactor 2020-08-06 11:58:47 -06:00
magefile_sakila.go codebase refactor 2020-08-06 11:58:47 -06:00
magefile.go Slq move (#67) 2020-08-23 05:16:16 -06:00
main.go Initial work on a JSON driver (#70) 2020-10-20 09:05:43 -06:00
README.md README update 2020-10-20 09:18:56 -06:00
sq.json Scoop update for sq version v0.14.5 2020-12-30 12:41:36 -07:00

sq: swiss army knife for data

sq is a command line tool that jq-style access to structured data sources such as SQL databases, or document formats such as CSV or Excel. sq can perform cross-source joins, execute database-native SQL, and output to a multitude of formats including JSON, Excel, CSV, HTML, Markdown and XML, or output directly to a SQL database. sq can inspect sources to see metadata about the source structure (tables, columns, size) and has commands for common database operations such as copying or dropping tables.

Usage

See the wiki.

Installation

From source

From the sq project dir:

$ go install

The simple go install does not populate the binary with build info that is output via the sq version command. To do so, use mage.

$ brew install mage
$ mage install

Other installation options

For homebrew, scoop, rpm etc, see the wiki.

Acknowledgements

  • Much inspiration is owed to jq.
  • See go.mod for a list of third-party packages.
  • Additionally, sq incorporates modified versions of:
  • The Sakila example databases were lifted from jOOQ, which in turn owe their heritage to earlier work on Sakila.