BigQueryApi (BigQuery APIs)
createTable
Create a new table in the data set identified by a table name and its schema.​
BigQueryApi.createTable(datasetName, tableName, schema)
or
BigQueryApi.createTable(datasetName, tableName, classAttrs)
or
BigQueryApi.createTable(datasetName, tableName,
csvSchema, classAttrs, mappings)parameters:
datasetName: dataset name (string)
tableName: table name (string)
schema: schema object (string)
classAttrs: class attributes (List of dictionaries)
csvSchema: csv representation object (List of dictionaries)
mappings: mappings object (List of dictionaries)Return : result
getBQDataSets
Get the list of all dataset names.​
parameters:
Return:
getBQTables
List the tables in a specific data set.​
parameters:
Return:
getTable
Retrieves table information from the data set.​
parameters:
Return:
getTableFields
Retrieve field information for a table from BigQuery.
Parameters
Returns
executeQuery
Executes a query in a specific data set and return the results.​
parameters:
Return:
getBigQueryIterator
Get an iterator over table query.
parameters:
Return:
insertRows
Insert a list of rows into the table.​
parameters:
Return:
importCSVIntoTable
Import data from CSV file to the dataset table​. The header in the CSV file can be skipped if needed.
parameters:
Return:
importCSVbyURIIntoTable
Same as above but using the URI for CSV file location.​
parameters:
Return:
exportTableToCSV
Exports dataset table into a CSV file.​
parameters:
Return:
exportTableToCSVByURI
Same as above but using the URI for the csv file location
parameters:
Return:
exportTable
Export a table​ of the dataset to a file type with the destination uri provided.
parameters:
Return:
bigQueryToCSV
export data set table with specific columns to a CSV.​
parameters:
Return:
getpage
Retrieve a page of data from BigQuery.
Parameters
Returns
createTableFromCSV
Create table from CSV
Parameters
Returns
importJSONbyURIIntoTable
import JSON by URI into table
Parameters
Returns
bigQueryToCSVWithScript
Export data from BigQuery to a CSV file using a custom script.
Parameters
Returns
Last updated