Inconsistency in examples #80
Replies: 1 comment 6 replies
-
For a full example, see this:
You currently need to define both - powersync for managing the database, and drift for managing your DAOs. Just avoid running drift migrations - that will conflict with the powersync views. We can look into auto-generating the powersync schema from the Drift schema in the future.
See the example above, it does including syncing. The examples in the drift_sqlite_async repo are for usage without PowerSync.
Yes, the underlying sqlite_async does work with Isolates. Some considerations:
See more discussion on usage with Isolates in our Discord here:
It can be simplified slightly, see the example linked above. But it should only be a once-off setup either way. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions