pub enum Statement {
Query(QueryRef),
CreateTable(CreateTableRef),
CreateView(CreateViewRef),
DropTable(DropTableRef),
Insert(InsertRef),
}Expand description
One statement.
Five of the twenty seven the grammar reaches. The rest are a transform error naming the rule
rather than a variant that nothing fills in, so that adding one is a compile error somewhere
useful rather than a silent todo!().
Variants§
Query(QueryRef)
A query, meaning a SELECT or a set operation over two of them.
CreateTable(CreateTableRef)
CREATE TABLE.
CreateView(CreateViewRef)
CREATE VIEW.
DropTable(DropTableRef)
DROP TABLE or DROP VIEW, which are one rule in the grammar and one statement here.
Insert(InsertRef)
INSERT INTO.
Trait Implementations§
impl Copy for Statement
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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