--- title: "Moor - Reactive, typesafe persistence library for Dart" description: Moor is a reactive and typesafe persistence library for Dart and Flutter apps. It generates code to let you write complex queries easily. linkTitle: "Moor" --- {{< blocks/cover title="Moor: Persistence library for Dart" image_anchor="top" height="med" color="indigo" >}}
}}"> Learn moor Get fom pub

With a fluent query api, a powerful sql analyzer, auto-updating streams and much moor, moor makes persistence fun. Scroll down to learn about moor's key features, or visit the }}">getting started guide for a step-by-step guide on using moor.

{{< /blocks/cover >}} {{% blocks/lead color="dark" %}} Moor is an easy to use, reactive persistence library for Flutter apps. Define tables in Dart or SQL and enjoy a fluent query API, auto-updating streams and more! {{% /blocks/lead %}} {{< blocks/section color="primary" >}} {{% blocks/feature icon="fa-lightbulb" title="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]({{< ref "/docs/Getting started/_index.md" >}}) {{% /blocks/feature %}} {{% blocks/feature icon="fas fa-database" title="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]({{< ref "/docs/Using SQL/_index.md" >}}) {{% /blocks/feature %}} {{% blocks/feature icon="fas fa-star" title="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](too) builtin to the project When using moor, working with databases in Dart is fun! {{% /blocks/feature %}} {{< /blocks/section >}} {{< blocks/section color="light" type="section" >}}

Key moor features

Here are some of the many ways moor helps you write awesome database code: {{< /blocks/section >}}