pub enum Ast {
CreateTable {
if_not_exists: bool,
name: String,
columns: Vec<Column>,
constraints: Constraints,
},
AlterTable {
name: String,
operation: AlterTableOperation,
},
CreateIndex {
unique: bool,
name: String,
table: String,
columns: Vec<String>,
},
Select {
distinct: bool,
projections: Vec<Projection>,
from_clause: FromClause,
selection: Option<Selection>,
group_by: Vec<GroupByParameter>,
order_by: Vec<OrderByParameter>,
},
Insert {
table: String,
columns: Vec<String>,
source: Vec<Vec<InsertSource>>,
},
Update {
table: String,
assignments: Vec<UpdateAssignment>,
selection: Option<Selection>,
},
Delete {
from_clause: FromClause,
selection: Option<Selection>,
},
DropTable {
if_exists: bool,
name: String,
},
DropIndex {
if_exists: bool,
name: String,
table: String,
},
}Variants§
CreateTable
AlterTable
CreateIndex
Select
Fields
§
from_clause: FromClauseInsert
Update
Delete
DropTable
DropIndex
Implementations§
Trait Implementations§
impl StructuralPartialEq for Ast
Auto Trait Implementations§
impl Freeze for Ast
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnwindSafe for Ast
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