biggie v0.1.6 Biggie

Provides a client for programmatically interfacing with BigQuery

Relevant models: https://hexdocs.pm/google_api_big_query/GoogleApi.BigQuery.V2.Api.Jobs.html#bigquery_jobs_list/3 https://hexdocs.pm/google_api_big_query/GoogleApi.BigQuery.V2.Model.Job.html#content https://hexdocs.pm/google_api_big_query/GoogleApi.BigQuery.V2.Model.JobConfiguration.html#content https://hexdocs.pm/google_api_big_query/GoogleApi.BigQuery.V2.Model.JobConfigurationQuery.html#content

Link to this section Summary

Functions

Fetches a list of results for the given job. If the job is not finished, the process will poll until it is

Link to this section Functions

Link to this function fetch_results(job_id, offset \\ 0, limit \\ 500, acc \\ [])

Fetches a list of results for the given job. If the job is not finished, the process will poll until it is.

Link to this function poll_for_results(job_id, offset, limit, poll \\ 0)

Polls for query results

If the query is done, results will be returned. If the query is still running, sleeps for an interval defined in the @poll_interval module attribute and then tries again.

Link to this function run_query_job(sql, labels \\ %{}, opts \\ %{})

Runs a query job

Given an SQL query to execute and a list of options, runs a query job on BigQuery. Returns a reference to the job for accessing query results later on.

Options available here: https://hexdocs.pm/google_api_big_query/GoogleApi.BigQuery.V2.Model.JobConfigurationQuery.html#module-attributes

Link to this function tabledata_list(dataset_id, table_id, offset \\ 0, limit \\ 500)

Lists rows in the given table.