Drift
drift.simonbinder.eu
- Free plan
- Windows
- macOS
- Linux
- Web
- iPhone and iPad
- Android
- Browser extension
What Drift is
Drift is a reactive persistence library for relational data in Dart and Flutter applications. It maps database rows to selected objects and supplies type-safe queries. Watched queries become streams that update when stored data changes. An SQL parser and analyzer can validate queries at compile time and generate Dart row code through drift_dev and build_runner. Drift supports SQLite and provides packages for PostgreSQL and libSQL, including local-copy synchronization with libSQL. Migration utilities are included, but developers must write migrations when changing schemas used by existing applications. Encrypted databases can use SQLite3MultipleCiphers with a NativeDatabase executor and an application encryption key. Documented implementations cover Android, iOS, Windows, Linux, macOS, and web. Some PostgreSQL APIs, including date-time modification APIs, are SQLite-only. Full web support may need COOP/COEP headers, and Chrome on Android can have cross-tab persistence issues without them.
Who it suits
Drift is for developers building Dart or Flutter applications that need relational persistence, reactive queries, and generated type-safe database code. It suits projects using SQLite, PostgreSQL, or libSQL across mobile, desktop, and web targets.
Good to know, and what to watch
- Type-safe queries and generated row code
- Reactive streams update when data changes
- Supports SQLite, PostgreSQL, and libSQL
- Encrypted database option
- Implementations cover mobile, desktop, and web
- Developers must write schema migrations
- Some PostgreSQL APIs are SQLite-only
- Web support may require security headers
- Chrome Android cross-tab persistence can have issues
The verdict
Drift combines relational storage, compile-time SQL checking, reactive queries, and multiple database integrations for Dart and Flutter. Its migration work and platform-specific limitations should be considered during application design.
What the maker publishes
- Backends
- The setup guide documents SQLite and PostgreSQL dependencies, and the documentation also covers remote libSQL and Turso. source
- Database integrations
- Drift supports SQLite and has packages for PostgreSQL and libSQL connections, including local-copy synchronization with libSQL. source
- Developer tools
- The docs provide a Drift DevTools extension page. source
- Developer tools
- Drift provides a DevTools extension for inspecting databases and tables, modifying table contents, and validating schemas. source
- Dev tooling
- The setup uses drift_dev and build_runner to generate code at compile time. source
- Encryption
- Drift can use encrypted databases through SQLite3MultipleCiphers with a NativeDatabase executor, and the app must set an encryption key. source
- Encryption
- Native databases can use SQLite3MultipleCiphers for encryption, and the documentation recommends this approach for new apps. source
- Intended users
- Drift is presented for developers building Dart and Flutter applications that need relational persistence. source
- Migrations
- Drift provides migration utilities, but developers need to write migrations when changing an existing database schema. source
- Platforms
- Drift supports Android, iOS, Windows, Linux, macOS, and web through platform-specific database implementations. source
- PostgreSQL limit
- Some APIs, including date-time modification APIs, are only supported with SQLite; most queries work with PostgreSQL without modification. source
- Reactive queries
- Queries can be watched as streams that update when underlying data changes. source
- Reactive queries
- Queries can be watched as auto-updating streams that emit when the underlying data changes. source
- Schema changes
- Drift provides migration tools, but developers need to write migrations when changing a database schema used by existing apps. source
- SQL support
- Drift includes an SQL parser and analyzer that can validate queries at compile time and generate Dart row code. source
- Support
- The setup guide directs users with questions or feedback to the project's GitHub discussions. source
- Support
- The setup guide directs users with questions or feedback to start a discussion on GitHub. source
- Supported platforms
- The documented implementations support Android, iOS, Windows, Linux, macOS, and web. source
- Type safety
- Drift maps database rows to chosen objects and provides type-safe queries. source
- Type safety
- Drift generates Dart objects for database rows and can analyze SQL at compile time to generate type-safe APIs. source
- Web browser requirements
- Some browsers need COOP/COEP security headers for full web support, and Chrome on Android can have cross-tab persistence issues without the required headers. source
- What it does
- Drift is a reactive persistence library for relational data in Dart and Flutter applications. source
- What it is
- Drift is a reactive persistence library for relational data in Dart and Flutter apps. source
Checked against the maker's pages on 30 Sept 2026.