Skip to main content

Module query

Module query 

Source
Expand description

Query execution for kit statements.

The implementation is intentionally simple: it materializes every visible row from the target table(s), evaluates predicates in Rust, then sorts, groups, joins, and reduces in memory. This keeps the crate independent of MongrelDB core’s native query primitives while remaining correct for the supported subset.

ponytail: every operator here is computed in-memory after a full scan; there is no predicate/projection pushdown into MongrelDB native conditions on the Rust path. That is the deliberate non-pushdown ceiling — the async SQL engine path is out of scope for this crate.

Functions§

execute_query
Execute any supported kit query statement against visible rows.
execute_select
Execute a kit Query::Select against the supplied visible rows.

Type Aliases§

JoinRow
A combined join row: a JSON object keyed by table alias whose values are the matched source rows (or JSON null for an unmatched right side of a LEFT join). See JoinQuery for the documented shape.