Skip to main content

scan_sql_placeholders

Function scan_sql_placeholders 

pub fn scan_sql_placeholders(sql: &str) -> BTreeSet<u32>
Expand description

Every distinct N in a $N token appearing in sql as an actual parameter reference, ascending.

$ followed by a maximal run of ASCII digits, outside any string literal, dollar-quoted body, quoted identifier or comment.