#[non_exhaustive]pub enum DO {
CreateSchema(String),
CreateTable(ColInfo),
CreateIndex(IndexInfo),
CreateFunction(ObjRef, Rc<String>, bool),
AlterTable(ObjRef, LVec<AlterCol>),
DropSchema(String),
DropTable(ObjRef),
DropIndex(ObjRef, String),
DropFunction(ObjRef),
Insert(Rc<Table>, LVec<usize>, CTableExpression),
Update(LVec<(usize, CExpPtr<Value>)>, CTableExpression, Option<CExpPtr<bool>>),
Delete(CTableExpression, Option<CExpPtr<bool>>),
}Expand description
Database Operation
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateSchema(String)
Create Schema.
CreateTable(ColInfo)
Create Table.
CreateIndex(IndexInfo)
Create Index.
CreateFunction(ObjRef, Rc<String>, bool)
Create Function.
AlterTable(ObjRef, LVec<AlterCol>)
Alter Table.
DropSchema(String)
Drop Schema.
DropTable(ObjRef)
Drop Table.
DropIndex(ObjRef, String)
Drop Index.
DropFunction(ObjRef)
Drop Function.
Insert(Rc<Table>, LVec<usize>, CTableExpression)
Insert into Table.
Update(LVec<(usize, CExpPtr<Value>)>, CTableExpression, Option<CExpPtr<bool>>)
Update Table rows.
Delete(CTableExpression, Option<CExpPtr<bool>>)
Delete Table rows.
Auto Trait Implementations§
impl Freeze for DO
impl !RefUnwindSafe for DO
impl !Send for DO
impl !Sync for DO
impl Unpin for DO
impl UnsafeUnpin for DO
impl !UnwindSafe for DO
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