fake-bigquery

command module
v0.0.0-...-dd98f66 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2017 License: MIT Imports: 7 Imported by: 0

README

Supported features

  • Streaming insert
  • SELECT COUNT(*) FROM dataset.tablename
  • SELECT * FROM dataset.tablename LIMIT n

Example usage

  • curl https://www.googleapis.com/discovery/v1/apis/bigquery/v2/rest > discovery.json
  • go install .
  • $GOPATH/bin/fake-bigquery -discovery-json-path discovery.json -port 9090
  • bq --api http://localhost:9090 mk mydataset
  • bq --api http://localhost:9090 ls
  • bq --api http://localhost:9090 mk mydataset.mytable
  • bq --api http://localhost:9090 ls mydataset
  • bq --api http://localhost:9090 query 'select count(*) from mydataset.mytable'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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