pub enum TransactionModeKind {
Deferred,
Immediate,
Exclusive,
}Expand description
SQLite’s BEGIN transaction-mode modifier (sqlite-begin-transaction-modifiers):
selects the locking behaviour SQLite uses to acquire the database lock. Distinct
from TransactionMode (the ANSI/PostgreSQL START TRANSACTION/SET TRANSACTION
isolation-level and access-mode list) — SQLite’s three keywords are their own
closed, position-fixed vocabulary (immediately after BEGIN, before TRANSACTION),
not a mode list.
Variants§
Deferred
BEGIN DEFERRED — acquire the database lock lazily (SQLite).
Immediate
BEGIN IMMEDIATE — acquire a reserved lock immediately (SQLite).
Exclusive
BEGIN EXCLUSIVE — acquire an exclusive lock immediately (SQLite).
Trait Implementations§
Source§impl Clone for TransactionModeKind
impl Clone for TransactionModeKind
Source§fn clone(&self) -> TransactionModeKind
fn clone(&self) -> TransactionModeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionModeKind
Source§impl Debug for TransactionModeKind
impl Debug for TransactionModeKind
Source§impl<'de> Deserialize<'de> for TransactionModeKind
impl<'de> Deserialize<'de> for TransactionModeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransactionModeKind
Source§impl Hash for TransactionModeKind
impl Hash for TransactionModeKind
Source§impl PartialEq for TransactionModeKind
impl PartialEq for TransactionModeKind
Source§impl Render for TransactionModeKind
impl Render for TransactionModeKind
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for TransactionModeKind
impl Serialize for TransactionModeKind
impl StructuralPartialEq for TransactionModeKind
Auto Trait Implementations§
impl Freeze for TransactionModeKind
impl RefUnwindSafe for TransactionModeKind
impl Send for TransactionModeKind
impl Sync for TransactionModeKind
impl Unpin for TransactionModeKind
impl UnsafeUnpin for TransactionModeKind
impl UnwindSafe for TransactionModeKind
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