update method
Convenience method for updating rows in the database.
Update table
with values
, a map from column names to new column
values. null is a valid value that will be translated to NULL.
where
is the optional WHERE clause to apply when updating.
Passing null will update all rows.
You may include ?s in the where clause, which will be replaced by the
values from whereArgs
conflictAlgorithm
(optional) specifies algorithm to use in case of a
Implementation
Future<int> update(String table, Map<String, dynamic> values,
{String where, List whereArgs, ConflictAlgorithm conflictAlgorithm}) {
return _db
.update(table, values,
where: where,
whereArgs: whereArgs,
conflictAlgorithm: conflictAlgorithm)
.then((_) {
notifyTrigger([table].toSet());
});
}