pub enum Expression {
Show 19 variants
Column {
column: ColumnRef,
},
Literal {
value: TypedValue,
},
Star {
relation: Option<String>,
},
Unary {
operator: UnaryOperator,
expression: Box<Expression>,
},
Binary {
left: Box<Expression>,
operator: BinaryOperator,
right: Box<Expression>,
},
Function {
name: String,
arguments: Vec<Expression>,
},
Aggregate {
name: String,
arguments: Vec<Expression>,
distinct: bool,
filter: Option<Box<Expression>>,
order_by: Vec<OrderBy>,
},
Window {
function: Box<Expression>,
specification: WindowSpecification,
},
Cast {
expression: Box<Expression>,
data_type: DataTypeDescriptor,
},
Case {
operand: Option<Box<Expression>>,
branches: Vec<CaseBranch>,
otherwise: Option<Box<Expression>>,
},
IsNull {
expression: Box<Expression>,
negated: bool,
},
Between {
expression: Box<Expression>,
lower: Box<Expression>,
upper: Box<Expression>,
negated: bool,
},
InList {
expression: Box<Expression>,
values: Vec<Expression>,
negated: bool,
},
InSubquery {
expression: Box<Expression>,
query: Box<Select>,
negated: bool,
},
Exists {
query: Box<Select>,
negated: bool,
},
ScalarSubquery {
query: Box<Select>,
},
Tuple {
values: Vec<Expression>,
},
Navigation {
root: String,
path: Vec<String>,
},
Grouping {
expressions: Vec<Expression>,
},
}Variants§
Column
Literal
Fields
§
value: TypedValueStar
Unary
Binary
Function
Aggregate
Window
Cast
Case
Fields
§
operand: Option<Box<Expression>>§
branches: Vec<CaseBranch>§
otherwise: Option<Box<Expression>>IsNull
Between
InList
InSubquery
Exists
ScalarSubquery
Tuple
Fields
§
values: Vec<Expression>Read-only RadixDB navigation path. root is a table alias and every
path segment is an authoritative reference/column identifier.
Grouping
Fields
§
expressions: Vec<Expression>Implementations§
Source§impl Expression
impl Expression
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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
Source§impl From<Expression> for Expr
impl From<Expression> for Expr
Source§fn from(value: Expression) -> Self
fn from(value: Expression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Expression
impl PartialEq for Expression
Source§impl Serialize for Expression
impl Serialize for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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