Versions in this module Expand all Collapse all v1 v1.61.0 Apr 30, 2024 Changes in this version + func DatabasePath(project, instance, database string) string + func DefaultAuthScopes() []string + func DefaultClientOptions() []option.ClientOption + func SessionPath(project, instance, database, session string) string + type CallOptions struct + BatchCreateSessions []gax.CallOption + BatchWrite []gax.CallOption + BeginTransaction []gax.CallOption + Commit []gax.CallOption + CreateSession []gax.CallOption + DeleteSession []gax.CallOption + ExecuteBatchDml []gax.CallOption + ExecuteSql []gax.CallOption + ExecuteStreamingSql []gax.CallOption + GetSession []gax.CallOption + ListSessions []gax.CallOption + PartitionQuery []gax.CallOption + PartitionRead []gax.CallOption + Read []gax.CallOption + Rollback []gax.CallOption + StreamingRead []gax.CallOption + type Client struct + CallOptions *CallOptions + func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error) + func NewRESTClient(ctx context.Context, opts ...option.ClientOption) (*Client, error) + func (c *Client) BatchCreateSessions(ctx context.Context, req *spannerpb.BatchCreateSessionsRequest, ...) (*spannerpb.BatchCreateSessionsResponse, error) + func (c *Client) BatchWrite(ctx context.Context, req *spannerpb.BatchWriteRequest, opts ...gax.CallOption) (spannerpb.Spanner_BatchWriteClient, error) + func (c *Client) BeginTransaction(ctx context.Context, req *spannerpb.BeginTransactionRequest, ...) (*spannerpb.Transaction, error) + func (c *Client) Close() error + func (c *Client) Commit(ctx context.Context, req *spannerpb.CommitRequest, opts ...gax.CallOption) (*spannerpb.CommitResponse, error) + func (c *Client) Connection() *grpc.ClientConn + func (c *Client) CreateSession(ctx context.Context, req *spannerpb.CreateSessionRequest, ...) (*spannerpb.Session, error) + func (c *Client) DeleteSession(ctx context.Context, req *spannerpb.DeleteSessionRequest, ...) error + func (c *Client) ExecuteBatchDml(ctx context.Context, req *spannerpb.ExecuteBatchDmlRequest, ...) (*spannerpb.ExecuteBatchDmlResponse, error) + func (c *Client) ExecuteSql(ctx context.Context, req *spannerpb.ExecuteSqlRequest, opts ...gax.CallOption) (*spannerpb.ResultSet, error) + func (c *Client) ExecuteStreamingSql(ctx context.Context, req *spannerpb.ExecuteSqlRequest, opts ...gax.CallOption) (spannerpb.Spanner_ExecuteStreamingSqlClient, error) + func (c *Client) GetSession(ctx context.Context, req *spannerpb.GetSessionRequest, opts ...gax.CallOption) (*spannerpb.Session, error) + func (c *Client) ListSessions(ctx context.Context, req *spannerpb.ListSessionsRequest, ...) *SessionIterator + func (c *Client) PartitionQuery(ctx context.Context, req *spannerpb.PartitionQueryRequest, ...) (*spannerpb.PartitionResponse, error) + func (c *Client) PartitionRead(ctx context.Context, req *spannerpb.PartitionReadRequest, ...) (*spannerpb.PartitionResponse, error) + func (c *Client) Read(ctx context.Context, req *spannerpb.ReadRequest, opts ...gax.CallOption) (*spannerpb.ResultSet, error) + func (c *Client) Rollback(ctx context.Context, req *spannerpb.RollbackRequest, opts ...gax.CallOption) error + func (c *Client) SetGoogleClientInfo(keyval ...string) + func (c *Client) StreamingRead(ctx context.Context, req *spannerpb.ReadRequest, opts ...gax.CallOption) (spannerpb.Spanner_StreamingReadClient, error) + type SessionIterator struct + InternalFetch func(pageSize int, pageToken string) (results []*spannerpb.Session, nextPageToken string, err error) + Response interface{} + func (it *SessionIterator) Next() (*spannerpb.Session, error) + func (it *SessionIterator) PageInfo() *iterator.PageInfo