pub enum Sql {
Create {
table: Vec<u8>,
cols: Vec<ColDef>,
key: Vec<Vec<u8>>,
},
Select {
table: Vec<u8>,
cols: Vec<Vec<u8>>,
conds: Vec<Cond>,
order: Vec<Vec<u8>>,
},
Insert {
table: Vec<u8>,
cols: Vec<Vec<u8>>,
conflict: Vec<Vec<u8>>,
update: Vec<Vec<u8>>,
},
Delete {
table: Vec<u8>,
conds: Vec<Cond>,
},
}Expand description
A statement of the subset. Names are printed quoted.
Variants§
Create
CREATE TABLE IF NOT EXISTS "table" ("c" KIND [NOT NULL], ..., PRIMARY KEY ("k", ...))
Select
SELECT "c", ... FROM "table" [WHERE cond AND ...] [ORDER BY "o", ...]
Insert
INSERT ... ON CONFLICT ("k", ...) DO UPDATE SET "u" = EXCLUDED."u", ... (DO NOTHING if update is empty)
Delete
DELETE FROM "table" [WHERE cond AND ...]
Trait Implementations§
impl Eq for Sql
impl StructuralPartialEq for Sql
Auto Trait Implementations§
impl Forget for Sql
impl Freeze for Sql
impl RefUnwindSafe for Sql
impl Send for Sql
impl Sync for Sql
impl Unpin for Sql
impl UnsafeUnpin for Sql
impl UnwindSafe for Sql
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