pub enum EntryStatement {
AdminCommand(EntryAdminCommand),
SqlStatement(EntrySqlStatement),
InvalidStatement(String),
}
Expand description
Types of possible statements parsed from the log:
- SqlStatement: parseable statement with a proper SQL AST
- AdminCommand: commands passed from the mysql cli/admin tools
- InvalidStatement: statement which isn’t currently parseable as plain-text
Variants§
AdminCommand(EntryAdminCommand)
AdminCommand: commands passed from the mysql cli/admin tools
SqlStatement(EntrySqlStatement)
SqlStatement: parseable statement with a proper SQL AST
InvalidStatement(String)
InvalidStatement: statement which isn’t currently parseable by sql-parser
crate
Implementations§
Source§impl EntryStatement
impl EntryStatement
Sourcepub fn objects(&self) -> Option<Vec<EntrySqlStatementObject>>
pub fn objects(&self) -> Option<Vec<EntrySqlStatementObject>>
returns the EntrySqlStatement
objects associated with this statement, if known
Sourcepub fn sql_type(&self) -> Option<EntrySqlType>
pub fn sql_type(&self) -> Option<EntrySqlType>
returns the EntrySqlType
associated with this statement if known
Sourcepub fn sql_context(&self) -> Option<SqlStatementContext>
pub fn sql_context(&self) -> Option<SqlStatementContext>
returns the SqlStatementContext
associated with this statement
Trait Implementations§
Source§impl Clone for EntryStatement
impl Clone for EntryStatement
Source§fn clone(&self) -> EntryStatement
fn clone(&self) -> EntryStatement
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 EntryStatement
impl Debug for EntryStatement
Source§impl PartialEq for EntryStatement
impl PartialEq for EntryStatement
impl StructuralPartialEq for EntryStatement
Auto Trait Implementations§
impl !Freeze for EntryStatement
impl RefUnwindSafe for EntryStatement
impl Send for EntryStatement
impl Sync for EntryStatement
impl Unpin for EntryStatement
impl UnwindSafe for EntryStatement
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