[Cloud Spanner](https://cloud.google.com/spanner) is a highly scalable, transactional, managed, NewSQL database service. Cloud Spanner solves the need for a horizontally-scaling database with consistent global transaction and SQL semantics. With Cloud Spanner you don't need to choose between consistency and horizontal scaling — you get both.
Placeholder used to auto populate a column with the commit timestamp. This can only be used for timestamp columns that have set the option "(allow_commit_timestamp=true)" in the schema.
{string}
Property Value
Type
Description
string
instances_
instances_:Map<string,Instance>;
Property Value
Type
Description
Map<string, Instance>
options
options:GoogleAuthOptions;
Property Value
Type
Description
GoogleAuthOptions
projectFormattedName_
projectFormattedName_:string;
Property Value
Type
Description
string
projectIdReplaced_
projectIdReplaced_:boolean;
Property Value
Type
Description
boolean
resourceHeader_
resourceHeader_:{[k:string]:string;};
Property Value
Type
Description
{
[k: string]: string;
}
Methods
close()
close():void;
Closes this Spanner client and cleans up all resources used by it.
Get a list of instance configs as a readable object stream.
Wrapper around .
[ListInstanceConfigs API Documentation](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.admin.instance.v1#google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs)
Spanner#getInstanceConfigsStream
Parameter
Type
Name
Description
GetInstanceConfigsOptions
options
Query object for listing instance configs.
Returns
Type
Description
NodeJS.ReadableStream
{ReadableStream} A readable stream that emits instance configs.
Get a list of Instance objects as a readable object stream.
Wrapper around .
[ListInstances API Documentation](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.admin.instance.v1#google.spanner.admin.instance.v1.InstanceAdmin.ListInstances)
Spanner#getInstancesStream
Parameter
Type
Name
Description
GetInstancesOptions
options
Query object for listing instances.
Returns
Type
Description
NodeJS.ReadableStream
{ReadableStream} A readable stream that emits Instance instances.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]