Skip navigation links

@Generated(value="by gapic-generator")

Package com.google.cloud.spanner.v1

A client to Cloud Spanner API.

See: Description

Package com.google.cloud.spanner.v1 Description

A client to Cloud Spanner API.

The interfaces provided are listed below, along with usage samples.

============= SpannerClient =============

Service Description: Cloud Spanner API

The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases.

Sample for SpannerClient:

 
 try (SpannerClient spannerClient = SpannerClient.create()) {
   DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
   Session response = spannerClient.createSession(database);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.