Package @google-cloud/bigquery (7.0.0)

Classes

BigQuery

In the following examples from this page and the other modules (Dataset,Table, etc.), we are going to be using a dataset fromdata.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.

SeeWhat is BigQuery?

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_2

InsertRow

InsertStreamOptions

IntegerTypeCastOptions

Json

PagedCallback

PartialInsertFailure

ProvidedTypeStruct

RequestCallback

ResourceCallback

TableOptions

Variables

PROTOCOL_REGEX

PROTOCOL_REGEX:RegExp

Type Aliases

CancelCallback

exporttypeCancelCallback=RequestCallback

CancelResponse

exporttypeCancelResponse=[bigquery.IJobCancelResponse];

CopyTableMetadata

exporttypeCopyTableMetadata=JobRequest

CreateCopyJobMetadata

exporttypeCreateCopyJobMetadata=CopyTableMetadata;

CreateDatasetOptions

exporttypeCreateDatasetOptions=bigquery.IDataset;

CreateExtractJobOptions

exporttypeCreateExtractJobOptions=JobRequest

DatasetCallback

exporttypeDatasetCallback=ResourceCallback

DatasetResource

exporttypeDatasetResource=bigquery.IDataset;

DatasetResponse

exporttypeDatasetResponse=[Dataset,bigquery.IDataset];

DatasetsCallback

exporttypeDatasetsCallback=PagedCallback

DatasetsResponse

exporttypeDatasetsResponse=PagedResponse

FormattedMetadata

exporttypeFormattedMetadata=bigquery.ITable;

GetDatasetsOptions

exporttypeGetDatasetsOptions=PagedRequest

GetJobsCallback

exporttypeGetJobsCallback=PagedCallback

GetJobsOptions

exporttypeGetJobsOptions=PagedRequest

GetJobsResponse

exporttypeGetJobsResponse=PagedResponse

GetModelsCallback

exporttypeGetModelsCallback=PagedCallback

GetModelsOptions

exporttypeGetModelsOptions=PagedRequest

GetModelsResponse

exporttypeGetModelsResponse=PagedResponse

GetPolicyOptions

exporttypeGetPolicyOptions=bigquery.IGetPolicyOptions;

GetRoutinesCallback

exporttypeGetRoutinesCallback=PagedCallback

GetRoutinesOptions

exporttypeGetRoutinesOptions=PagedRequest

GetRoutinesResponse

exporttypeGetRoutinesResponse=PagedResponse

GetRowsOptions

exporttypeGetRowsOptions=PagedRequest

GetTablesCallback

exporttypeGetTablesCallback=PagedCallback

GetTablesOptions

exporttypeGetTablesOptions=PagedRequest

GetTablesResponse

exporttypeGetTablesResponse=PagedResponse

InsertRowsCallback

exporttypeInsertRowsCallback=RequestCallback

InsertRowsOptions

exporttypeInsertRowsOptions=bigquery.ITableDataInsertAllRequest &{createInsertId?:boolean;partialRetries?:number;raw?:boolean;schema?:string|{};};

InsertRowsResponse

exporttypeInsertRowsResponse=[bigquery.ITableDataInsertAllResponse|bigquery.ITable];

InsertRowsStreamResponse

exporttypeInsertRowsStreamResponse=bigquery.ITableDataInsertAllResponse;

IntegerTypeCastValue

exporttypeIntegerTypeCastValue={integerValue:string|number;schemaFieldName?:string;};

JobCallback

exporttypeJobCallback=ResourceCallback

JobLoadMetadata

exporttypeJobLoadMetadata=JobRequest

JobMetadata

exporttypeJobMetadata=bigquery.IJob;

JobMetadataCallback

exporttypeJobMetadataCallback=RequestCallback

JobMetadataResponse

exporttypeJobMetadataResponse=[JobMetadata];

JobOptions

exporttypeJobOptions=JobRequest

JobRequest

exporttypeJobRequest
Type Parameter
TypeDescription
J

JobResponse

exporttypeJobResponse=[Job,bigquery.IJob];

PagedRequest

exporttypePagedRequest

=P &{autoPaginate?:boolean;maxApiCalls?:number;};

Type Parameter
TypeDescription
P

PagedResponse

exporttypePagedResponse
Type Parameters
TypeDescription
T
Q
R

PermissionsCallback

exporttypePermissionsCallback=RequestCallback

PermissionsResponse

exporttypePermissionsResponse=[bigquery.ITestIamPermissionsResponse];

Policy

exporttypePolicy=bigquery.IPolicy;

PolicyCallback

exporttypePolicyCallback=RequestCallback

PolicyRequest

exporttypePolicyRequest=bigquery.IGetIamPolicyRequest;

PolicyResponse

exporttypePolicyResponse=[Policy];

ProvidedTypeArray

exporttypeProvidedTypeArray=Array

Query

exporttypeQuery=JobRequest

QueryOptions

exporttypeQueryOptions=QueryResultsOptions;

QueryParameter

exporttypeQueryParameter=bigquery.IQueryParameter;

QueryResultsOptions

exporttypeQueryResultsOptions={job?:Job;wrapIntegers?:boolean|IntegerTypeCastOptions;} &PagedRequest

QueryRowsCallback

exporttypeQueryRowsCallback=PagedCallback

QueryRowsResponse

exporttypeQueryRowsResponse=PagedResponse

QueryStreamOptions

exporttypeQueryStreamOptions={wrapIntegers?:boolean|IntegerTypeCastOptions;};

RoutineCallback

exporttypeRoutineCallback=ResourceCallback

RoutineMetadata

exporttypeRoutineMetadata=bigquery.IRoutine;

RoutineResponse

exporttypeRoutineResponse=[Routine,bigquery.IRoutine];

RowMetadata

exporttypeRowMetadata=any;

RowsCallback

exporttypeRowsCallback=PagedCallback

RowsResponse

exporttypeRowsResponse=PagedResponse

SetPolicyOptions

exporttypeSetPolicyOptions=Omit

SetTableMetadataOptions

exporttypeSetTableMetadataOptions=TableMetadata;

SimpleQueryRowsCallback

exporttypeSimpleQueryRowsCallback=ResourceCallback

SimpleQueryRowsResponse

exporttypeSimpleQueryRowsResponse=[RowMetadata[],bigquery.IJob];

TableCallback

exporttypeTableCallback=ResourceCallback

TableField

exporttypeTableField=bigquery.ITableFieldSchema;

TableMetadata

exporttypeTableMetadata=bigquery.ITable &{name?:string;schema?:string|TableField[]|TableSchema;partitioning?:string;view?:string|ViewDefinition;};

TableResponse

exporttypeTableResponse=[Table,bigquery.ITable];

TableRow

exporttypeTableRow=bigquery.ITableRow;

TableRowField

exporttypeTableRowField=bigquery.ITableCell;

TableRowValue

exporttypeTableRowValue=string|TableRow;

TableSchema

exporttypeTableSchema=bigquery.ITableSchema;

ValueType

exporttypeValueType=bigquery.IQueryParameterType;

ViewDefinition

exporttypeViewDefinition=bigquery.IViewDefinition;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.