Skip to main content

bind_named

Function bind_named 

Source
pub fn bind_named<F>(source: &str, lookup: F) -> Result<String, QqlError>
where F: Fn(&str) -> Option<Value>,
Expand description

Substitute named parameters (:name) into source.

lookup receives the parameter name without the : prefix and returns the bound Value.