pub struct CommitRequest {
pub max_commit_delay: Option<Duration>,
pub mutations: Option<Vec<Mutation>>,
pub precommit_token: Option<MultiplexedSessionPrecommitToken>,
pub request_options: Option<RequestOptions>,
pub return_commit_stats: Option<bool>,
pub single_use_transaction: Option<TransactionOptions>,
pub transaction_id: Option<Vec<u8>>,
}Expand description
The request for Commit.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§max_commit_delay: Option<Duration>Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field isn’t set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.
mutations: Option<Vec<Mutation>>The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
precommit_token: Option<MultiplexedSessionPrecommitToken>Optional. If the read-write transaction was executed on a multiplexed session, then you must include the precommit token with the highest sequence number received in this transaction attempt. Failing to do so results in a FailedPrecondition error.
request_options: Option<RequestOptions>Common options for this request.
return_commit_stats: Option<bool>If true, then statistics related to the transaction is included in the CommitResponse. Default value is false.
single_use_transaction: Option<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’s possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.
transaction_id: Option<Vec<u8>>Commit a previously-started transaction.
Trait Implementations§
Source§impl Clone for CommitRequest
impl Clone for CommitRequest
Source§fn clone(&self) -> CommitRequest
fn clone(&self) -> CommitRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more