pub enum ExprPlan {
Show 24 variants
Identifier(String),
CompoundIdentifier {
alias: String,
ident: String,
},
IsNull(Box<ExprPlan>),
IsNotNull(Box<ExprPlan>),
InList {
expr: Box<ExprPlan>,
list: Vec<ExprPlan>,
negated: bool,
},
InSubquery {
expr: Box<ExprPlan>,
subquery: Box<QueryPlan>,
negated: bool,
},
Between {
expr: Box<ExprPlan>,
negated: bool,
low: Box<ExprPlan>,
high: Box<ExprPlan>,
},
Like {
expr: Box<ExprPlan>,
negated: bool,
pattern: Box<ExprPlan>,
},
ILike {
expr: Box<ExprPlan>,
negated: bool,
pattern: Box<ExprPlan>,
},
Regex {
expr: Box<ExprPlan>,
negated: bool,
pattern: Box<ExprPlan>,
case_sensitive: bool,
},
BinaryOp {
left: Box<ExprPlan>,
op: BinaryOperator,
right: Box<ExprPlan>,
},
UnaryOp {
op: UnaryOperator,
expr: Box<ExprPlan>,
},
Nested(Box<ExprPlan>),
Literal(Literal),
Value(Value),
TypedString {
data_type: DataType,
value: String,
},
Function(Box<FunctionExprPlan>),
Aggregate(Box<AggregateExprPlan>),
Exists {
subquery: Box<QueryPlan>,
negated: bool,
},
Subquery(Box<QueryPlan>),
Case {
operand: Option<Box<ExprPlan>>,
when_then: Vec<(ExprPlan, ExprPlan)>,
else_result: Option<Box<ExprPlan>>,
},
ArrayIndex {
obj: Box<ExprPlan>,
indexes: Vec<ExprPlan>,
},
Interval {
expr: Box<ExprPlan>,
leading_field: Option<DateTimeField>,
last_field: Option<DateTimeField>,
},
Array {
elem: Vec<ExprPlan>,
},
}Variants§
Identifier(String)
CompoundIdentifier
IsNull(Box<ExprPlan>)
IsNotNull(Box<ExprPlan>)
InList
InSubquery
Between
Like
ILike
Regex
BinaryOp
UnaryOp
Nested(Box<ExprPlan>)
Literal(Literal)
Value(Value)
TypedString
Function(Box<FunctionExprPlan>)
Aggregate(Box<AggregateExprPlan>)
Exists
Subquery(Box<QueryPlan>)
Case
Fields
ArrayIndex
Interval
Array
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExprPlan
impl<'de> Deserialize<'de> for ExprPlan
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 ExprPlan
impl StructuralPartialEq for ExprPlan
Auto Trait Implementations§
impl Freeze for ExprPlan
impl RefUnwindSafe for ExprPlan
impl Send for ExprPlan
impl Sync for ExprPlan
impl Unpin for ExprPlan
impl UnsafeUnpin for ExprPlan
impl UnwindSafe for ExprPlan
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