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.
Lock
A row-locking clause appended to a SELECT (FOR UPDATE / FOR SHARE, optionally SKIP LOCKED / NOWAIT).
OnConflict
An ON CONFLICT specification attached to an INSERT.
QueryBuilder
Typed, dialect-aware SQL query builder.

Enums§

AggFn
A SQL aggregate function for the select_* aggregate helpers.
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.
LockStrength
The strength of a row-locking clause.
LockWait
The optional wait behavior of a row-locking clause.
Method
Which kind of statement is being built.
Order
Sort direction for an ORDER BY column.
SelectExpr
A structured SELECT-list expression (aggregate or aliased column).