https://github.com/tkuchiki/spanner-loader
https://github.com/tkuchiki/spanner-loader
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tkuchiki/spanner-loader
- Owner: tkuchiki
- License: apache-2.0
- Created: 2020-08-11T05:45:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T03:01:08.000Z (over 1 year ago)
- Last Synced: 2025-01-25T09:11:05.133Z (4 months ago)
- Language: Go
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spanner-loader
## Installation
Download from https://github.com/tkuchiki/spanner-loader/releases
## Usage
```console
$ spanner-loader --help
Usage of ./spanner-loader:
-c uint
Concurrency (default 1)
-d duration
Duration (default 1m0s)
-database string
Cloud Spanner Database
-instance string
Cloud Spanner Instance
-priority string
CPU priority: low, medium, high (default "high")
-project string
GCP Project
-query string
SQL
-version
Show version
```## Example
```
# It is strongly recommended to execute an SQL statement that returns a single row of results, such as `COUNT(*)`
$ spanner-loader -c 10 -d 5m0s -project myproject -instance test-instance -database test-database -query "SELECT COUNT(*) FROM Singers, Albums, Songs"
```