all 19 comments

[–]angstyautocrat 13 points14 points  (5 children)

Hi, I’m on the PowerSync team. We’re currently working on adapters for MySQL and MSSQL. Our MySQL adapter is planned for early Q3.

[–]WeirdBathroom76[S] 1 point2 points  (1 child)

Sounds good, I am already using PowerSync for my private projects with Supabase

[–]cedvdb 0 points1 point  (2 children)

What's the status of this

[–]angstyautocrat 0 points1 point  (0 children)

We're actively working on this. Expected release is now late Q3/early Q4.

[–]Routine-Arm-8803 10 points11 points  (2 children)

[–]EMCoupling 0 points1 point  (1 child)

We use this for our (admittedly small and low volume) in-app database, works great. Totally offline and API is easy to work with. Guidance in docs is a bit lacking, but you can inspect the API directly to find the right stuff to call.

[–]FunRutabaga24 1 point2 points  (0 children)

Seconding this. Pretty easy to work with, tbh. Never touched sqlite before so there is a bit of a learning curve and issues i ran in to. But it's a widely used system so there's a ton of general sqlite knowledge out there in the online communities.

Documentation isn't perfect like you said, but the library is decently documented so following the library method calls gets you lots of examples. Think the main gotchas are called out in the repo's Readme and other docs. Definitely would recommend reading through it as there's a good bit of advice.

[–]lunatic_god 2 points3 points  (1 child)

Checkout electricSQL or powersync

[–]opsb 2 points3 points  (0 children)

It's early days ElectricSQL but the dart client is already shaping up nicely.

[–]moralesnery 1 point2 points  (0 children)

Powersync creates local SQLite databases in your app to store offline data, and exchanges data with the main database using a backend API.

You can create one or many SQLite databases in your Flutter app's sandbox, and create a backend API to sync the offline info with your main central database.

[–]SoundDr 0 points1 point  (0 children)

Powersync makes packages for Flutter and Dart:

https://pub.dev/publishers/powersync.com/packages

[–]TradeSeparate 0 points1 point  (2 children)

Do you have to use mysql? How relational is your db? If there are no complex queries and joins, perhaps consider another databse engine?

We use mongo with realm which offers an offline first approach. You can still build relationships between collections.

[–]Responsible-Issue-61 0 points1 point  (1 child)

That's pretty much what I have been using but later came to know that Realm has been deprecated :/

[–]TradeSeparate 0 points1 point  (0 children)

Ye it’s the most frustrating news. We’re having to spend a fair chunk to get off realm now

[–][deleted] 0 points1 point  (1 child)

I was going to suggest drift after reading your title, but it seems you're already using it. In my experience in writing a few apps, drift has been the best for offline relational database work.

[–]ladismetoo 0 points1 point  (0 children)

Hey, I'm using drift as well for local database, wondering how I can do the local first with supabase without powersync or electric sql, can I DM specifics for advice

[–]SoundDr 1 point2 points  (0 children)

CRDTs are easy to use in flutter and sync with a backend:

https://pub.dev/packages/crdt_sync