Skip to content

Commit 8ce72e7

Browse files
committed
Mention PowerSync as sync service option
1 parent 3089854 commit 8ce72e7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/docs/Examples/server_sync.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,32 @@ in which he shares the approach used by Visible to sync local changes to the ser
3535
Additional approaches are also discussed in [this issue](https://github.com/simolus3/drift/issues/136) and
3636
[here](https://github.com/simolus3/drift/discussions/2880).
3737

38+
## PowerSync
39+
40+
<small>
41+
_Disclosure_: Drift maintainer Simon Binder [works at the team maintaining PowerSync](https://www.powersync.com/blog/simon-binder-joins-powersync).
42+
While this page only reflects his personal opinion, please keep that in mind and perhaps consult other sources on sync options for Dart too.
43+
</small>
44+
45+
PowerSync is sync solution with [stable and official Flutter support](https://docs.powersync.com/client-sdk-references/flutter).
46+
Using a sync service available as a managed cloud offering or for self-hosting, you define buckets of data to make available to individual users.
47+
A client SDK for Dart/Flutter connects to this service to automatically sync changes from backend databases in real-time.
48+
49+
While PowerSync automatically collects client-side changes, you're still responsible for uploading these to your backend (which can then validate them).
50+
For managed Postgres databases such as Supabase, using row-level security and [direct uploads from clients](https://docs.powersync.com/integration-guides/supabase-+-powersync)
51+
avoids the use of a separate backend.
52+
53+
PowerSync also offers a [package for drift support](https://docs.powersync.com/client-sdk-references/flutter/flutter-orm-support#example-implementation) (currently in Alpha)
54+
that will make your query streams update in real-time for changes from the backend.
55+
[This example](https://github.com/powersync-ja/powersync.dart/tree/main/demos/supabase-todolist-drift) shows how PowerSync can be integrated into a drift app.
56+
3857
## ElectricSQL
3958

59+
!!! note "This section may be outdated"
60+
61+
The Dart package for Electric referenced here refers to an [older version of Electric SQL](https://legacy.electric-sql.com/),
62+
the current version of Electric does not appear to be available to Dart apps.
63+
4064
[ElectricSQL](https://electric-sql.com/) is a solution you can self-host to synchronize PostgreSQL databases
4165
with clients.
4266
Instead of having to deal with changes manually, a service receives updates from the PostgreSQL server and

0 commit comments

Comments
 (0)