Skip to main content

Module builder

Module builder 

Source
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 JOIN clause: a kind, a target table, and zero or more ON conditions.
JoinClause
Accumulator passed to join/left_join/… closures to build ON conditions.
OnConflict
An ON CONFLICT specification attached to an INSERT.
QueryBuilder
Typed, dialect-aware SQL query builder.

Enums§

ConflictAction
What to do when an INSERT hits a conflict (see OnConflict).
Having
A HAVING condition (SELECT-only, rendered after GROUP BY).
JoinCond
A single ON condition of a Join.
JoinKind
The kind of SQL JOIN.
Method
Which kind of statement is being built.
Order
Sort direction for an ORDER BY column.