Updates records filtered by the filter string, setting the values as specified in the update string. Both should be SQL-syntax
Useful when updating just a single or a bunch of values in the table, or when setting the values relatively to their current value.
the SQL filter string
the SQL update string
values to be used in the query
Connection c; // an established connection struct User { int id; int posts ...} c.update!User("id = $1", "posts = posts + $2", 123, 1);
See Implementation
Updates records filtered by the filter string, setting the values as specified in the update string. Both should be SQL-syntax
Useful when updating just a single or a bunch of values in the table, or when setting the values relatively to their current value.