Struct googapis::google::spanner::v1::ExecuteBatchDmlRequest [−][src]
pub struct ExecuteBatchDmlRequest {
pub session: String,
pub transaction: Option<TransactionSelector>,
pub statements: Vec<Statement>,
pub seqno: i64,
pub request_options: Option<RequestOptions>,
}
Expand description
The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].
Fields
session: String
Required. The session in which the DML statements should be performed.
transaction: Option<TransactionSelector>
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
statements: Vec<Statement>
Required. The list of statements to execute in this batch. Statements are executed
serially, such that the effects of statement i
are visible to statement
i+1
. Each statement must be a DML statement. Execution stops at the
first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
seqno: i64
Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed.
The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
request_options: Option<RequestOptions>
Common options for this request.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExecuteBatchDmlRequest
impl Send for ExecuteBatchDmlRequest
impl Sync for ExecuteBatchDmlRequest
impl Unpin for ExecuteBatchDmlRequest
impl UnwindSafe for ExecuteBatchDmlRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more