update method
Future<bool>
update(
- String table,
- Map<
String, Object?> values, { - String? where,
- List<
Object?> ? whereArgs, - ConflictAlgorithm? conflictAlgorithm,
override
Implementation
@override
Future<bool> update(
String table,
Map<String, Object?> values, {
String? where,
List<Object?>? whereArgs,
ConflictAlgorithm? conflictAlgorithm,
}) async {
try {
final result = await database!.update(
table,
values,
where: where,
whereArgs: whereArgs,
conflictAlgorithm: conflictAlgorithm ?? defaultConflictAlgorithm,
);
if (result == 1) {
return true;
} else {
return false;
}
} catch (e) {
throw DatabaseBridgeException(error: e);
}
}