pub enum TransactionChange {
Insert {
table_name: String,
row: Row,
},
Update {
table_name: String,
row_index: usize,
old_row: Row,
new_row: Row,
},
Delete {
table_name: String,
row_index: usize,
row: Row,
},
CreateTable {
table_name: String,
},
DropTable {
table_name: String,
},
CreateIndex {
index_name: String,
table_name: String,
},
DropIndex {
index_name: String,
},
}Expand description
A change made during a transaction that needs to be applied on commit.
Variants§
Insert
A row was inserted
Update
A row was updated (old values for rollback reference)
Delete
A row was deleted
CreateTable
A table was created
DropTable
A table was dropped
CreateIndex
An index was created
DropIndex
An index was dropped
Trait Implementations§
Source§impl Clone for TransactionChange
impl Clone for TransactionChange
Source§fn clone(&self) -> TransactionChange
fn clone(&self) -> TransactionChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionChange
impl Debug for TransactionChange
Source§impl PartialEq for TransactionChange
impl PartialEq for TransactionChange
Source§fn eq(&self, other: &TransactionChange) -> bool
fn eq(&self, other: &TransactionChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionChange
Auto Trait Implementations§
impl Freeze for TransactionChange
impl RefUnwindSafe for TransactionChange
impl Send for TransactionChange
impl Sync for TransactionChange
impl Unpin for TransactionChange
impl UnsafeUnpin for TransactionChange
impl UnwindSafe for TransactionChange
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
Wrap the input message
T in a tonic::Request