pub enum BulkMode {
Off,
Auto,
On,
}Expand description
Variants§
Off
Never use the bulk path. Every batch goes through the generic
INSERT INTO ... VALUES (..), (..) (or backend equivalent).
Auto
Try the bulk path; on SqlError::BulkUnavailable emit one
stderr warning and fall back to the generic path for the
current batch. Any other error surfaces immediately —
degrading on, e.g., a FK violation would risk double-inserts.
On
Require the bulk path. If a backend returns
SqlError::BulkUnavailable, copy_rows fails with a
usage-style error instead of falling back.
Implementations§
Trait Implementations§
impl Copy for BulkMode
impl Eq for BulkMode
impl StructuralPartialEq for BulkMode
Auto Trait Implementations§
impl Freeze for BulkMode
impl RefUnwindSafe for BulkMode
impl Send for BulkMode
impl Sync for BulkMode
impl Unpin for BulkMode
impl UnsafeUnpin for BulkMode
impl UnwindSafe for BulkMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.