spanner-console

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2025 License: AGPL-3.0 Imports: 23 Imported by: 0

README

Simple (and limited) SQL console for Google Spanner and BigQuery.

Usage:

spanner-console --spanner=my_proect/my_instance/my_db

or:

spanner-console --spanner=projects/my_proect/instances/my_instance/databases/my_db

or:

spanner-console --bigquery=my_project

You can also pipe SQL commands:

cat /tmp/foo.sql | spanner-console --spanner=...

Options:

  • --format or -f: Output format (table|csv), default is table
  • --transaction or -t: Execute all queries in a single transaction
  • --staleness: Staleness duration for Spanner stale reads (e.g. 10s, 1m)

Example with CSV output:

spanner-console --spanner=my_project/my_instance/my_db --format=csv

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL