moor
moor is a reactive persistence library for flutter and dart, built ontop of sqlite.
moor is
- flexible: moor let’s you write queries in both sql and dart,
providing fluent apis for both languages. you can filter and order results
or use joins to run queries on multiple tables. you can even use complex
sql features likewith
andwindow
clauses. - �� feature rich: moor has builtin support for transactions, schema
migrations, complex filters and expressions, batched updates and joins. we
even have a builtin ide for sql! - �� modular: thanks to builtin support for daos and
import
s in sql files, moor helps you keep your database code simple. - ��️ safe: moor generates typesafe code based on your tables and queries. if you make a mistake in your queries, moor will find it at compile time and
provide helpful and descriptive lints. - ⚡ fast: even though moor lets you write powerful queries, it can keep
up with the performance of key-value stores like shared preferences and hive. moor is the only major persistence library with builtin threading support, allowing you to run database code across isolates with zero additional effort. - reactive: turn any sql query into an auto-updating stream! this includes complex queries across many tables
- ⚙️ cross-platform support: moor works on android, ios, macos, windows, linux and the web. this template is a flutter todo app that works on all platforms
- ��️ battle tested and production ready: moor is stable and well tested with a wide range of unit and integration tests. it powers production flutter apps.
with moor, persistence on flutter is fun!
to start using moor, 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.
packages in this repo:
moor
: the main runtime for moor, which provides most apismoor_ffi
: new and faster executor for moor, built withdart:ffi
.moor_flutter
: the standard executor wrapping thesqflite
packagemoor_generator
: the compiler for moor tables, databases and daos. it
also contains a fully-featured sql idesqlparser
: a sql parser and static analyzer, written in pure dart. this package can be used without moor to perform analysis on sql statements.
Comments are closed.