File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
tools/diagnostics-app/src/library/powersync Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ import {
4
4
PowerSyncDatabase ,
5
5
WebRemote ,
6
6
WebStreamingSyncImplementation ,
7
- WebStreamingSyncImplementationOptions
7
+ WebStreamingSyncImplementationOptions ,
8
+ WASQLiteOpenFactory ,
9
+ TemporaryStorageOption ,
10
+ WASQLiteVFS
8
11
} from '@powersync/web' ;
9
12
import Logger from 'js-logger' ;
10
13
import { DynamicSchemaManager } from './DynamicSchemaManager' ;
@@ -25,12 +28,16 @@ export const getParams = () => {
25
28
26
29
export const schemaManager = new DynamicSchemaManager ( ) ;
27
30
31
+ const openFactory = new WASQLiteOpenFactory ( {
32
+ dbFilename : 'diagnostics.db' ,
33
+ debugMode : true ,
34
+ cacheSizeKb : 500 * 1024 ,
35
+ temporaryStorage : TemporaryStorageOption . MEMORY ,
36
+ vfs : WASQLiteVFS . OPFSCoopSyncVFS
37
+ } ) ;
38
+
28
39
export const db = new PowerSyncDatabase ( {
29
- database : {
30
- dbFilename : 'example.db' ,
31
- debugMode : true ,
32
- cacheSizeKb : 500000
33
- } ,
40
+ database : openFactory ,
34
41
schema : schemaManager . buildSchema ( )
35
42
} ) ;
36
43
You can’t perform that action at this time.
0 commit comments