updateAll method

  1. @override
Future updateAll(
  1. Map<String, dynamic> values
)
override

Relation

Implementation

@override
Future<dynamic> updateAll(Map<String, dynamic> values) async {
  final builder = SqlBuilder.update(
    schema.table!,
    values,
    where: _whereQuery,
    whereArgs: _whereArgs,
  );

  final completer = Completer<dynamic>()
    ..complete(database!.rawUpdate(builder.sql, builder.arguments));

  if (isLogger!) Logger.update(type, completer.future, builder);

  return await completer.future.whenComplete(clear);
}