Enum rustdb::run::DO[][src]

#[non_exhaustive]
pub enum DO {
    CreateTable(ColInfo),
    CreateIndex(IndexInfo),
    CreateSchema(String),
    CreateFunction(ObjRefRc<String>, bool),
    AlterTable(ObjRefVec<AlterCol>),
    DropSchema(String),
    DropTable(ObjRef),
    DropIndex(ObjRefString),
    DropFunction(ObjRef),
    Insert(Rc<Table>, Vec<usize>, CTableExpression),
    Update(Vec<(usize, CExpPtr<Value>)>, CTableExpressionOption<CExpPtr<bool>>),
    Delete(CTableExpressionOption<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.

CreateTable(ColInfo)

Tuple Fields

CreateIndex(IndexInfo)

Tuple Fields

CreateSchema(String)

Tuple Fields

0: String

CreateFunction(ObjRefRc<String>, bool)

Tuple Fields

0: ObjRef
1: Rc<String>
2: bool

AlterTable(ObjRefVec<AlterCol>)

Tuple Fields

0: ObjRef

DropSchema(String)

Tuple Fields

0: String

DropTable(ObjRef)

Tuple Fields

0: ObjRef

DropIndex(ObjRefString)

Tuple Fields

0: ObjRef
1: String

DropFunction(ObjRef)

Tuple Fields

0: ObjRef

Insert(Rc<Table>, Vec<usize>, CTableExpression)

Tuple Fields

0: Rc<Table>
1: Vec<usize>

Update(Vec<(usize, CExpPtr<Value>)>, CTableExpressionOption<CExpPtr<bool>>)

Delete(CTableExpressionOption<CExpPtr<bool>>)

Tuple Fields

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.