1use std::borrow::Cow;
2
3mod constructors;
4mod custom;
5pub use custom::CustomExpr;
6pub(crate) use custom::CustomExprPart;
7mod conversions;
8mod subqueries;
9
10use crate::*;
11
12#[derive(Debug, Clone, PartialEq)]
27pub enum Expr {
28 Column(ColumnRef),
29 Tuple(Vec<Expr>),
30 Unary(UnOper, Box<Expr>),
31 FunctionCall(FunctionCall),
32 Binary(Box<Expr>, BinOper, Box<Expr>),
33 SubQuery(Option<SubQueryOper>, Box<SubQueryStatement>),
34 Value(Value),
35 Values(Vec<Value>),
36 Custom(Cow<'static, str>),
37 CustomWithExpr(CustomExpr),
38 Invalid(crate::error::RenderError),
40 Keyword(Keyword),
41 AsEnum(DynIden, Box<Expr>),
42 Case(Box<CaseStatement>),
43 Constant(Value),
44 TypeName(TypeRef),
45}