pub struct PgTransactionExecutor { /* private fields */ }Expand description
A transaction owns one checked-out pooled connection for its complete
lifetime. Using SQL BEGIN/COMMIT avoids a self-referential wrapper around
tokio_postgres::Transaction while preserving connection affinity.
Trait Implementations§
Source§impl SqlTransport for PgTransactionExecutor
impl SqlTransport for PgTransactionExecutor
type Error = MutationExecutorError
async fn fetch_all_compact_sql( &self, query: &CompiledQuery, ) -> Result<Vec<CompactRow>, Self::Error>
async fn execute_sql(&self, query: &CompiledQuery) -> Result<u64, Self::Error>
fn fetch_repeated_compact_sql( &self, template: &CompiledQuery, param_index: usize, values: &[Value], ) -> impl Future<Output = Result<Vec<CompactRow>, Self::Error>> + Send
Auto Trait Implementations§
impl !RefUnwindSafe for PgTransactionExecutor
impl !UnwindSafe for PgTransactionExecutor
impl Freeze for PgTransactionExecutor
impl Send for PgTransactionExecutor
impl Sync for PgTransactionExecutor
impl Unpin for PgTransactionExecutor
impl UnsafeUnpin for PgTransactionExecutor
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