r/FlutterDev • • 3d ago

Discussion Database solutions

Hi,

I'm a flutter developer experienced with both cross platform and native applications development..

For 5 years I've been using Sqlite (android native) and sqflite (flutter) as my main database go to packages.. I'm kinda tired of hand writing sqlite quarries and I understand how frustrating it is to have a typo in a long quarry (I know we have AI now) or to actively maintain it.

I know we have a lot of non-sql solutions but they mostly use build runner and auto generate files to translate code properly and it feels mostly heavy and lacks a lot on optimization side.. So I'm starting my own package.. I want to understand what are your biggest issues with current packages.. What's your experience with them.. What do you think is a big downside that will make you switch from your current "go to"?

I'd love to hear from you!

2 Upvotes

23 comments sorted by

View all comments

3

u/dawedev 3d ago

drift already gives you typed queries checked at compile time, but it leans on build_runner too, so I get the complaint. What would make me switch is migrations I can actually test against old schema versions, plus running queries off the main isolate without extra boilerplate.

1

u/DullSpinach1684 3d ago

Love it! Thank you for your participation 🤩

1

u/TheManuz 1d ago

Drift has a neat migration and schema generation.

Edit: it generates tests for migrations too

1

u/dawedev 19h ago

Huh, I missed that it generates migration tests. That takes care of most of my complaint then.

1

u/Okms_Vonessa 9h ago

testing migrations against older schemas is such a pain right now tbh, definitely the biggest gap in most local db setups.

1

u/dawedev 8h ago

Yeah, and the drift migration test generation someone mentioned covers a lot of it if you export each schema version. Most other local db packages just leave you writing that by hand.