pub enum TransactionResult<P>{
CreateTable {
table_name: String,
},
Insert {
rows_inserted: usize,
},
Update {
rows_matched: usize,
rows_updated: usize,
},
Delete {
rows_deleted: usize,
},
CreateIndex {
table_name: String,
index_name: Option<String>,
},
Select {
table_name: String,
schema: Arc<Schema>,
execution: SelectExecution<P>,
},
Transaction {
kind: TransactionKind,
},
NoOp,
}Expand description
Transaction result enum representing the outcome of a transaction operation.
This enum encapsulates the results of various database operations executed within a transaction context, including DDL and DML statements.
Variants§
CreateTable
CREATE TABLE result
Insert
INSERT result with row count
Update
UPDATE result with match and update counts
Delete
DELETE result with row count
CreateIndex
CREATE INDEX result
Select
SELECT result with streaming execution handle
Transaction
Transaction control statement result
Fields
§
kind: TransactionKindNoOp
No-op result (e.g., for DDL statements that don’t produce output)
Implementations§
Source§impl<P> TransactionResult<P>
impl<P> TransactionResult<P>
Sourcepub fn convert_pager_type<P2>(self) -> Result<TransactionResult<P2>, Error>
pub fn convert_pager_type<P2>(self) -> Result<TransactionResult<P2>, Error>
Convert pager type for compatibility across different storage backends.
Trait Implementations§
Source§impl<P> Clone for TransactionResult<P>
impl<P> Clone for TransactionResult<P>
Source§fn clone(&self) -> TransactionResult<P>
fn clone(&self) -> TransactionResult<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<P> Freeze for TransactionResult<P>
impl<P> !RefUnwindSafe for TransactionResult<P>
impl<P> Send for TransactionResult<P>
impl<P> Sync for TransactionResult<P>
impl<P> Unpin for TransactionResult<P>
impl<P> !UnwindSafe for TransactionResult<P>
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
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> 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 more