Expand description
SQL compilation: turn a QueryBuilder into (sql, binds).
Values are never inlined — each value pushes onto a running binds vector
and emits a placeholder via Dialect::write_placeholder with a 1-based
counter, so Postgres yields $1..$n in first-appearance order (including
across nested groups) while MySQL/SQLite yield ?.
Functions§
- compile
- Compile a
QueryBuilderinto(sql, binds), panicking on an invalid builder. - try_
compile - Compile a
QueryBuilderinto(sql, binds), or return theBuildErrordescribing why the query cannot be rendered.