Package com.google.spanner.adapter.v1


@Generated("by gapic-generator-java") package com.google.spanner.adapter.v1
A client to Cloud Spanner API

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

======================= AdapterClient =======================

Service Description: Cloud Spanner Adapter API

The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream.

Sample for AdapterClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AdapterClient adapterClient = AdapterClient.create()) {
   DatabaseName parent = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
   Session session = Session.newBuilder().build();
   Session response = adapterClient.createSession(parent, session);
 }