pub enum SQLStmt {
Select {
cols: Vec<String>,
from: String,
where_: Option<SQLExpr>,
limit: Option<usize>,
},
Insert {
table: String,
values: Vec<SQLExpr>,
},
Update {
table: String,
set_col: String,
set_val: SQLExpr,
where_: Option<SQLExpr>,
},
Delete {
table: String,
where_: Option<SQLExpr>,
},
CreateTable(SQLTable),
DropTable(String),
}Expand description
SQL statements that the backend can emit.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SQLStmt
impl RefUnwindSafe for SQLStmt
impl Send for SQLStmt
impl Sync for SQLStmt
impl Unpin for SQLStmt
impl UnsafeUnpin for SQLStmt
impl UnwindSafe for SQLStmt
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