Skip to content

Commit

Permalink
Revert default db in todolist demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Oct 15, 2024
1 parent 34a80d8 commit fa9735f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions demos/react-native-supabase-todolist/library/powersync/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,13 @@ export class System {
this.kvStorage = new KVStorage();
this.supabaseConnector = new SupabaseConnector(this);
this.storage = this.supabaseConnector.storage;
// this.powersync = new PowerSyncDatabase({
// schema: AppSchema,
// database: {
// dbFilename: 'sqlite.db'
// }
// });

const factory = new OPSqliteOpenFactory({
dbFilename: 'sqlite.db'
this.powersync = new PowerSyncDatabase({
schema: AppSchema,
database: {
dbFilename: 'sqlite.db'
}
});
this.powersync = new PowerSyncDatabase({ database: factory, schema: AppSchema });

/**
* The snippet below uses OP-SQLite as the default database adapter.
* You will have to uninstall `@journeyapps/react-native-quick-sqlite` and
Expand Down

0 comments on commit fa9735f

Please sign in to comment.