An Elixir client for the Google BigQuery API.
If available in Hex, the package can be installed as:
-
Add big_query to your list of dependencies in
mix.exs
:def deps do [{:big_query, "~> 0.0.1"}] end
-
Ensure big_query is started before your application:
def application do [applications: [:big_query]] end
-
Configure the location of your BigQuery private key .json file:
config :big_query, bigquery_private_key_path: "path/to/private_key.json"
-
If you need ask for special scopes - configure them:
config :big_query, bigquery_scope: "https://www.googleapis.com/auth/drive"
-
If you have long running requests - you can override the timeout of the http calls (in MS):
config :big_query, bigquery_request_timeout: 60000