File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
3- import 'package:sqlite_async/sqlite3_common .dart' ;
3+ import 'package:sqlite_async/sqlite3_wasm .dart' ;
44
55/// Wrap a CommonDatabase to throttle its updates stream.
66/// This is so that we can throttle the updates _within_
@@ -103,6 +103,17 @@ class ThrottledCommonDatabase extends CommonDatabase {
103103 Stream <SqliteUpdate > get updates {
104104 return throttledUpdates (_db, _transactionController.stream);
105105 }
106+
107+ @override
108+ VoidPredicate ? get commitFilter => _db.commitFilter;
109+
110+ set commitFilter (VoidPredicate ? filter) => _db.commitFilter = filter;
111+
112+ @override
113+ Stream <void > get commits => _db.commits;
114+
115+ @override
116+ Stream <void > get rollbacks => _db.rollbacks;
106117}
107118
108119/// This throttles the database update stream to:
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ topics:
1212 - flutter
1313
1414dependencies :
15- sqlite3 : ^2.6 .0
15+ sqlite3 : ^2.7 .0
1616 sqlite3_web : ^0.2.1
1717 async : ^2.10.0
1818 collection : ^1.17.0
You can’t perform that action at this time.
0 commit comments