sqlite3.dart icon indicating copy to clipboard operation
sqlite3.dart copied to clipboard

[feat] More Flutter Helpers

Open dickermoshe opened this issue 1 year ago • 1 comments

  • [ ] A single function for opening the database
  • [ ] ... More as we think of what FlutterDevs could use

@simolus3 What are your thoughts on adding some Flutter specific code to this package?

dickermoshe avatar Jun 19 '24 12:06 dickermoshe

Back when drift was called moor, there was a moor_flutter package. It only contained a sqflite-based executor that would now live in drift_sqflite, but I agree that having a drift_flutter package which contains the _openConnection() method as a public API (so that we don't have to suggest that monstrous snippet on the getting started docs) is definitely nice to have. Core package:drift can't depend on Flutter which is the reason for the current split, but having a dedicated Flutter package implementing best practices is a good call.

simolus3 avatar Jun 19 '24 22:06 simolus3

We do have a drift_flutter package now, closing :)

I will potentially also add some utilities around opening multiple connections to form a WAL pool to this package.

simolus3 avatar Nov 02 '25 10:11 simolus3