Rust

types

Module

The values builders produce and keep: statements, conditions, join and window definitions.

Contents

use utopia_query::builder::types::Binding;
Rust
pub struct Binding

A 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;
Rust
pub struct ColumnPredicate

left operator right, both columns.

use utopia_query::builder::types::Condition;
Rust
pub struct Condition

A SQL fragment with its bindings.

use utopia_query::builder::types::CteClause;
Rust
pub struct CteClause

A common table expression, compiled.

use utopia_query::builder::types::JoinOn;
Rust
pub struct JoinOn

A column-to-column condition of a join built with a JoinBuilder.

use utopia_query::builder::types::MergeClause;
Rust
pub struct MergeClause

A MERGE action and its bindings.

use utopia_query::builder::types::SpatialDistanceFilter;
Rust
pub struct SpatialDistanceFilter

The geometry, distance and unit of a distance* query.

use utopia_query::builder::types::Statement;
Rust
pub struct Statement

A compiled statement: the SQL (or MongoDB command JSON) with ? placeholders and the values bound to them, in order.

Also implements Debug, PartialEq.
use utopia_query::builder::types::UnionClause;
Rust
pub struct UnionClause

A compiled member of a compound select.

use utopia_query::builder::types::WindowDefinition;
Rust
pub struct WindowDefinition

A named window: WINDOW name AS (...).

use utopia_query::builder::types::WindowFrame;
Rust
pub struct WindowFrame

A window frame: ROWS UNBOUNDED PRECEDING, RANGE BETWEEN ... AND ....

use utopia_query::builder::types::WindowSelect;
Rust
pub struct WindowSelect

A window function in the select list.

Rust
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).