Index
Adapter
(interface)AdaptMessageRequest
(message)AdaptMessageResponse
(message)CreateSessionRequest
(message)Session
(message)
Adapter
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.
AdaptMessage |
---|
Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client.
|
CreateSession |
---|
Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many
|
AdaptMessageRequest
Message sent by the client to the adapter.
Fields | |
---|---|
name |
Required. The database session in which the adapter request is processed. Authorization requires the following IAM permission on the specified resource
|
protocol |
Required. Identifier for the underlying wire protocol. |
payload |
Optional. Uninterpreted bytes from the underlying wire protocol. |
attachments |
Optional. Opaque request state passed by the client to the server. |
AdaptMessageResponse
Message sent by the adapter to the client.
Fields | |
---|---|
payload |
Optional. Uninterpreted bytes from the underlying wire protocol. |
state_updates |
Optional. Opaque state updates to be applied by the client. |
CreateSessionRequest
The request for [CreateSessionRequest][Adapter.CreateSessionRequest].
Fields | |
---|---|
parent |
Required. The database in which the new session is created. Authorization requires the following IAM permission on the specified resource
|
session |
Required. The session to create. |
Session
A session in the Cloud Spanner Adapter API.
Fields | |
---|---|
name |
Identifier. The name of the session. This is always system-assigned. |