Function replace

Source
pub fn replace(
    table: &str,
    columns: &[&str],
    values: &[&dyn ToKind],
) -> Mutation
Expand description

replace returns a Mutation to insert a row into a table, deleting any existing row. Unlike InsertOrUpdate, this means any values not explicitly written become NULL.

For a similar example, See Update.