Skip to main content

replace_bind_points_with_markers

Function replace_bind_points_with_markers 

Source
pub fn replace_bind_points_with_markers(value: &str) -> Result<String, String>
Expand description

Replace {name} bind point references with ? markers for CQL prepared statements. Returns the parameterized statement.

Also strips quotes that immediately surround a bind point: '{id}' → ? (not '?'), because CQL prepared bind markers must not be inside string literals. Fails as extract_bind_points does.