Function replace_map

Source
pub fn replace_map(
    table: &str,
    columns_ans_values: &[(&str, &dyn ToKind)],
) -> Mutation
Expand description

replace_map returns a Mutation to insert a row into a table, deleting any existing row. Unlike InsertOrUpdateMap, this means any values not explicitly written become NULL. The row is specified by a map of column to value.

For a similar example, See update_map.