Skip to main content

Module compile

Module compile 

Source
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 QueryBuilder into (sql, binds).