Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.
Core | Generator |
---|---|
Drift is a reactive persistence library for Flutter and Dart, built on top of SQLite. Drift is
WITH
and WINDOW
clauses.import
s in SQL files, drift helps you keep your database code simple.With drift, persistence on Flutter is fun!
To start using drift, read our detailed docs.
If you have any questions, feedback or ideas, feel free to create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.
Drift is proudly Sponsored by Stream 💙
Try the Flutter Chat Tutorial  💬 |
This repository contains a number of packages making up the drift project, most notably:
drift
: The main runtime for drift, which provides most APIs.drift_dev
: The compiler for drift tables, databases and daos. It
also contains a fully-featured SQL IDE for the Dart analyzer.sqlparser
: A SQL parser and static analyzer, written in pure Dart. This package can be used without drift to perform analysis on SQL statements.
It's on pub at
We use melos to manage the different packages in this repository.
You can install it with dart pub global activate melos
. To activate it in this
repository, run dart pub get
in this directory followed by melos bootstrap
.