types
ModuleThe values builders produce and keep: statements, conditions, join and window definitions.
Contents
use utopia_query::builder::types::Binding;pub struct BindingA binding captured while compiling: the value and the column it was compared to, when known (ClickHouse types named parameters by column).
use utopia_query::builder::types::ColumnPredicate;pub struct ColumnPredicateleft operator right, both columns.
use utopia_query::builder::types::Condition;pub struct ConditionA SQL fragment with its bindings.
use utopia_query::builder::types::CteClause;pub struct CteClauseA common table expression, compiled.
use utopia_query::builder::types::JoinOn;pub struct JoinOnA column-to-column condition of a join built with a JoinBuilder.
use utopia_query::builder::types::MergeClause;pub struct MergeClauseA MERGE action and its bindings.
use utopia_query::builder::types::SpatialDistanceFilter;pub struct SpatialDistanceFilterThe geometry, distance and unit of a distance* query.
use utopia_query::builder::types::Statement;pub struct StatementA compiled statement: the SQL (or MongoDB command JSON) with ?
placeholders and the values bound to them, in order.
Debug, PartialEq.use utopia_query::builder::types::UnionClause;pub struct UnionClauseA compiled member of a compound select.
use utopia_query::builder::types::WindowDefinition;pub struct WindowDefinitionA named window: WINDOW name AS (...).
use utopia_query::builder::types::WindowFrame;pub struct WindowFrameA window frame: ROWS UNBOUNDED PRECEDING, RANGE BETWEEN ... AND ....
use utopia_query::builder::types::WindowSelect;pub struct WindowSelectA window function in the select list.
pub type Executor = Arc<dyn Fn(&Statement) -> Result<Value> + Send + Sync>What runs a statement: given it, returns its rows (an array) or an affected-row count (an integer).