pub enum Statement {
Show 14 variants
CreateTable {
name: String,
if_not_exists: bool,
columns: Vec<ColumnDef>,
},
DropTable {
name: String,
if_exists: bool,
},
CreateIndex {
name: String,
table: String,
column: String,
unique: bool,
if_not_exists: bool,
},
DropIndex {
name: String,
if_exists: bool,
},
Insert {
table: String,
columns: Option<Vec<String>>,
rows: Vec<Vec<Expr>>,
},
InsertSelect {
table: String,
columns: Option<Vec<String>>,
query: Box<Statement>,
},
Select {
distinct: bool,
columns: SelectItems,
from: String,
from_alias: Option<String>,
joins: Vec<JoinClause>,
where_clause: Option<Expr>,
group_by: Vec<Expr>,
having: Option<Expr>,
order_by: Vec<(String, bool)>,
order_by_exprs: Vec<(Expr, bool)>,
limit: Option<u64>,
offset: Option<u64>,
},
Update {
table: String,
assignments: Vec<(String, Expr)>,
where_clause: Option<Expr>,
},
Delete {
table: String,
where_clause: Option<Expr>,
},
Begin,
Commit,
Rollback,
Checkpoint,
Explain(Box<Statement>),
}Variants§
CreateTable
DropTable
CreateIndex
DropIndex
Insert
InsertSelect
Select
Update
Delete
Begin
Commit
Rollback
Checkpoint
Explain(Box<Statement>)
Trait Implementations§
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