pub enum StatementPlan {
Show 17 variants
ShowColumns {
table_name: String,
},
Query(QueryPlan),
Insert {
table_name: String,
columns: Vec<String>,
source: QueryPlan,
},
Update {
table_name: String,
assignments: Vec<AssignmentPlan>,
selection: Option<ExprPlan>,
},
Delete {
table_name: String,
selection: Option<ExprPlan>,
},
CreateTable {
if_not_exists: bool,
name: String,
columns: Option<Vec<ColumnDef>>,
source: Option<Box<QueryPlan>>,
engine: Option<String>,
foreign_keys: Vec<ForeignKey>,
comment: Option<String>,
},
CreateFunction {
or_replace: bool,
name: String,
args: Vec<OperateFunctionArg>,
return_: Expr,
},
AlterTable {
name: String,
operation: AlterTableOperationPlan,
},
DropTable {
if_exists: bool,
names: Vec<String>,
cascade: bool,
},
DropFunction {
if_exists: bool,
names: Vec<String>,
},
CreateIndex {
name: String,
table_name: String,
column: OrderByExpr,
},
DropIndex {
name: String,
table_name: String,
},
StartTransaction,
Commit,
Rollback,
ShowVariable(Variable),
ShowIndexes(String),
}Variants§
ShowColumns
Query(QueryPlan)
Insert
Update
Delete
CreateTable
Fields
§
foreign_keys: Vec<ForeignKey>CreateFunction
AlterTable
DropTable
DropFunction
CreateIndex
DropIndex
StartTransaction
Commit
Rollback
ShowVariable(Variable)
ShowIndexes(String)
Trait Implementations§
Source§impl Build for StatementPlan
impl Build for StatementPlan
fn build(self) -> Result<StatementPlan>
Source§impl Clone for StatementPlan
impl Clone for StatementPlan
Source§fn clone(&self) -> StatementPlan
fn clone(&self) -> StatementPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatementPlan
impl Debug for StatementPlan
Source§impl<'de> Deserialize<'de> for StatementPlan
impl<'de> Deserialize<'de> for StatementPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StatementPlan
Source§impl From<Statement> for StatementPlan
impl From<Statement> for StatementPlan
Source§impl Hash for StatementPlan
impl Hash for StatementPlan
Source§impl PartialEq for StatementPlan
impl PartialEq for StatementPlan
Source§impl Serialize for StatementPlan
impl Serialize for StatementPlan
impl StructuralPartialEq for StatementPlan
Auto Trait Implementations§
impl Freeze for StatementPlan
impl RefUnwindSafe for StatementPlan
impl Send for StatementPlan
impl Sync for StatementPlan
impl Unpin for StatementPlan
impl UnsafeUnpin for StatementPlan
impl UnwindSafe for StatementPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more