Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orisano/bqcat


https://github.com/orisano/bqcat

bigquery cli golang

Last synced: 22 days ago
JSON representation

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