2019-08-03 05:30:37 -07:00
|
|
|
---
|
2019-08-17 12:26:02 -07:00
|
|
|
title: "Moor - Reactive, typesafe persistence library for Dart"
|
2019-08-18 02:27:31 -07:00
|
|
|
description: Moor is a reactive and typesafe persistence library for Dart and Flutter apps.
|
|
|
|
It generates code to let you write complex queries easily.
|
2019-08-03 05:30:37 -07:00
|
|
|
linkTitle: "Moor"
|
|
|
|
---
|
2019-08-01 11:56:23 -07:00
|
|
|
|
2019-08-03 05:30:37 -07:00
|
|
|
{{< blocks/cover title="Moor: Persistence library for Dart" image_anchor="top" height="med" color="indigo" >}}
|
2019-08-01 11:56:23 -07:00
|
|
|
<div class="mx-auto">
|
|
|
|
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
|
|
|
|
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
|
|
|
|
</a>
|
2019-08-03 05:30:37 -07:00
|
|
|
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://pub.dev/packages/moor_flutter">
|
|
|
|
Get fom pub <i class="fas fa-code ml-2 "></i>
|
2019-08-01 11:56:23 -07:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{< /blocks/cover >}}
|
|
|
|
|
|
|
|
|
2019-08-03 05:30:37 -07:00
|
|
|
{{% blocks/lead color="dark" %}}
|
|
|
|
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!
|
2019-08-01 11:56:23 -07:00
|
|
|
{{% /blocks/lead %}}
|
|
|
|
|
2019-08-03 05:30:37 -07:00
|
|
|
{{< 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
|
2019-08-05 11:10:39 -07:00
|
|
|
advanced sqlite features. Moor will take care of creating the tables and generate code
|
|
|
|
that allows you run fluent queries on your data.
|
2019-08-01 11:56:23 -07:00
|
|
|
|
2019-08-03 05:30:37 -07:00
|
|
|
[Get started now]({{< ref "/docs/Getting started/_index.md" >}})
|
2019-08-01 11:56:23 -07:00
|
|
|
{{% /blocks/feature %}}
|
|
|
|
|
2019-09-26 13:46:19 -07:00
|
|
|
{{% 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
|
2019-08-03 05:30:37 -07:00
|
|
|
validated and analyzed during build-time, so moor can provide hints about potential errors quickly and generate efficient mapping
|
|
|
|
code.
|
2019-09-26 13:46:19 -07:00
|
|
|
|
|
|
|
[Learn more]({{< ref "/docs/Using SQL/_index.md" >}})
|
2019-08-01 11:56:23 -07:00
|
|
|
{{% /blocks/feature %}}
|
|
|
|
|
|
|
|
|
2019-08-03 05:30:37 -07:00
|
|
|
{{% blocks/feature icon="fas fa-star" title="And much more!" %}}
|
2019-09-26 13:46:19 -07:00
|
|
|
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!
|
2019-08-01 11:56:23 -07:00
|
|
|
|
|
|
|
{{% /blocks/feature %}}
|
|
|
|
{{< /blocks/section >}}
|