watch abstract method

Stream<ResultSet> watch(
  1. String sql, {
  2. List<Object?> parameters = const [],
  3. Duration throttle = const Duration(milliseconds: 30),
})

Execute a read query every time the source tables are modified.

Use throttle to specify the minimum interval between queries.

Source tables are automatically detected using EXPLAIN QUERY PLAN.

Implementation

Stream<sqlite.ResultSet> watch(String sql,
    {List<Object?> parameters = const [],
    Duration throttle = const Duration(milliseconds: 30)});