Struct google_spanner1::CommitRequest
source · pub struct CommitRequest {
pub transaction_id: Option<String>,
pub mutations: Option<Vec<Mutation>>,
pub single_use_transaction: Option<TransactionOptions>,
}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§
§transaction_id: Option<String>Commit a previously-started transaction.
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.
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 is possible that the mutations are
executed more than once. If this is undesirable, use
BeginTransaction and
Commit instead.
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