Enum google_api_proto::google::spanner::executor::v1::spanner_action::Action
source · pub enum Action {
Show 17 variants
Start(StartTransactionAction),
Finish(FinishTransactionAction),
Read(ReadAction),
Query(QueryAction),
Mutation(MutationAction),
Dml(DmlAction),
BatchDml(BatchDmlAction),
Write(WriteMutationsAction),
PartitionedUpdate(PartitionedUpdateAction),
Admin(AdminAction),
StartBatchTxn(StartBatchTransactionAction),
CloseBatchTxn(CloseBatchTransactionAction),
GenerateDbPartitionsRead(GenerateDbPartitionsForReadAction),
GenerateDbPartitionsQuery(GenerateDbPartitionsForQueryAction),
ExecutePartition(ExecutePartitionAction),
ExecuteChangeStreamQuery(ExecuteChangeStreamQuery),
QueryCancellation(QueryCancellationAction),
}
Expand description
Action represents a spanner action kind, there will only be one action kind per SpannerAction.
Variants§
Start(StartTransactionAction)
Action to start a transaction.
Finish(FinishTransactionAction)
Action to finish a transaction.
Read(ReadAction)
Action to do a normal read.
Query(QueryAction)
Action to do a query.
Mutation(MutationAction)
Action to buffer a mutation.
Dml(DmlAction)
Action to a DML.
BatchDml(BatchDmlAction)
Action to a batch DML.
Write(WriteMutationsAction)
Action to write a mutation.
PartitionedUpdate(PartitionedUpdateAction)
Action to a partitioned update.
Admin(AdminAction)
Action that contains any administrative operation, like database, instance manipulation.
StartBatchTxn(StartBatchTransactionAction)
Action to start a batch transaction.
CloseBatchTxn(CloseBatchTransactionAction)
Action to close a batch transaction.
GenerateDbPartitionsRead(GenerateDbPartitionsForReadAction)
Action to generate database partitions for batch read.
GenerateDbPartitionsQuery(GenerateDbPartitionsForQueryAction)
Action to generate database partitions for batch query.
ExecutePartition(ExecutePartitionAction)
Action to execute batch actions on generated partitions.
ExecuteChangeStreamQuery(ExecuteChangeStreamQuery)
Action to execute change stream query.
QueryCancellation(QueryCancellationAction)
Query cancellation action for testing the cancellation of a query.
Implementations§
source§impl Action
impl Action
sourcepub fn merge(
field: &mut Option<Action>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Action>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl !Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request