updateAll method

Future<int> updateAll(
  1. Map<String, dynamic> data
)

Performs a bulk update on all rows matching the current query.

Implementation

Future<int> updateAll(Map<String, dynamic> data) async {
  if (_builder.toString().isEmpty) {
    throw StateError('Bulk update requires at least one WHERE clause');
  }
  final result = await _builder.update(data);
  return result.affectedRows ?? 0;
}