https://github.com/orisano/bqcat
https://github.com/orisano/bqcat
bigquery cli golang
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/orisano/bqcat
- Owner: orisano
- License: mit
- Created: 2018-03-08T06:20:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T07:59:02.000Z (over 1 year ago)
- Last Synced: 2025-03-07T03:13:31.209Z (over 1 year ago)
- Topics: bigquery, cli, golang
- Language: Go
- Homepage:
- Size: 514 KB
- Stars: 2
- Watchers: 2
- 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