bqcat

MIT License

Stars
2

bqcat

bqcat is Google BigQuery client for a command line.

query result writes to stdout in CSV. pipe friendly.

Installation

go get -u github.com/orisano/bqcat

Usage

$ bqcat --help
Usage of bqcat:
  -f string
        query file path
  -p string
        project id

How to use

give query from arguments

$ bqcat "SELECT 1;"
1

give query file path from arguments

$ bqcat -f test.sql
1

give query from stdin

$ echo "SELECT 1;" | bqcat
1

Author

Nao Yonashiro (@orisano)

License

MIT