Skip to main content

bind_params

Function bind_params 

Source
pub fn bind_params(stmt: &mut Statement, params: &[ParamValue])
Expand description

Substitute all $N placeholders in a parsed statement with concrete values.

Walks the AST and replaces every Value::Placeholder("$N") with the corresponding literal from params (0-indexed: $1params[0]).