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
- Host: GitHub
- URL: https://github.com/gcpug/spshovel
- Owner: gcpug
- License: mit
- Created: 2019-02-06T08:09:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T07:31:36.000Z (over 6 years ago)
- Last Synced: 2024-06-20T06:36:17.985Z (about 2 years ago)
- Topics: google-cloud-spanner
- Language: Go
- Size: 24.4 KB
- Stars: 7
- Watchers: 8
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```