Hello,
I have couple of questions regarding work with drift and powersync.
- should we use drift schema or powersync schema?
- when i do the example, i dont have any option to connect to get syncing, how does it work then?
- Can we have the database in isolate?
if powersync schema is used, then views are created, so drift does not work.
Can someone shed light on this with examples, how it should be actually implemented?
For context: coming from drift + electric
how i have it now, which i really dont like.
final dbPath = await getDatabasePath();
final db = SqliteDatabase(path: dbPath);
_chatDb = ChatDatabase(db); //drift
final powerSync = PowerSyncDatabase.withDatabase(schema: schema, database: db);
await _chatDb!.customSelect("SELECT 1").get();
powerSync.connect(connector: MyBackendConnector(powerSync));
_chatDao = ChatDao(_chatDb!); //dao for queries
Hello,
I have couple of questions regarding work with drift and powersync.
if powersync schema is used, then views are created, so drift does not work.
Can someone shed light on this with examples, how it should be actually implemented?
For context: coming from drift + electric
how i have it now, which i really dont like.