rawUpdateAndTrigger method

  1. @override
Future<int> rawUpdateAndTrigger(
  1. Iterable<String> tables,
  2. String sql, [
  3. List<Object?>? arguments
])
override

See rawUpdate

Execute a raw SQL UPDATE query

A notification to queries for tables will be sent after the statement is executed and had rows were affected.

Returns the number of changes made

Implementation

@override
Future<int> rawUpdateAndTrigger(
  Iterable<String> tables,
  String sql, [
  List<Object?>? arguments,
]) async {
  final rows = await rawUpdate(sql, arguments);
  if (rows > 0) {
    sendTableTrigger(tables);
  }
  return rows;
}