update method
Future<int>
update(
- Map<
String, dynamic> map, - String table, {
- required List<
String> keys, - String? dbName = defaultDBName,
- dynamic tryToLogOperation = true,
override
Update a row in the passed table
Implementation
@override
Future<int> update(Map<String, dynamic> map, String table,
{required List<String> keys,
String? dbName = defaultDBName,
tryToLogOperation = true}) async {
final res = await super.update(map, table, keys: keys, dbName: dbName);
if (tryToLogOperation && !_isSystemTable(table)) {
await logOperation(table, Operation.update, map[_getKeyField(table)],
dbName: dbName!);
}
return res;
}