Expand description
Query builder. Typed where clauses on top of sea-query + sqlx.
Mirrors Eloquent’s full query-builder surface: where/orWhere family,
whereIn/whereNull/whereBetween/whereLike, aggregates
(sum/avg/min/max/exists), sorting (latest/oldest/inRandomOrder),
terminals (pluck/value/firstOrFail), joins, group-by/having, and
soft-delete scopes (withTrashed/onlyTrashed/withoutTrashed).
WHERE conditions are tracked as a single Option<SimpleExpr> and folded
left-to-right with AND/OR junctions — so where_eq.where_eq.or_where_eq
becomes ((a AND b) OR c). To group explicitly, build the SimpleExpr by hand
and pass to where_raw.