Moor: Persistence library for Dart

Moor is an easy to use, reactive persistence library for Flutter apps. Define your database tables in pure Dart and enjoy a fluent query API, auto-updating streams and more!

Declarative tables, fluent queries!

With moor, you can write your database tables in pure Dart without having to miss out on advanced sqlite features. Moor will take care of creating the tables and generate code that allows you run fluent queries on your data.

Get started now

Prefer SQL? Moor got you covered!

Moor contains a powerful sql parser and analyzer, allowing it to create typesafe APIs for all your sql queries. All sql queries are validated and analyzed during build-time, so moor can provide hints about potential errors quickly and generate efficient mapping code.

Learn more

And much more!

Moor provides auto-updating Streams for all your queries, makes dealing with transactions and migrations easy and lets your write modular database code with DAOs. We even have a sql IDE builtin to the project When using moor, working with databases in Dart is fun!