Enum sea_orm::IsolationLevel
source · pub enum IsolationLevel {
RepeatableRead,
ReadCommitted,
ReadUncommitted,
Serializable,
}
Expand description
Isolation level
Variants§
RepeatableRead
Consistent reads within the same transaction read the snapshot established by the first read.
ReadCommitted
Each consistent read, even within the same transaction, sets and reads its own fresh snapshot.
ReadUncommitted
SELECT statements are performed in a nonlocking fashion, but a possible earlier version of a row might be used.
Serializable
All statements of the current transaction can only see rows committed before the first query or data-modification statement was executed in this transaction.
Trait Implementations§
source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
source§fn clone(&self) -> IsolationLevel
fn clone(&self) -> IsolationLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IsolationLevel
impl Debug for IsolationLevel
source§impl Display for IsolationLevel
impl Display for IsolationLevel
source§impl PartialEq<IsolationLevel> for IsolationLevel
impl PartialEq<IsolationLevel> for IsolationLevel
source§fn eq(&self, other: &IsolationLevel) -> bool
fn eq(&self, other: &IsolationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IsolationLevel
impl Eq for IsolationLevel
impl StructuralEq for IsolationLevel
impl StructuralPartialEq for IsolationLevel
Auto Trait Implementations§
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.