
About Drift
Drift is an open source persistence library for relational data in Dart and Flutter apps. It is MIT licensed and adds type safety, stream queries and migration helpers on top of SQLite.
What it does
Drift generates Dart classes for your tables and rows, so queries return objects instead of raw maps that you have to parse. Any query can be turned into a stream that emits new results when the data changes. You can also write SQL directly, and Drift has a built-in parser that checks those queries at compile time.
Key features
- Type-safe table and row classes
- Stream queries that update automatically
- SQL parsing and checks at compile time
- Migration utilities for schema changes
- Support for native and web platforms
Who it's for
Drift suits Flutter developers who want local storage with typed queries. It also helps teams that want relational data without parsing rows by hand, and apps that need reactive data in the interface.
Pricing and good to know
Drift is open source under the MIT license. The docs include setup guides, examples and a devtools extension. Drift builds on libraries such as sqlite3 and sqflite, so check which database driver fits each platform before you start a project.
Highlights
- Get typed Dart objects from table queries
- Turn any query into an auto-updating stream
- Check SQL queries at compile time
- Run migrations with built-in helper functions












