Skip to main content

build_aggregate_sql

Function build_aggregate_sql 

Source
pub fn build_aggregate_sql(table_name: &str, spec: &AggregateSpec) -> String
Expand description

Build a complete SQL query from an AggregateSpec.

Generates: SELECT ... FROM table [WHERE ...] [GROUP BY ...] [HAVING ...] [ORDER BY ...] [LIMIT ...]