Drift: Reactive Database Storage for Dart and Flutter
drift.simonbinder.eu · checked 30 Sept 2026
A free Dart and Flutter library for reactive relational data storage.
How it plugs in
Signal on Mobile Databases6.3#9 of 26
Drift is a free persistence library for Dart and Flutter apps. It stores relational data, checks SQL queries during compilation, and generates Dart code for database rows. Watched queries update as data changes. It supports mobile, desktop, web, and several database backends, with offline and bidirectional synchronization options.

Review
In a line
Drift stores relational data for Dart and Flutter applications. It is designed for developers who need database storage that can react to changes.
What it does
Drift maps database rows to objects you choose and provides type-safe queries, which catch many query mistakes before the app runs.
Queries can be watched as streams, so results update when the stored data changes. At compile time, Drift's SQL parser and analyzer validate queries and can produce Dart code for database rows.
Using drift_dev with build_runner generates this code as part of compilation. Drift also includes tools for database migrations, but schema changes in existing apps require developers to write the migration steps.
How it connects
SQLite is supported, with packages available for PostgreSQL and libSQL connections. The documentation also covers remote libSQL and Turso, including synchronization with a local copy.
Android, iOS, Windows, Linux, macOS, and web are covered by the documented implementations. Offline use and bidirectional data synchronization are supported.
SQLite3MultipleCiphers can provide encrypted databases through a NativeDatabase executor, provided the app sets an encryption key. A Drift DevTools extension is documented for developer work.
Good fit
Dart or Flutter developers needing relational persistence on mobile, desktop, and web platforms may find Drift suitable.
It fits projects that benefit from compile-time SQL checks, generated Dart row code, watched queries, offline operation, or two-way synchronization.
Watch for
Changing a schema already used by an app means writing the migration steps yourself. Some APIs, including date-time modification APIs, are limited to SQLite; most queries work with PostgreSQL without changes.
Some browsers need COOP and COEP security headers for full web support. Without the required headers, Chrome on Android can have cross-tab persistence problems.
For questions or feedback, the setup guide points users to the project's GitHub discussions.
Pricing
Drift is free and has a free plan.
Verdict
Choose Drift if your Dart or Flutter project needs structured database storage with compile-time SQL checking and queries that update as data changes. Its broad platform support and connections for SQLite, PostgreSQL, and libSQL make it suitable for apps spanning devices and web.
Look elsewhere if you cannot maintain migration code, need every database API to behave the same across SQLite and PostgreSQL, or cannot configure the browser headers required by some web setups.
Our take
Drift is a sensible choice for Dart and Flutter teams that want database work checked before release and results that stay current as records change. It covers the main device platforms, supports offline and two-way synchronization, and is free to use. Teams using PostgreSQL should verify that their required APIs are supported before committing.
- Free plan with no listed charge
- Compile-time SQL checks and generated Dart row code
- Available on Android, iOS, desktop, and web
- SQLite support with connection packages for PostgreSQL and libSQL
- Offline use and bidirectional synchronization
- Schema migrations must be written by developers
- Some date-time APIs only work with SQLite
- Some web browsers need COOP and COEP headers
- Chrome on Android may have cross-tab persistence issues
- Pick it ifDart and Flutter apps needing relational storage; Projects that need watched queries and offline operation; Apps targeting mobile, desktop, and web
- Skip it ifYou need automatic schema migrations; You require identical APIs across SQLite and PostgreSQL; You cannot set required security headers for web support
Pricing
Drift is free, so there is no plan fee to budget for. Its free plan covers the library itself.
Questions
What is Drift?
Drift provides reactive relational persistence for Dart and Flutter applications.
Which platforms does Drift support?
The documented implementations cover Android, iOS, Windows, Linux, macOS, and web.
Which databases can Drift use?
Drift works with SQLite and offers packages connecting to PostgreSQL and libSQL. The documentation also covers remote libSQL and Turso.
Does Drift work offline?
Yes. Drift supports offline use and bidirectional data synchronization.
Is Drift free?
Yes. Drift has a free plan.
Do I need to write database migrations?
Yes. Migration utilities are provided, but changing a schema used by an existing app requires developers to write the migration steps.
Does Drift encrypt databases?
Encrypted databases are possible with SQLite3MultipleCiphers and a NativeDatabase executor; the app needs to provide an encryption key.