Skip navigation links

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

Package com.google.cloud.spanner.v1

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

See: Description

Package com.google.cloud.spanner.v1 Description

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:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (SpannerClient spannerClient = SpannerClient.create()) {
   DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
   Session response = spannerClient.createSession(database);
 }
 
Skip navigation links

Copyright © 2022 Google LLC. All rights reserved.