File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ export 'src/web/worker_utils.dart' show PowerSyncAdditionalOpenOptions;
5
5
export 'package:sqlite_async/sqlite3_web.dart' ;
6
6
export 'package:sqlite_async/web.dart' ;
7
7
8
+ import 'package:sqlite_async/web.dart' ;
9
+ import 'powersync_core.dart' as core;
8
10
import 'src/open_factory/web/web_open_factory.dart' ;
9
11
12
+ /// The default [core.PowerSyncOpenFactory] implementation for the web. Unlike
13
+ /// the cross-platform interface, this is guaranteed to implement
14
+ /// [WebSqliteOpenFactory] .
15
+ ///
16
+ /// This typedef is mostly used internally, e.g. in the web implementation of
17
+ /// `powersync_sqlcipher` which relies on the fact that web-specific factory
18
+ /// methods are available.
10
19
typedef PowerSyncWebOpenFactory = PowerSyncOpenFactory ;
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ environment:
8
8
sdk : ^3.4.3
9
9
10
10
dependencies :
11
- sqlite_async : ^0.11.1
11
+ sqlite_async : ^0.11.2
12
12
# We only use sqlite3 as a transitive dependency,
13
13
# but right now we need a minimum of v2.4.6.
14
14
sqlite3 : ^2.4.6
15
+ # We implement a database controller, which is an interface of sqlite3_web.
16
+ sqlite3_web : ^0.3.0
15
17
universal_io : ^2.0.0
16
18
meta : ^1.0.0
17
19
http : ^1.1.0
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ dependencies:
15
15
powersync_core : ^1.1.1
16
16
powersync_flutter_libs : ^0.4.4
17
17
sqlcipher_flutter_libs : ^0.6.4
18
+ sqlite3_web : ^0.3.0
19
+
18
20
dev_dependencies :
19
21
flutter_test :
20
22
sdk : flutter
You can’t perform that action at this time.
0 commit comments