Skip to main content

build_update_sql

Function build_update_sql 

Source
pub fn build_update_sql(
    entity: &str,
    id: &str,
    data: &Value,
) -> Result<(String, Vec<JsonParam>), StorageError>
Expand description

Build an UPDATE SQL statement and collect typed parameter values. Returns (sql, params) where params[0] is the row ID.