pub enum IsolationLevel {
ReadUncommitted,
ReadCommitted,
RepeatableRead,
Serializable,
}Expand description
v7.38 轴 4 — PG-standard isolation levels. SPG accepts all four
at parse time and tracks the selected value on the engine. The
actual semantic differentiation (REPEATABLE READ snapshot,
SERIALIZABLE SSI) lands in the v7.38 isolation framework train;
today every level reads as effective READ COMMITTED (which is
also how PG treats READ UNCOMMITTED — it silently upgrades to
READ COMMITTED). Default = ReadCommitted.
Variants§
Implementations§
Source§impl IsolationLevel
impl IsolationLevel
Sourcepub fn as_pg_str(self) -> &'static str
pub fn as_pg_str(self) -> &'static str
Canonical PG-style display name, as SHOW transaction_isolation
would return it. v7.39 (round 770, F31 tranche 6 #154) — PG
KEEPS the “read uncommitted” label (measured: BEGIN ISOLATION LEVEL READ UNCOMMITTED; SHOW transaction_isolation answers
read uncommitted) and only BEHAVES as read committed; the old
fold renamed the label too.
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
Source§fn clone(&self) -> IsolationLevel
fn clone(&self) -> IsolationLevel
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 IsolationLevel
Source§impl Debug for IsolationLevel
impl Debug for IsolationLevel
Source§impl Default for IsolationLevel
impl Default for IsolationLevel
Source§fn default() -> IsolationLevel
fn default() -> IsolationLevel
Returns the “default value” for a type. Read more
Source§impl Display for IsolationLevel
impl Display for IsolationLevel
impl Eq for IsolationLevel
Source§impl PartialEq for IsolationLevel
impl PartialEq for IsolationLevel
impl StructuralPartialEq for IsolationLevel
Auto Trait Implementations§
impl Freeze for IsolationLevel
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin for IsolationLevel
impl UnsafeUnpin for IsolationLevel
impl UnwindSafe for IsolationLevel
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