Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
system-test
.eslintrc.yml
README.md
batch.js
crud.js
datatypes.js
dml.js
indexing.js
package.json
quickstart.js
schema.js
struct.js
timestamp.js
transaction.js

README.md

Google Cloud Platform logo

Cloud Spanner: Node.js Samples

Open in Cloud Shell

Cloud Spanner is a fully managed, mission-critical, relational database service that offers transactional consistency at global scale, schemas, SQL (ANSI 2011 with extensions), and automatic, synchronous replication for high availability.

Table of Contents

Before you begin

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

Samples

Batch

View the source code.

Open in Cloud Shell

Usage:

node batch.js


CRUD

View the source code.

Open in Cloud Shell

Usage:

node crud.js


Datatypes

View the source code.

Open in Cloud Shell

Usage:

node datatypes.js


DML

View the source code.

Open in Cloud Shell

Usage:

node dml.js


Indexing

View the source code.

Open in Cloud Shell

Usage:

node indexing.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node quickstart.js


Schema

View the source code.

Open in Cloud Shell

Usage:

node schema.js


Struct

View the source code.

Open in Cloud Shell

Usage:

node struct.js


Timestamp

View the source code.

Open in Cloud Shell

Usage:

node timestamp.js


Transaction

View the source code.

Open in Cloud Shell

Usage:

node transaction.js

You can’t perform that action at this time.