TableUpdateQuery.onAllTables constructor

TableUpdateQuery.onAllTables(
  1. Iterable<ResultSetImplementation> tables
)

A query that listens for any change on any table in tables.

Implementation

factory TableUpdateQuery.onAllTables(
    Iterable<ResultSetImplementation> tables) {
  return TableUpdateQuery.allOf(
    [
      for (final table in tables)
        if (table is ViewInfo)
          for (final table in table.readTables)
            TableUpdateQuery.onTableName(table)
        else
          TableUpdateQuery.onTable(table),
    ],
  );
}