Skip to content

Latest commit

 

History

History

samples

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.

cd samples

npm install

cd ..

Samples

Delete Snippets

View the source code.

Open in Cloud Shell

Usage:

node samples/deleteSnippets.js


Filter Snippets

View the source code.

Open in Cloud Shell

Usage:

node samples/filterSnippets.js


Instances

View the source code.

Open in Cloud Shell

Usage:

node samples/instances.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node quickstart.js <instanceId> <tableId>


Read Snippets

View the source code.

Open in Cloud Shell

Usage:

node samples/readSnippets.js


Tableadmin

View the source code.

Open in Cloud Shell

Usage:

node samples/tableadmin.js


Write Batch

View the source code.

Open in Cloud Shell

Usage:

node writeBatch.js <instanceId> <tableId>


Write Conditionally

View the source code.

Open in Cloud Shell

Usage:

node writeConditionally.js <instanceId> <tableId>


Write Increment

View the source code.

Open in Cloud Shell

Usage:

node writeIncrement.js <instanceId> <tableId>


Simple Insert

Insert a row into a table.

View the source code.

Open in Cloud Shell

Usage:

node writeSimple.js <instanceId> <tableId>