Movatterモバイル変換


[0]ホーム

URL:


Google Cloud Platform logo

Google BigQuery: Node.js Client

release levelnpm version

Google BigQuery Client Library for Node.js

A comprehensive list of changes in each version may be found inthe CHANGELOG.

Read more about the client libraries for Cloud APIs, including the olderGoogle APIs Client Libraries, inClient Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable the Google BigQuery API.
  3. Set up authentication so you can access theAPI from your local workstation.

Installing the client library

npm install @google-cloud/bigquery

Using the client library

// Imports the Google Cloud client libraryconst {BigQuery} = require('@google-cloud/bigquery');async function createDataset() {  // Creates a client  const bigqueryClient = new BigQuery();  // Create the dataset  const [dataset] = await bigqueryClient.createDataset(datasetName);  console.log(`Dataset ${dataset.id} created.`);}createDataset();

Samples

Samples are in thesamples/ directory. Each sample'sREADME.md has instructions for running its sample.

SampleSource CodeTry it
Add Column Load Appendsource codeOpen in Cloud Shell
Add Column Query Appendsource codeOpen in Cloud Shell
Add Empty Columnsource codeOpen in Cloud Shell
Auth View Tutorialsource codeOpen in Cloud Shell
Browse Tablesource codeOpen in Cloud Shell
Cancel Jobsource codeOpen in Cloud Shell
Client JSON Credentialssource codeOpen in Cloud Shell
Copy Tablesource codeOpen in Cloud Shell
Copy Table Multiple Sourcesource codeOpen in Cloud Shell
Create Datasetsource codeOpen in Cloud Shell
Create Jobsource codeOpen in Cloud Shell
Create Modelsource codeOpen in Cloud Shell
Create Routinesource codeOpen in Cloud Shell
Create Routine DDLsource codeOpen in Cloud Shell
Create Tablesource codeOpen in Cloud Shell
Create Table Clusteredsource codeOpen in Cloud Shell
Create Table Column ACLsource codeOpen in Cloud Shell
Create Table Partitionedsource codeOpen in Cloud Shell
Create Table Range Partitionedsource codeOpen in Cloud Shell
Create Viewsource codeOpen in Cloud Shell
Ddl Create Viewsource codeOpen in Cloud Shell
Delete Datasetsource codeOpen in Cloud Shell
Delete Label Datasetsource codeOpen in Cloud Shell
Delete Label Tablesource codeOpen in Cloud Shell
Delete Modelsource codeOpen in Cloud Shell
Delete Routinesource codeOpen in Cloud Shell
Delete Tablesource codeOpen in Cloud Shell
Extract Table Compressedsource codeOpen in Cloud Shell
Extract Table JSONsource codeOpen in Cloud Shell
Extract Table To GCSsource codeOpen in Cloud Shell
Get Datasetsource codeOpen in Cloud Shell
Get Dataset Labelssource codeOpen in Cloud Shell
Get Jobsource codeOpen in Cloud Shell
BigQuery Get Modelsource codeOpen in Cloud Shell
Get Routinesource codeOpen in Cloud Shell
BigQuery Get Tablesource codeOpen in Cloud Shell
Get Table Labelssource codeOpen in Cloud Shell
Get Viewsource codeOpen in Cloud Shell
Insert Rows As Streamsource codeOpen in Cloud Shell
Inserting Data Typessource codeOpen in Cloud Shell
BigQuery Label Datasetsource codeOpen in Cloud Shell
Label Tablesource codeOpen in Cloud Shell
List Datasetssource codeOpen in Cloud Shell
List Datasets By Labelsource codeOpen in Cloud Shell
List Jobssource codeOpen in Cloud Shell
BigQuery List Modelssource codeOpen in Cloud Shell
BigQuery List Models Streamingsource codeOpen in Cloud Shell
List Routinessource codeOpen in Cloud Shell
List Tablessource codeOpen in Cloud Shell
Load CSV From GCSsource codeOpen in Cloud Shell
Load CSV From GCS Autodetectsource codeOpen in Cloud Shell
Load CSV From GCS Truncatesource codeOpen in Cloud Shell
Load JSON From GCSsource codeOpen in Cloud Shell
Load JSON From GCS Autodetectsource codeOpen in Cloud Shell
Load JSON From GCS Truncatesource codeOpen in Cloud Shell
Load Local Filesource codeOpen in Cloud Shell
Load Orc From GCS Truncatesource codeOpen in Cloud Shell
Load Parquet From GCS Truncatesource codeOpen in Cloud Shell
Load Table Clusteredsource codeOpen in Cloud Shell
Load Table GCS Avrosource codeOpen in Cloud Shell
Load Table GCS Avro Truncatesource codeOpen in Cloud Shell
Load Table GCSORCsource codeOpen in Cloud Shell
Load Table GCS Parquetsource codeOpen in Cloud Shell
Load Table Partitionedsource codeOpen in Cloud Shell
Load Table URI Firestoresource codeOpen in Cloud Shell
Nested Repeated Schemasource codeOpen in Cloud Shell
Querysource codeOpen in Cloud Shell
Query Batchsource codeOpen in Cloud Shell
Query Clustered Tablesource codeOpen in Cloud Shell
Query Destination Tablesource codeOpen in Cloud Shell
Query Disable Cachesource codeOpen in Cloud Shell
Query Dry Runsource codeOpen in Cloud Shell
Query External GCS Permsource codeOpen in Cloud Shell
Query External GCS Tempsource codeOpen in Cloud Shell
Query Job Optionalsource codeOpen in Cloud Shell
Query Legacysource codeOpen in Cloud Shell
Query Legacy Large Resultssource codeOpen in Cloud Shell
Query Paginationsource codeOpen in Cloud Shell
Query Params Arrayssource codeOpen in Cloud Shell
Query Params Namedsource codeOpen in Cloud Shell
Query Params Named Typessource codeOpen in Cloud Shell
Query Params Positionalsource codeOpen in Cloud Shell
Query Params Positional Typessource codeOpen in Cloud Shell
Query Params Structssource codeOpen in Cloud Shell
Query Params Timestampssource codeOpen in Cloud Shell
Query Stack Overflowsource codeOpen in Cloud Shell
Quickstartsource codeOpen in Cloud Shell
Relax Columnsource codeOpen in Cloud Shell
Relax Column Load Appendsource codeOpen in Cloud Shell
Relax Column Query Appendsource codeOpen in Cloud Shell
Remove Table Clusteringsource codeOpen in Cloud Shell
Set Client Endpointsource codeOpen in Cloud Shell
Set User Agentsource codeOpen in Cloud Shell
Table Existssource codeOpen in Cloud Shell
Undelete Tablesource codeOpen in Cloud Shell
Update Dataset Accesssource codeOpen in Cloud Shell
Update Dataset Descriptionsource codeOpen in Cloud Shell
Update Dataset Expirationsource codeOpen in Cloud Shell
BigQuery Update Modelsource codeOpen in Cloud Shell
Update Routinesource codeOpen in Cloud Shell
Update Table Column ACLsource codeOpen in Cloud Shell
Update Table Descriptionsource codeOpen in Cloud Shell
Update Table Expirationsource codeOpen in Cloud Shell
Update View Querysource codeOpen in Cloud Shell

TheGoogle BigQuery Node.js Client API Reference documentationalso contains samples.

Supported Node.js Versions

Our client libraries follow theNode.js release schedule.Libraries are compatible with all currentactive andmaintenance versions ofNode.js.If you are using an end-of-life version of Node.js, we recommend that you updateas soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on abest-efforts basis with the following warnings:

Client libraries targeting some end-of-life versions of Node.js are available, andcan be installed through npmdist-tags.The dist-tags follow the naming conventionlegacy-(version).For example,npm install @google-cloud/bigquery@legacy-8 installs client librariesfor versions compatible with Node.js 8.

Versioning

This library followsSemantic Versioning.

This library is considered to bestable. The code surface will not change in backwards-incompatible waysunless absolutely necessary (e.g. because of critical security issues) or withan extensive deprecation period. Issues and requests againststable librariesare addressed with the highest priority.

More Information:Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See theContributing Guide.

Please note that thisREADME.md, thesamples/README.md,and a variety of configuration files in this repository (including.nycrc andtsconfig.json)are generated from a central template. To edit one of these files, make an editto its templates indirectory.

License

Apache Version 2.0

SeeLICENSE



[8]ページ先頭

©2009-2025 Movatter.jp