pub enum SqlQueryKind {
Select,
Insert,
Update,
Delete,
Create,
Alter,
Drop,
Truncate,
Merge,
Explain,
Vacuum,
Unknown,
}Expand description
Common SQL query kind labels.
Variants§
Implementations§
Source§impl SqlQueryKind
impl SqlQueryKind
Sourcepub const fn is_write(self) -> bool
pub const fn is_write(self) -> bool
Returns whether the query kind commonly mutates data or schema.
Sourcepub const fn is_schema_change(self) -> bool
pub const fn is_schema_change(self) -> bool
Returns whether the query kind commonly changes schema.
Sourcepub const fn is_destructive(self) -> bool
pub const fn is_destructive(self) -> bool
Returns whether the query kind is conservatively destructive.
Sourcepub const fn intent(self) -> SqlQueryIntent
pub const fn intent(self) -> SqlQueryIntent
Returns a broad query intent label.
Sourcepub const fn safety(self) -> SqlQuerySafety
pub const fn safety(self) -> SqlQuerySafety
Returns a broad safety label.
Trait Implementations§
Source§impl Clone for SqlQueryKind
impl Clone for SqlQueryKind
Source§fn clone(&self) -> SqlQueryKind
fn clone(&self) -> SqlQueryKind
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 SqlQueryKind
impl Debug for SqlQueryKind
Source§impl Default for SqlQueryKind
impl Default for SqlQueryKind
Source§fn default() -> SqlQueryKind
fn default() -> SqlQueryKind
Returns the “default value” for a type. Read more
Source§impl Display for SqlQueryKind
impl Display for SqlQueryKind
Source§impl FromStr for SqlQueryKind
impl FromStr for SqlQueryKind
Source§impl Hash for SqlQueryKind
impl Hash for SqlQueryKind
Source§impl Ord for SqlQueryKind
impl Ord for SqlQueryKind
Source§fn cmp(&self, other: &SqlQueryKind) -> Ordering
fn cmp(&self, other: &SqlQueryKind) -> 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 SqlQueryKind
impl PartialEq for SqlQueryKind
Source§fn eq(&self, other: &SqlQueryKind) -> bool
fn eq(&self, other: &SqlQueryKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlQueryKind
impl PartialOrd for SqlQueryKind
impl Copy for SqlQueryKind
impl Eq for SqlQueryKind
impl StructuralPartialEq for SqlQueryKind
Auto Trait Implementations§
impl Freeze for SqlQueryKind
impl RefUnwindSafe for SqlQueryKind
impl Send for SqlQueryKind
impl Sync for SqlQueryKind
impl Unpin for SqlQueryKind
impl UnsafeUnpin for SqlQueryKind
impl UnwindSafe for SqlQueryKind
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