pub enum TransactionConfig {
Deferred,
Immediate,
Exclusive,
}Expand description
How a SQLite transaction takes locks when it begins
(BEGIN DEFERRED, BEGIN IMMEDIATE or BEGIN EXCLUSIVE).
Variants§
Deferred
Takes no lock until the first read or write. The default.
Immediate
Starts a write transaction at once, so other connections cannot start writing.
Exclusive
Like Immediate; in rollback-journal mode it also blocks other
connections from reading.
Trait Implementations§
Source§impl Clone for TransactionConfig
impl Clone for TransactionConfig
impl Copy for TransactionConfig
Source§impl Debug for TransactionConfig
impl Debug for TransactionConfig
Source§impl Default for TransactionConfig
impl Default for TransactionConfig
impl Eq for TransactionConfig
Source§impl PartialEq for TransactionConfig
impl PartialEq for TransactionConfig
impl StructuralPartialEq for TransactionConfig
Auto Trait Implementations§
impl Freeze for TransactionConfig
impl RefUnwindSafe for TransactionConfig
impl Send for TransactionConfig
impl Sync for TransactionConfig
impl Unpin for TransactionConfig
impl UnsafeUnpin for TransactionConfig
impl UnwindSafe for TransactionConfig
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