Classes
BigQuery
In the following examples from this page and the other modules (Dataset, Table, etc.), we are going to be using a dataset from data.gov of higher education institutions.
We will create a table with the correct schema, import the public CSV file into that table, and query it for data.
BigQueryDate
Date class for BigQuery.
BigQueryDatetime
Datetime class for BigQuery.
BigQueryInt
Build a BigQueryInt object. For long integers, a string can be provided.
BigQueryTime
Time class for BigQuery.
BigQueryTimestamp
Timestamp class for BigQuery.
Dataset
Interact with your BigQuery dataset. Create a Dataset instance with or .
Geography
Geography class for BigQuery.
Job
Job objects are returned from various places in the BigQuery API:
They can be used to check the status of a running job or fetching the results of a previously-executed one.
Model
Model objects are returned by methods such as and .
Routine
Routine objects are returned by methods such as , , and .
RowBatch
Call used to help batch rows.
RowQueue
Standard row queue used for inserting rows.
Table
Table objects are returned by methods such as , , and .
Interfaces
BigQueryDateOptions
BigQueryDatetimeOptions
BigQueryOptions
BigQueryTimeOptions
DatasetDeleteOptions
DatasetOptions
File
InsertRow
InsertStreamOptions
IntegerTypeCastOptions
Json
PagedCallback
PartialInsertFailure
ProvidedTypeStruct
RequestCallback
ResourceCallback
TableOptions
Variables
PROTOCOL_REGEX
PROTOCOL_REGEX: RegExpType Aliases
CancelCallback
export declare type CancelCallback = RequestCallbackCancelResponse
export declare type CancelResponse = [bigquery.IJobCancelResponse];CopyTableMetadata
export declare type CopyTableMetadata = JobRequestCreateCopyJobMetadata
export declare type CreateCopyJobMetadata = CopyTableMetadata;CreateDatasetOptions
export declare type CreateDatasetOptions = bigquery.IDataset;CreateExtractJobOptions
export declare type CreateExtractJobOptions = JobRequestDatasetCallback
export declare type DatasetCallback = ResourceCallbackDatasetResource
export declare type DatasetResource = bigquery.IDataset;DatasetResponse
export declare type DatasetResponse = [Dataset, bigquery.IDataset];DatasetsCallback
export declare type DatasetsCallback = PagedCallbackDatasetsResponse
export declare type DatasetsResponse = PagedResponseFormattedMetadata
export declare type FormattedMetadata = bigquery.ITable;GetDatasetsOptions
export declare type GetDatasetsOptions = PagedRequestGetJobsCallback
export declare type GetJobsCallback = PagedCallbackGetJobsOptions
export declare type GetJobsOptions = PagedRequestGetJobsResponse
export declare type GetJobsResponse = PagedResponseGetModelsCallback
export declare type GetModelsCallback = PagedCallbackGetModelsOptions
export declare type GetModelsOptions = PagedRequestGetModelsResponse
export declare type GetModelsResponse = PagedResponseGetPolicyOptions
export declare type GetPolicyOptions = bigquery.IGetPolicyOptions;GetRoutinesCallback
export declare type GetRoutinesCallback = PagedCallbackGetRoutinesOptions
export declare type GetRoutinesOptions = PagedRequestGetRoutinesResponse
export declare type GetRoutinesResponse = PagedResponseGetRowsOptions
export declare type GetRowsOptions = PagedRequestGetTablesCallback
export declare type GetTablesCallback = PagedCallbackGetTablesOptions
export declare type GetTablesOptions = PagedRequestGetTablesResponse
export declare type GetTablesResponse = PagedResponseInsertRowsCallback
export declare type InsertRowsCallback = RequestCallbackInsertRowsOptions
export declare type InsertRowsOptions = bigquery.ITableDataInsertAllRequest & {
createInsertId?: boolean;
partialRetries?: number;
raw?: boolean;
schema?: string | {};
};InsertRowsResponse
export declare type InsertRowsResponse = [
bigquery.ITableDataInsertAllResponse | bigquery.ITable
];InsertRowsStreamResponse
export declare type InsertRowsStreamResponse = bigquery.ITableDataInsertAllResponse;IntegerTypeCastValue
export declare type IntegerTypeCastValue = {
integerValue: string | number;
schemaFieldName?: string;
};JobCallback
export declare type JobCallback = ResourceCallbackJobLoadMetadata
export declare type JobLoadMetadata = JobRequestJobMetadata
export declare type JobMetadata = bigquery.IJob;JobMetadataCallback
export declare type JobMetadataCallback = RequestCallbackJobMetadataResponse
export declare type JobMetadataResponse = [JobMetadata];JobOptions
export declare type JobOptions = JobRequestJobRequest
export declare type JobRequest| Type Parameter | |
|---|---|
| Type | Description |
J |
|
JobResponse
export declare type JobResponse = [Job, bigquery.IJob];PagedRequest
export declare type PagedRequest
= P & { autoPaginate?: boolean; maxApiCalls?: number; };
| Type Parameter | |
|---|---|
| Type | Description |
P |
|
PagedResponse
export declare type PagedResponse| Type Parameters | |
|---|---|
| Type | Description |
T |
|
Q |
|
R |
|
PermissionsCallback
export declare type PermissionsCallback = RequestCallbackPermissionsResponse
export declare type PermissionsResponse = [bigquery.ITestIamPermissionsResponse];Policy
export declare type Policy = bigquery.IPolicy;PolicyCallback
export declare type PolicyCallback = RequestCallbackPolicyRequest
export declare type PolicyRequest = bigquery.IGetIamPolicyRequest;PolicyResponse
export declare type PolicyResponse = [Policy];ProvidedTypeArray
export declare type ProvidedTypeArray = ArrayQuery
export declare type Query = JobRequestQueryOptions
export declare type QueryOptions = QueryResultsOptions;QueryParameter
export declare type QueryParameter = bigquery.IQueryParameter;QueryResultsOptions
export declare type QueryResultsOptions = {
job?: Job;
wrapIntegers?: boolean | IntegerTypeCastOptions;
} & PagedRequestQueryRowsCallback
export declare type QueryRowsCallback = PagedCallbackQueryRowsResponse
export declare type QueryRowsResponse = PagedResponseQueryStreamOptions
export declare type QueryStreamOptions = {
wrapIntegers?: boolean | IntegerTypeCastOptions;
};RoutineCallback
export declare type RoutineCallback = ResourceCallbackRoutineMetadata
export declare type RoutineMetadata = bigquery.IRoutine;RoutineResponse
export declare type RoutineResponse = [Routine, bigquery.IRoutine];RowMetadata
export declare type RowMetadata = any;RowsCallback
export declare type RowsCallback = PagedCallbackRowsResponse
export declare type RowsResponse = PagedResponseSetPolicyOptions
export declare type SetPolicyOptions = OmitSetTableMetadataOptions
export declare type SetTableMetadataOptions = TableMetadata;SimpleQueryRowsCallback
export declare type SimpleQueryRowsCallback = ResourceCallbackSimpleQueryRowsResponse
export declare type SimpleQueryRowsResponse = [RowMetadata[], bigquery.IJob];TableCallback
export declare type TableCallback = ResourceCallbackTableField
export declare type TableField = bigquery.ITableFieldSchema;TableMetadata
export declare type TableMetadata = bigquery.ITable & {
name?: string;
schema?: string | TableField[] | TableSchema;
partitioning?: string;
view?: string | ViewDefinition;
};TableResponse
export declare type TableResponse = [Table, bigquery.ITable];TableRow
export declare type TableRow = bigquery.ITableRow;TableRowField
export declare type TableRowField = bigquery.ITableCell;TableRowValue
export declare type TableRowValue = string | TableRow;TableSchema
export declare type TableSchema = bigquery.ITableSchema;ValueType
export declare type ValueType = bigquery.IQueryParameterType;ViewDefinition
export declare type ViewDefinition = bigquery.IViewDefinition;