Skip to main content

count_set_placeholders

Function count_set_placeholders 

Source
pub fn count_set_placeholders(sql: &str) -> Option<usize>
Expand description

Count the ? placeholders inside an UPDATE statement’s SET clause (between SET and WHERE). Used to split bound params between SET values and WHERE values for CQL drivers that need to issue a follow-up SELECT. Returns None when the SET window can’t be located.