Class CommitRequest

The request for Commit][google.spanner.v1.Spanner.Commit].

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
strsession
Required. The session in which the transaction to be committed is running.
bytestransaction_id
Commit a previously-started transaction. This field is a member of `oneof`_ ``transaction``.
google.cloud.spanner_v1.types.TransactionOptionssingle_use_transaction
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. This field is a member of `oneof`_ ``transaction``.
Sequence[google.cloud.spanner_v1.types.Mutation]mutations
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
boolreturn_commit_stats
If ``true``, then statistics related to the transaction will be included in the `CommitResponse][google.spanner.v1.CommitResponse.commit_stats]`. Default value is ``false``.
google.cloud.spanner_v1.types.RequestOptionsrequest_options
Common options for this request.

Inheritance

builtins.object > proto.message.Message > CommitRequest