blanton v0.2.2 Blanton.Record
Insert record to BigQuery tables
Link to this section Summary
Functions
Insert records to table auto set project_id and dataset_id from config.exs
Insert records to table
Link to this section Functions
Link to this function
insert(table, records, ignore_unknown_values \\ false, skip_invalid_rows \\ true)
Specs
insert(String.t(), [%{}], Booealn.t(), Boolean.t()) :: GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse.t()
Insert records to table auto set project_id and dataset_id from config.exs
example
Blanton.Record.insert("TABLE", [%{age: 30, email: "a@example.com", name: "user"}])
%GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse{ insertErrors: nil, kind: "bigquery#tableDataInsertAllResponse" }
Link to this function
insert(project_id, dataset_id, table, records, ignore_unknown_values, skip_invalid_rows)
Specs
insert(String.t(), String.t(), String.t(), [%{}], Booealn.t(), Boolean.t()) :: GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse.t()
Insert records to table
example
Blanton.Record.insert("PROJECT_IF", "DATASET_ID", "TABLE", [%{age: 30, email: "a@example.com", name: "user"}], false, true)
%GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse{ insertErrors: nil, kind: "bigquery#tableDataInsertAllResponse" }