Skip to content

Commit fa9735f

Browse files
committed
Revert default db in todolist demo
1 parent 34a80d8 commit fa9735f

File tree

1 file changed

+6
-10
lines changed
  • demos/react-native-supabase-todolist/library/powersync

1 file changed

+6
-10
lines changed

demos/react-native-supabase-todolist/library/powersync/system.ts

+6-10
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ export class System {
2626
this.kvStorage = new KVStorage();
2727
this.supabaseConnector = new SupabaseConnector(this);
2828
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+
}
3834
});
39-
this.powersync = new PowerSyncDatabase({ database: factory, schema: AppSchema });
35+
4036
/**
4137
* The snippet below uses OP-SQLite as the default database adapter.
4238
* You will have to uninstall `@journeyapps/react-native-quick-sqlite` and

0 commit comments

Comments
 (0)