pub struct TransactionModes {
pub isolation: Option<IsolationLevel>,
pub read_only: Option<bool>,
}Expand description
v7.39 (round 293, E3 Phase 1) — a row-locking clause.
spg-sql cannot depend on spg-engine, so the strengths and
policies are spelled again here and mapped at the engine boundary.
v7.39 — the modes BEGIN / START TRANSACTION / SET TRANSACTION
/ SET SESSION CHARACTERISTICS accept. read_only used to be parsed
and dropped on the floor, so BEGIN READ ONLY opened an ordinary
read-write transaction and every write in it was accepted.
None on either field means the statement did not name that mode, so
the session default applies — which is not the same as naming the
default explicitly.
Fields§
§isolation: Option<IsolationLevel>§read_only: Option<bool>Some(true) = READ ONLY, Some(false) = READ WRITE.
Trait Implementations§
Source§impl Clone for TransactionModes
impl Clone for TransactionModes
Source§fn clone(&self) -> TransactionModes
fn clone(&self) -> TransactionModes
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 TransactionModes
Source§impl Debug for TransactionModes
impl Debug for TransactionModes
Source§impl Default for TransactionModes
impl Default for TransactionModes
Source§fn default() -> TransactionModes
fn default() -> TransactionModes
Returns the “default value” for a type. Read more
impl Eq for TransactionModes
Source§impl PartialEq for TransactionModes
impl PartialEq for TransactionModes
impl StructuralPartialEq for TransactionModes
Auto Trait Implementations§
impl Freeze for TransactionModes
impl RefUnwindSafe for TransactionModes
impl Send for TransactionModes
impl Sync for TransactionModes
impl Unpin for TransactionModes
impl UnsafeUnpin for TransactionModes
impl UnwindSafe for TransactionModes
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