Merge branch 'master' into develop

This commit is contained in:
Simon Binder 2020-01-21 21:09:53 +01:00
commit 59134e42db
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
7 changed files with 13 additions and 13 deletions

View File

@ -24,7 +24,7 @@ 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](https://github.com/appleeducate/moor_shared) is a Flutter todo app that works on all platforms
- __⚙️ Cross-Platform support__: Moor works on Android, iOS, macOS, Windows, Linux and the web. [This template](https://github.com/rodydavis/moor_shared) 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!
@ -45,4 +45,4 @@ Packages in this repo:
also contains a fully-featured sql ide
- `sqlparser`: A sql parser and static analyzer, written in pure Dart. This package can be used without moor to perform analysis on sql statements.
It's on pub at
[![sqlparser](https://img.shields.io/pub/v/sqlparser.svg)](https://pub.dev/packages/sqlparser)
[![sqlparser](https://img.shields.io/pub/v/sqlparser.svg)](https://pub.dev/packages/sqlparser)

View File

@ -38,7 +38,7 @@ We can now change the `database` class like this:
// rest of class can stay the same
```
You can also add individual tables or drop them - see the reference of [Migrator](https://pub.dev/documentation/moor/latest/moor/Migrator-class.html)
You can also add individual tables or drop them - see the reference of [Migrator](https://pub.dev/documentation/moor/latest/moor_web/Migrator-class.html)
for all the available options. You can't use the high-level query API in migrations - calling `select` or similar
methods will throw.

View File

@ -7,7 +7,7 @@ description: Example apps using moor
We have an [example in the repo](https://github.com/simolus3/moor/tree/master/moor_flutter/example), it's a simple todo list app,
written with moor. [Rody Davis](https://github.com/AppleEducate) has built a cleaner version of the example that works on all
Flutter platforms - including Web and Desktop! You can check it out [here](https://github.com/AppleEducate/moor_shared).
written with moor. [Rody Davis](https://github.com/rodydavis) has built a cleaner version of the example that works on all
Flutter platforms - including Web and Desktop! You can check it out [here](https://github.com/rodydavis/moor_shared).
The [HackerNews reader app](https://github.com/filiph/hn_app) from the [Boring Flutter Show](https://www.youtube.com/playlist?list=PLjxrf2q8roU3ahJVrSgAnPjzkpGmL9Czl) also uses moor to keep a list of favorite articles.
The [HackerNews reader app](https://github.com/filiph/hn_app) from the [Boring Flutter Show](https://www.youtube.com/playlist?list=PLjxrf2q8roU3ahJVrSgAnPjzkpGmL9Czl) also uses moor to keep a list of favorite articles.

View File

@ -151,7 +151,7 @@ Future<void> insertMultipleEntries() async{
await batch((batch) {
// functions in a batch don't have to be awaited - just
// await the whole batch afterwards.
batch.insertAll([
batch.insertAll(todos, [
TodosCompanion.insert(
title: 'First entry',
content: 'My content',

View File

@ -63,7 +63,7 @@ On the web, you can use
```dart
import 'package:moor/moor_web.dart';
SharedDatabase constructDb() {
return SharedDatabase(WebDatabse('db'));
return SharedDatabase(WebDatabase('db'));
}
```
@ -76,4 +76,4 @@ object via `window.db`. If you need to quickly run a query to check the state of
`db.exec(sql)`.
If you need to delete your databases, there stored using local storage. You can clear all your data with `localStorage.clear()`.
Web support is experimental at the moment, so please [report all issues](https://github.com/simolus3/moor/issues/new) you find.
Web support is experimental at the moment, so please [report all issues](https://github.com/simolus3/moor/issues/new) you find.

View File

@ -16,7 +16,7 @@ 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. 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](https://github.com/appleeducate/moor_shared) is a Flutter todo app that works on all platforms
- __⚙️ Cross-Platform support__: Moor works on Android, iOS, macOS, Windows, Linux and the web. [This template](https://github.com/rodydavis/moor_shared) 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!
@ -29,4 +29,4 @@ project, I'd appreciate your [🌟 on GitHub](https://github.com/simolus3/moor/)
## For the web
For information to use this library on the web (including Flutter web), follow the
instructions [here](https://moor.simonbinder.eu/web). Keep in mind that web support is still experimental.
instructions [here](https://moor.simonbinder.eu/web). Keep in mind that web support is still experimental.

View File

@ -14,7 +14,7 @@ even have a builtin IDE for SQL!
- __🛡️ 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.
- __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](https://github.com/appleeducate/moor_shared) is a Flutter todo app that works on all platforms
- __⚙️ Cross-Platform support__: Moor works on Android, iOS, macOS, Windows, Linux and the web. [This template](https://github.com/rodydavis/moor_shared) 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!
@ -27,4 +27,4 @@ project, I'd appreciate your [🌟 on GitHub](https://github.com/simolus3/moor/)
## For the web
For information to use this library on the web (including Flutter web), follow the
instructions [here](https://moor.simonbinder.eu/web). Keep in mind that web support is still experimental.
instructions [here](https://moor.simonbinder.eu/web). Keep in mind that web support is still experimental.