pub enum Statement<'a> {
Show 24 variants
CreateTable(CreateTable<'a>),
CreateView(CreateView<'a>),
CreateTrigger(CreateTrigger<'a>),
CreateFunction(CreateFunction<'a>),
Select(Select<'a>),
Delete(Delete<'a>),
Insert(Insert<'a>),
Update(Update<'a>),
DropTable(DropTable<'a>),
DropFunction(DropFunction<'a>),
DropProcedure(DropProcedure<'a>),
DropEvent(DropEvent<'a>),
DropDatabase(DropDatabase<'a>),
DropServer(DropServer<'a>),
DropTrigger(DropTrigger<'a>),
DropView(DropView<'a>),
Set(Set<'a>),
AlterTable(AlterTable<'a>),
Block(Vec<Statement<'a>>),
If(If<'a>),
Invalid(Span),
Union(Union<'a>),
Replace(Replace<'a>),
Case(CaseStatement<'a>),
}
Expand description
SQL statement
Variants
CreateTable(CreateTable<'a>)
CreateView(CreateView<'a>)
CreateTrigger(CreateTrigger<'a>)
CreateFunction(CreateFunction<'a>)
Select(Select<'a>)
Delete(Delete<'a>)
Insert(Insert<'a>)
Update(Update<'a>)
DropTable(DropTable<'a>)
DropFunction(DropFunction<'a>)
DropProcedure(DropProcedure<'a>)
DropEvent(DropEvent<'a>)
DropDatabase(DropDatabase<'a>)
DropServer(DropServer<'a>)
DropTrigger(DropTrigger<'a>)
DropView(DropView<'a>)
Set(Set<'a>)
AlterTable(AlterTable<'a>)
Block(Vec<Statement<'a>>)
If(If<'a>)
Invalid(Span)
Invalid statement produced after recovering from parse error
Union(Union<'a>)
Replace(Replace<'a>)
Case(CaseStatement<'a>)
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Statement<'a>
impl<'a> Send for Statement<'a>
impl<'a> Sync for Statement<'a>
impl<'a> Unpin for Statement<'a>
impl<'a> UnwindSafe for Statement<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more