pub enum Statement {
Query(QueryRef),
CreateTable(CreateTableRef),
DropTable(DropTableRef),
Insert(InsertRef),
}Expand description
One statement.
Four 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.
DropTable(DropTableRef)
DROP TABLE.
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