pub struct Expr(pub Expression);Tuple Fields§
§0: ExpressionImplementations§
Source§impl Expr
impl Expr
pub fn column(name: impl Into<String>) -> Self
pub fn qualified(relation: impl Into<String>, name: impl Into<String>) -> Self
pub fn value(value: impl Into<TypedValue>) -> Self
pub fn star() -> Self
pub fn function( name: impl Into<String>, arguments: impl IntoIterator<Item = Expr>, ) -> Self
pub fn aggregate( name: impl Into<String>, arguments: impl IntoIterator<Item = Expr>, distinct: bool, filter: Option<Expr>, order_by: Vec<Order>, ) -> Self
pub fn window(self, specification: WindowSpecification) -> Self
pub fn cast(self, data_type: DataTypeDescriptor) -> Self
pub fn alias(self, alias: impl Into<String>) -> Projection
pub fn projection(self) -> Projection
pub fn unary(self, operator: UnaryOperator) -> Self
pub fn binary(self, operator: BinaryOperator, right: impl Into<Expr>) -> Self
pub fn eq(self, right: impl Into<Expr>) -> Self
pub fn ne(self, right: impl Into<Expr>) -> Self
pub fn lt(self, right: impl Into<Expr>) -> Self
pub fn lte(self, right: impl Into<Expr>) -> Self
pub fn gt(self, right: impl Into<Expr>) -> Self
pub fn gte(self, right: impl Into<Expr>) -> Self
pub fn and(self, right: impl Into<Expr>) -> Self
pub fn or(self, right: impl Into<Expr>) -> Self
pub fn add(self, right: impl Into<Expr>) -> Self
pub fn sub(self, right: impl Into<Expr>) -> Self
pub fn mul(self, right: impl Into<Expr>) -> Self
pub fn div(self, right: impl Into<Expr>) -> Self
pub fn modulo(self, right: impl Into<Expr>) -> Self
pub fn like(self, right: impl Into<Expr>) -> Self
pub fn not_like(self, right: impl Into<Expr>) -> Self
pub fn regexp(self, right: impl Into<Expr>) -> Self
pub fn glob(self, right: impl Into<Expr>) -> Self
pub fn is_distinct_from(self, right: impl Into<Expr>) -> Self
pub fn is_not_distinct_from(self, right: impl Into<Expr>) -> Self
pub fn not(self) -> Self
pub fn is_null(self) -> Self
pub fn is_not_null(self) -> Self
pub fn between(self, lower: impl Into<Expr>, upper: impl Into<Expr>) -> Self
pub fn not_between(self, lower: impl Into<Expr>, upper: impl Into<Expr>) -> Self
pub fn in_list(self, values: impl IntoIterator<Item = impl Into<Expr>>) -> Self
pub fn not_in_list( self, values: impl IntoIterator<Item = impl Into<Expr>>, ) -> Self
pub fn in_subquery(self, query: QueryBuilder) -> Self
pub fn not_in_subquery(self, query: QueryBuilder) -> Self
pub fn tuple(values: impl IntoIterator<Item = Expr>) -> Self
pub fn exists(query: QueryBuilder) -> Self
pub fn not_exists(query: QueryBuilder) -> Self
pub fn scalar_subquery(query: QueryBuilder) -> Self
pub fn case( operand: Option<Expr>, branches: impl IntoIterator<Item = (Expr, Expr)>, otherwise: Option<Expr>, ) -> Self
pub fn grouping(expressions: impl IntoIterator<Item = Expr>) -> Self
pub fn asc(self) -> Order
pub fn desc(self) -> Order
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
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<&DynamicColumn> for Expr
impl From<&DynamicColumn> for Expr
Source§fn from(value: &DynamicColumn) -> Self
fn from(value: &DynamicColumn) -> Self
Converts to this type from the input type.
Source§impl<T, Owner> From<&TypedColumn<T, Owner>> for Expr
impl<T, Owner> From<&TypedColumn<T, Owner>> for Expr
Source§fn from(value: &TypedColumn<T, Owner>) -> Self
fn from(value: &TypedColumn<T, Owner>) -> Self
Converts to this type from the input type.
Source§impl From<DynamicColumn> for Expr
impl From<DynamicColumn> for Expr
Source§fn from(value: DynamicColumn) -> Self
fn from(value: DynamicColumn) -> Self
Converts to this type from the input type.
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<T, Owner> From<TypedColumn<T, Owner>> for Expr
impl<T, Owner> From<TypedColumn<T, Owner>> for Expr
Source§fn from(value: TypedColumn<T, Owner>) -> Self
fn from(value: TypedColumn<T, Owner>) -> Self
Converts to this type from the input type.
Source§fn from(value: TypedNavigation<T, Root>) -> Self
fn from(value: TypedNavigation<T, Root>) -> Self
Converts to this type from the input type.
Source§impl From<TypedValue> for Expr
impl From<TypedValue> for Expr
Source§fn from(value: TypedValue) -> Self
fn from(value: TypedValue) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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