sq/README.md

40 lines
1.3 KiB
Markdown
Raw Normal View History

2020-08-06 20:58:47 +03:00
# sq: swiss army knife for data
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
`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.
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
## Installation
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
### From source
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
From the `sq` project dir:
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
```shell script
> go install
```
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
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](https://magefile.org/).
2016-10-17 07:14:01 +03:00
2020-08-06 20:58:47 +03:00
```shell script
> brew install mage
> mage install
2016-10-17 07:14:01 +03:00
```
2016-10-21 19:14:48 +03:00
2020-08-06 20:58:47 +03:00
### Other installation options
For homebrew, scoop, rpm etc, see the [wiki](https://github.com/neilotoole/sq-preview/wiki).
2016-10-17 07:14:01 +03:00
2016-10-21 19:14:48 +03:00
2020-08-06 20:58:47 +03:00
## Acknowledgements
2016-10-21 19:14:48 +03:00
2020-08-06 20:58:47 +03:00
- The [_Sakila_](https://dev.mysql.com/doc/sakila/en/) example databases were lifted from [jOOQ](https://github.com/jooq/jooq), which
in turn owe their heritage to earlier work on Sakila.
- The `sq` query language was inspired by [jq](https://stedolan.github.io/jq/).
2016-10-21 19:14:48 +03:00