Class CommitRequest (3.10.0)

CommitRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request for Commit][google.spanner.v1.Spanner.Commit]. .. attribute:: session

Required. The session in which the transaction to be committed is running.

:type: str

Attributes

NameDescription
transaction_id bytes
Commit a previously-started transaction.
single_use_transaction google.cloud.spanner_v1.types.TransactionOptions
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][google.spanner.v1.Spanner.BeginTransaction] and Commit][google.spanner.v1.Spanner.Commit] instead.
mutations Sequence[google.cloud.spanner_v1.types.Mutation]
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
return_commit_stats bool
If true, then statistics related to the transaction will be included in the CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is false.
request_options google.cloud.spanner_v1.types.RequestOptions
Common options for this request.