pub enum StatementClass {
ReadOnly,
Write,
SchemaChange,
TransactionControl,
Pragma,
Empty,
Unknown,
}Expand description
What a statement is, decided without a full parse.
Variants§
ReadOnly
The statement reads and does not write.
Write
The statement writes.
SchemaChange
The statement changes the schema.
TransactionControl
The statement controls a transaction.
Pragma
The statement is a PRAGMA, which may do either.
Empty
There is no statement here.
Unknown
The text does not begin a statement at all.
Trait Implementations§
Source§impl Clone for StatementClass
impl Clone for StatementClass
impl Copy for StatementClass
Source§impl Debug for StatementClass
impl Debug for StatementClass
impl Eq for StatementClass
Source§impl PartialEq for StatementClass
impl PartialEq for StatementClass
impl StructuralPartialEq for StatementClass
Auto Trait Implementations§
impl Freeze for StatementClass
impl RefUnwindSafe for StatementClass
impl Send for StatementClass
impl Sync for StatementClass
impl Unpin for StatementClass
impl UnsafeUnpin for StatementClass
impl UnwindSafe for StatementClass
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