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

https://github.com/gcpug/spshovel

Output spanner's query result as CSV
https://github.com/gcpug/spshovel

google-cloud-spanner

Last synced: 6 months ago
JSON representation

Output spanner's query result as CSV

Awesome Lists containing this project

README

          

# spshovel

Spanner Power shovel is a tool to output Spanner's Query result as CSV.
It helps to output huge Query results from Spanner.

## Output Query Results as CSV

### go run example

```
go run *.go -project=gcpug-public-spanner \
-instance=merpay-sponsored-instance \
-database=sinmetal \
-sql-file-path=/Users/sinmetal/go/src/github.com/gcpug/spshovel/example.sql
```

#### Do not output headers to CSV

```
go run *.go -project=gcpug-public-spanner \
-instance=merpay-sponsored-instance \
-database=sinmetal \
-sql-file-path=/Users/sinmetal/go/src/github.com/gcpug/spshovel/example.sql\
--no-header=true
```