Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orisano/bqcat
https://github.com/orisano/bqcat
bigquery cli golang
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orisano/bqcat
- Owner: orisano
- License: mit
- Created: 2018-03-08T06:20:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-29T06:27:46.000Z (about 2 months ago)
- Last Synced: 2024-10-04T17:51:08.820Z (about 1 month ago)
- Topics: bigquery, cli, golang
- Language: Go
- Homepage:
- Size: 202 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bqcat
bqcat is Google BigQuery client for a command line.query result writes to stdout in CSV. pipe friendly.
## Installation
```bash
go get -u github.com/orisano/bqcat
```## Usage
```bash
$ bqcat --help
Usage of bqcat:
-f string
query file path
-p string
project id
```## How to use
### give query from arguments
```bash
$ bqcat "SELECT 1;"
1
```
### give query file path from arguments
```bash
$ bqcat -f test.sql
1
```### give query from stdin
```bash
$ echo "SELECT 1;" | bqcat
1
```## Author
Nao Yonashiro (@orisano)## License
MIT