Skip to main content

substitute

Function substitute 

Source
pub fn substitute(
    sql: &str,
    params: &ParameterSet,
    backend: Backend,
) -> Result<String, SqlError>
Expand description

Substitute ${name} placeholders in SQL with values from params.

One pass only — no recursive substitution. Missing parameters return SqlError::QueryFailed.