pub enum SqlStatementRoute {
Query {
entity: String,
},
Explain {
entity: String,
},
Describe {
entity: String,
},
ShowIndexes {
entity: String,
},
ShowColumns {
entity: String,
},
ShowEntities,
}Expand description
SqlStatementRoute
Canonical SQL statement routing metadata derived from reduced SQL parser output.
Carries surface kind (Query / Explain / Describe / ShowIndexes /
ShowColumns / ShowEntities) and canonical parsed entity identifier.
Variants§
Implementations§
Source§impl SqlStatementRoute
impl SqlStatementRoute
Sourcepub const fn entity(&self) -> &str
pub const fn entity(&self) -> &str
Borrow the parsed SQL entity identifier for this statement.
SHOW ENTITIES does not carry an entity identifier and returns an
empty string for this accessor.
Sourcepub const fn is_explain(&self) -> bool
pub const fn is_explain(&self) -> bool
Return whether this route targets the EXPLAIN surface.
Sourcepub const fn is_describe(&self) -> bool
pub const fn is_describe(&self) -> bool
Return whether this route targets the DESCRIBE surface.
Sourcepub const fn is_show_indexes(&self) -> bool
pub const fn is_show_indexes(&self) -> bool
Return whether this route targets the SHOW INDEXES surface.
Sourcepub const fn is_show_columns(&self) -> bool
pub const fn is_show_columns(&self) -> bool
Return whether this route targets the SHOW COLUMNS surface.
Sourcepub const fn is_show_entities(&self) -> bool
pub const fn is_show_entities(&self) -> bool
Return whether this route targets the SHOW ENTITIES surface.
Trait Implementations§
Source§impl Clone for SqlStatementRoute
impl Clone for SqlStatementRoute
Source§fn clone(&self) -> SqlStatementRoute
fn clone(&self) -> SqlStatementRoute
Returns a duplicate 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 SqlStatementRoute
impl Debug for SqlStatementRoute
Source§impl PartialEq for SqlStatementRoute
impl PartialEq for SqlStatementRoute
impl Eq for SqlStatementRoute
impl StructuralPartialEq for SqlStatementRoute
Auto Trait Implementations§
impl Freeze for SqlStatementRoute
impl RefUnwindSafe for SqlStatementRoute
impl Send for SqlStatementRoute
impl Sync for SqlStatementRoute
impl Unpin for SqlStatementRoute
impl UnsafeUnpin for SqlStatementRoute
impl UnwindSafe for SqlStatementRoute
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