Skip to content

Instantly share code, notes, and snippets.

@abronte
Created September 21, 2012 18:55
Show Gist options
  • Select an option

  • Save abronte/3763216 to your computer and use it in GitHub Desktop.

Select an option

Save abronte/3763216 to your computer and use it in GitHub Desktop.
BigQuery gem example
require 'bigquery'
opts = {}
opts['client_id'] = '1234.apps.googleusercontent.com'
opts['service_email'] = '1234@developer.gserviceaccount.com'
opts['key'] = '/path/to/somekeyfile-privatekey.p12'
opts['project_id'] = '54321'
opts['dataset'] = 'yourdataset'
bq = BigQuery.new(opts)
puts bq.tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment