Send feedback Cloud Spanner API Stay organized with collections Save and categorize content based on your preferences.
Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
Service: spanner.googleapis.com The Service name spanner.googleapis.com
is needed to create RPC client stubs.
Methods CancelOperation
Starts asynchronous cancellation on a long-running operation. DeleteOperation
Deletes a long-running operation. GetOperation
Gets the latest state of a long-running operation. ListOperations
Lists operations that match the specified filter in the request. WaitOperation
Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state.
Methods AdaptMessage
Handles a single message from the client and returns the result as a stream. CreateSession
Creates a new session to be used for requests made by the adapter.
Methods BatchCreateSessions
Creates multiple new sessions. BatchWrite
Batches the supplied mutation groups in a collection of efficient transactions. BeginTransaction
Begins a new transaction. Commit
Commits a transaction. CreateSession
Creates a new session. DeleteSession
Ends a session, releasing server resources associated with it. ExecuteBatchDml
Executes a batch of SQL DML statements. ExecuteSql
Executes an SQL statement, returning all results in a single reply. ExecuteStreamingSql
Like ExecuteSql
, except returns the result set as a stream. GetSession
Gets a session. ListSessions
Lists all sessions in a given database. PartitionQuery
Creates a set of partition tokens that can be used to execute a query operation in parallel. PartitionRead
Creates a set of partition tokens that can be used to execute a read operation in parallel. Read
Reads rows from the database using key lookups and scans, as a simple key/value style alternative to ExecuteSql
. Rollback
Rolls back a transaction, releasing any locks it holds. StreamingRead
Like Read
, except returns the result set as a stream.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-02 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-02 UTC."],[],[]]