pub enum RawSqlExecution {
ReadOnly,
Write,
Migration,
RawNoRetry,
}Expand description
Explicit execution classification for raw SQL.
Raw SQL is not inspected to decide retry safety. Typed raw queries default
to RawNoRetry; callers must opt into ReadOnly deliberately when the SQL
is idempotent and safe to retry.
Variants§
ReadOnly
Read-only SQL that may use configured read retry policy.
Write
SQL with side effects.
Migration
Migration or schema-management SQL.
RawNoRetry
Raw SQL that must not use automatic retry.
Trait Implementations§
Source§impl Clone for RawSqlExecution
impl Clone for RawSqlExecution
Source§fn clone(&self) -> RawSqlExecution
fn clone(&self) -> RawSqlExecution
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 moreSource§impl Debug for RawSqlExecution
impl Debug for RawSqlExecution
Source§impl Hash for RawSqlExecution
impl Hash for RawSqlExecution
Source§impl Ord for RawSqlExecution
impl Ord for RawSqlExecution
Source§fn cmp(&self, other: &RawSqlExecution) -> Ordering
fn cmp(&self, other: &RawSqlExecution) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RawSqlExecution
impl PartialEq for RawSqlExecution
Source§fn eq(&self, other: &RawSqlExecution) -> bool
fn eq(&self, other: &RawSqlExecution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RawSqlExecution
impl PartialOrd for RawSqlExecution
impl Copy for RawSqlExecution
impl Eq for RawSqlExecution
impl StructuralPartialEq for RawSqlExecution
Auto Trait Implementations§
impl Freeze for RawSqlExecution
impl RefUnwindSafe for RawSqlExecution
impl Send for RawSqlExecution
impl Sync for RawSqlExecution
impl Unpin for RawSqlExecution
impl UnsafeUnpin for RawSqlExecution
impl UnwindSafe for RawSqlExecution
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