Skip to main content

placeholder_count

Function placeholder_count 

Source
pub fn placeholder_count(sql: &str) -> usize
Expand description

The number of parameters a statement uses: its highest $n, which is how many Postgres asks the call for. A $n inside a string literal ('$9', E'…'), a quoted identifier, a comment or a dollar-quoted body is text, not a parameter.