@Generated(value="by gapic-generator-java")
See: Description
Class | Description |
---|---|
SpannerClient |
Service Description: Cloud Spanner API
|
SpannerClient.ListSessionsFixedSizeCollection | |
SpannerClient.ListSessionsPage | |
SpannerClient.ListSessionsPagedResponse | |
SpannerSettings |
Settings class to configure an instance of
SpannerClient . |
SpannerSettings.Builder |
Builder for SpannerSettings.
|
======================= 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);
}
Copyright © 2022 Google LLC. All rights reserved.