Rindle docs and package mapSkip to main content

build_select_query

Function build_select_query 

Source
pub fn build_select_query(
    table: &str,
    columns: &[ColumnDef],
    constraint: Option<&Constraint>,
    multi_constraints: &[MultiConstraint],
    filters: Option<&SqlCondition>,
    order: Option<&Sort>,
    reverse: bool,
    start: Option<&Start>,
) -> CompiledQuery
Expand description

Lower a FetchRequest’s pushed-down parts (+ connection filter + sort) to a parameterized SELECT. The arg grouping is regrouped from the JS for readability; the clause-emission order is fixed (constraint → multiConstraints → start → filters → ORDER BY) so the ? slots and params stay aligned (05 §4.4).