Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
Options.ReadQueryUpdateTransactionOption
Marker interface to mark options applicable to Read, Query, Update and Write operations
|
Modifier and Type | Method and Description |
---|---|
static Options.TransactionOption |
Options.commitStats()
Specifying this instructs the transaction to request
CommitStats from the backend. |
Modifier and Type | Method and Description |
---|---|
TransactionRunner |
DatabaseClient.readWriteTransaction(Options.TransactionOption... options)
Returns a transaction runner for executing a single logical transaction with retries.
|
AsyncRunner |
DatabaseClient.runAsync(Options.TransactionOption... options)
Returns an asynchronous transaction runner for executing a single logical transaction with
retries.
|
TransactionManager |
DatabaseClient.transactionManager(Options.TransactionOption... options)
Returns a transaction manager which allows manual management of transaction lifecycle.
|
AsyncTransactionManager |
DatabaseClient.transactionManagerAsync(Options.TransactionOption... options)
Returns an asynchronous transaction manager which allows manual management of transaction
lifecycle.
|
CommitResponse |
DatabaseClient.writeAtLeastOnceWithOptions(Iterable<Mutation> mutations,
Options.TransactionOption... options)
Writes the given mutations atomically to the database without replay protection.
|
CommitResponse |
DatabaseClient.writeWithOptions(Iterable<Mutation> mutations,
Options.TransactionOption... options)
Writes the given mutations atomically to the database with the given options.
|
Copyright © 2022 Google LLC. All rights reserved.