Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Google Cloud Platform logo

Open in Cloud Shell

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

Samples

Browse Rows

View the source code.

Open in Cloud Shell

Usage:

node browseRows.js


Copy Table

View the source code.

Open in Cloud Shell

Usage:

node copyTable.js


Create Dataset

View the source code.

Open in Cloud Shell

Usage:

node createDataset.js


Create Table

View the source code.

Open in Cloud Shell

Usage:

node createTable.js


Delete Dataset

View the source code.

Open in Cloud Shell

Usage:

node deleteDataset.js


BigQuery Delete Model

Deletes a model.

View the source code.

Open in Cloud Shell

Usage:

node deleteModel.js <DATASET_ID> <MODEL_ID>


Delete Table

View the source code.

Open in Cloud Shell

Usage:

node deleteTable.js


Extract Table To GCS

View the source code.

Open in Cloud Shell

Usage:

node extractTableToGCS.js


BigQuery Get Model

Retrieves an existing model from a dataset.

View the source code.

Open in Cloud Shell

Usage:

node getModel.js <DATASET_ID> <MODEL_ID>


Insert Rows As Stream

View the source code.

Open in Cloud Shell

Usage:

node insertRowsAsStream.js


List Datasets

View the source code.

Open in Cloud Shell

Usage:

node listDatasets.js


BigQuery List Models

Lists all existing models in the dataset.

View the source code.

Open in Cloud Shell

Usage:

node listModels.js <DATASET_ID>


BigQuery List Models Streaming

Lists all existing models in the dataset using streaming method.

View the source code.

Open in Cloud Shell

Usage:

node listModelsStreaming.js <DATASET_ID>


List Tables

View the source code.

Open in Cloud Shell

Usage:

node listTables.js


Load CSV From GCS

View the source code.

Open in Cloud Shell

Usage:

node loadCSVFromGCS.js


Load CSV From GCS Autodetect

View the source code.

Open in Cloud Shell

Usage:

node loadCSVFromGCSAutodetect.js


Load CSV From GCS Truncate

View the source code.

Open in Cloud Shell

Usage:

node loadCSVFromGCSTruncate.js


Load JSON From GCS

View the source code.

Open in Cloud Shell

Usage:

node loadJSONFromGCS.js


Load JSON From GCS Autodetect

View the source code.

Open in Cloud Shell

Usage:

node loadJSONFromGCSAutodetect.js


Load JSON From GCS Truncate

View the source code.

Open in Cloud Shell

Usage:

node loadJSONFromGCSTruncate.js


Load Local File

View the source code.

Open in Cloud Shell

Usage:

node loadLocalFile.js


Load Orc From GCS Truncate

View the source code.

Open in Cloud Shell

Usage:

node loadOrcFromGCSTruncate.js


Load Parquet From GCS Truncate

View the source code.

Open in Cloud Shell

Usage:

node loadParquetFromGCSTruncate.js


Load Table GCSORC

View the source code.

Open in Cloud Shell

Usage:

node loadTableGCSORC.js


Load Table GCS Parquet

View the source code.

Open in Cloud Shell

Usage:

node loadTableGCSParquet.js


Query

View the source code.

Open in Cloud Shell

Usage:

node query.js


Query Disable Cache

View the source code.

Open in Cloud Shell

Usage:

node queryDisableCache.js


Query Params Arrays

View the source code.

Open in Cloud Shell

Usage:

node queryParamsArrays.js


Query Params Named

View the source code.

Open in Cloud Shell

Usage:

node queryParamsNamed.js


Query Params Positional

View the source code.

Open in Cloud Shell

Usage:

node queryParamsPositional.js


Query Params Structs

View the source code.

Open in Cloud Shell

Usage:

node queryParamsStructs.js


Query Params Timestamps

View the source code.

Open in Cloud Shell

Usage:

node queryParamsTimestamps.js


Query Stack Overflow

View the source code.

Open in Cloud Shell

Usage:

node queryStackOverflow.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node quickstart.js


BigQuery Update Model

Updates a model's metadata.

View the source code.

Open in Cloud Shell

Usage:

node updateModel.js <DATASET_ID> <MODEL_ID>