CommitRequest
class CommitRequest extends Message
The request for [Commit][google.spanner.v1.Spanner.Commit].
Protobuf type Google\Spanner\V1\CommitRequest
Properties
protected | $transaction |
Methods
No description
Required. The session in which the transaction to be committed is running.
Required. The session in which the transaction to be committed is running.
Commit a previously-started transaction.
Commit a previously-started 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.
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.
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
No description
Details
at line 34
__construct()
at line 45
string
getSession()
Required. The session in which the transaction to be committed is running.
Generated from protobuf field string session = 1;
at line 56
setSession(string $var)
Required. The session in which the transaction to be committed is running.
Generated from protobuf field string session = 1;
at line 68
string
getTransactionId()
Commit a previously-started transaction.
Generated from protobuf field bytes transaction_id = 2;
at line 79
setTransactionId(string $var)
Commit a previously-started transaction.
Generated from protobuf field bytes transaction_id = 2;
at line 99
TransactionOptions
getSingleUseTransaction()
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.
Generated from protobuf field .google.spanner.v1.TransactionOptions single_use_transaction = 3;
at line 118
setSingleUseTransaction(TransactionOptions $var)
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.
Generated from protobuf field .google.spanner.v1.TransactionOptions single_use_transaction = 3;
at line 132
RepeatedField
getMutations()
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
Generated from protobuf field repeated .google.spanner.v1.Mutation mutations = 4;
at line 145
setMutations(array|RepeatedField $var)
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
Generated from protobuf field repeated .google.spanner.v1.Mutation mutations = 4;