pub enum WriteOp<'a> {
Single {
query: &'a str,
params: &'a [&'a (dyn ToSql + Sync)],
mode: FetchMode,
},
BatchDDL {
queries: &'a [&'a str],
},
BatchParams {
query: &'a str,
params_list: Vec<Vec<Box<dyn ToSql + Sync + Send>>>,
},
}Expand description
Unified write operation types for Postgres.
Variants§
Single
Single query with optional return.
BatchDDL
Batch of DDL statements executed in a single transaction.
BatchParams
Same query executed for each parameter set in a transaction.
Auto Trait Implementations§
impl<'a> Freeze for WriteOp<'a>
impl<'a> !RefUnwindSafe for WriteOp<'a>
impl<'a> Send for WriteOp<'a>
impl<'a> Sync for WriteOp<'a>
impl<'a> Unpin for WriteOp<'a>
impl<'a> UnsafeUnpin for WriteOp<'a>
impl<'a> !UnwindSafe for WriteOp<'a>
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