Skip to main content

compile

Function compile 

Source
pub fn compile<D: Dialect>(qb: &QueryBuilder<D>) -> (String, Vec<Value>)
Expand description

Compile a QueryBuilder into (sql, binds), panicking on an invalid builder.

Panicking wrapper over try_compile; the panic message is the BuildError’s Display text. Prefer try_compile / QueryBuilder::try_to_sql when the builder may be fed from runtime input (e.g. an HTTP request).