File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 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;
55export 'package:sqlite_async/sqlite3_web.dart' ;
66export 'package:sqlite_async/web.dart' ;
77
8+ import 'package:sqlite_async/web.dart' ;
9+ import 'powersync_core.dart' as core;
810import 'src/open_factory/web/web_open_factory.dart' ;
911
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.
1019typedef PowerSyncWebOpenFactory = PowerSyncOpenFactory ;
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ environment:
88 sdk : ^3.4.3
99
1010dependencies :
11- sqlite_async : ^0.11.1
11+ sqlite_async : ^0.11.2
1212 # We only use sqlite3 as a transitive dependency,
1313 # but right now we need a minimum of v2.4.6.
1414 sqlite3 : ^2.4.6
15+ # We implement a database controller, which is an interface of sqlite3_web.
16+ sqlite3_web : ^0.3.0
1517 universal_io : ^2.0.0
1618 meta : ^1.0.0
1719 http : ^1.1.0
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ dependencies:
1515 powersync_core : ^1.1.1
1616 powersync_flutter_libs : ^0.4.4
1717 sqlcipher_flutter_libs : ^0.6.4
18+ sqlite3_web : ^0.3.0
19+
1820dev_dependencies :
1921 flutter_test :
2022 sdk : flutter
You can’t perform that action at this time.
0 commit comments