File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
3
- import 'package:sqlite_async/sqlite3_common .dart' ;
3
+ import 'package:sqlite_async/sqlite3_wasm .dart' ;
4
4
5
5
/// Wrap a CommonDatabase to throttle its updates stream.
6
6
/// This is so that we can throttle the updates _within_
@@ -103,6 +103,17 @@ class ThrottledCommonDatabase extends CommonDatabase {
103
103
Stream <SqliteUpdate > get updates {
104
104
return throttledUpdates (_db, _transactionController.stream);
105
105
}
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;
106
117
}
107
118
108
119
/// This throttles the database update stream to:
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ topics:
12
12
- flutter
13
13
14
14
dependencies :
15
- sqlite3 : ^2.6 .0
15
+ sqlite3 : ^2.7 .0
16
16
sqlite3_web : ^0.2.1
17
17
async : ^2.10.0
18
18
collection : ^1.17.0
You can’t perform that action at this time.
0 commit comments