singleUseTransaction property

TransactionOptions? singleUseTransaction
getter/setter pair

Execute mutations in a temporary transaction.

Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the CommitRequest is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.

Implementation

TransactionOptions? singleUseTransaction;