Expand description
Typed, dialect-aware query builder.
QueryBuilder is parameterized over a Dialect marker and uses
by-value (self) chaining: every mutator takes and returns Self. The
terminal QueryBuilder::to_sql compiles to (sql, binds).
Structs§
- Cte
- A common table expression (
WITH/WITH RECURSIVE). - Join
- A
JOINclause: a kind, a target table, and zero or moreONconditions. - Join
Clause - Accumulator passed to
join/left_join/… closures to buildONconditions. - OnConflict
- An
ON CONFLICTspecification attached to anINSERT. - Query
Builder - Typed, dialect-aware SQL query builder.
Enums§
- Conflict
Action - What to do when an
INSERThits a conflict (seeOnConflict). - Having
- A
HAVINGcondition (SELECT-only, rendered afterGROUP BY). - Join
Cond - A single
ONcondition of aJoin. - Join
Kind - The kind of SQL
JOIN. - Method
- Which kind of statement is being built.
- Order
- Sort direction for an
ORDER BYcolumn.