mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-25 09:16:59 +03:00
sq data wrangler
azure-sql-edgecsvdata-wranglerdatabaseexcelgogolangjsonjsonajsonlmarkdownmysqlpostgressqlsqlserverstarred-neilotoole-repostarred-repotsvxlsxxml
.github/workflows | ||
cli | ||
drivers | ||
grammar | ||
libsq | ||
notifiers | ||
testh | ||
.editorconfig | ||
.gitignore | ||
.golangci.yml | ||
.goreleaser.yml | ||
.lnav.json | ||
go.mod | ||
go.sum | ||
LICENSE | ||
magefile_release.go | ||
magefile_sakila.go | ||
magefile.go | ||
main.go | ||
README.md |
sq: swiss army knife for data
sq
is a swiss army knife for data. sq
provides uniform access to
structured data sources like traditional SQL-style 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 frequent 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:olekukonko/tablewriter
segmentio/encoding
for JSON encoding.
- The Sakila example databases were lifted from jOOQ, which in turn owe their heritage to earlier work on Sakila.