File tree 1 file changed +6
-10
lines changed
demos/react-native-supabase-todolist/library/powersync
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,13 @@ export class System {
26
26
this . kvStorage = new KVStorage ( ) ;
27
27
this . supabaseConnector = new SupabaseConnector ( this ) ;
28
28
this . storage = this . supabaseConnector . storage ;
29
- // this.powersync = new PowerSyncDatabase({
30
- // schema: AppSchema,
31
- // database: {
32
- // dbFilename: 'sqlite.db'
33
- // }
34
- // });
35
-
36
- const factory = new OPSqliteOpenFactory ( {
37
- dbFilename : 'sqlite.db'
29
+ this . powersync = new PowerSyncDatabase ( {
30
+ schema : AppSchema ,
31
+ database : {
32
+ dbFilename : 'sqlite.db'
33
+ }
38
34
} ) ;
39
- this . powersync = new PowerSyncDatabase ( { database : factory , schema : AppSchema } ) ;
35
+
40
36
/**
41
37
* The snippet below uses OP-SQLite as the default database adapter.
42
38
* You will have to uninstall `@journeyapps/react-native-quick-sqlite` and
You can’t perform that action at this time.
0 commit comments