sql_builder/expr/mod.rs
1//! Building blocks of SQL statements.
2//!
3//! [`Expr`] is an arbitrary, dynamically-typed SQL expression.
4//! It can be used in select fields, where clauses and many other places.
5//!
6//! [`ExprTrait`] provides "operator" methods for building expressions.
7
8// Intentionally not `pub`. They only export a single item each.
9// It's a mechanical split to manage LoC.
10mod r#enum;
11mod r#trait;
12
13pub(crate) use r#enum::CustomExprPart;
14pub use r#enum::{CustomExpr, Expr};
15pub use r#trait::ExprTrait;
16
17/// Another name for [`Expr`].
18pub type SimpleExpr = Expr;