Release moor 4 preview to pub

This commit is contained in:
Simon Binder 2021-01-11 20:15:10 +01:00
parent 64fd91d2a8
commit c5cbd1b62e
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
7 changed files with 15 additions and 16 deletions

View File

@ -1,4 +1,4 @@
## unreleased (breaking - 4.0)
## 4.0.0-nullsafety.1
- __Breaking__: `getSingle()` and `watchSingle()` are now non-nullable and throw for empty results.
Use `getSingleOrNull()` and `watchSingleOrNull()` for the old behavior.

View File

@ -1,6 +1,6 @@
name: moor
description: Moor is a safe and reactive persistence library for Dart applications
version: 4.0.0-nullsafety.0
version: 4.0.0-nullsafety.1
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
@ -10,7 +10,7 @@ environment:
dependencies:
meta: ^1.3.0-nullsafety.6
# We'd prefer convert ^3.0.0 for nullsafety, (we have a dependency_override) for that, but large chunks of the Dart
# We'd prefer convert ^3.0.0 for nullsafety, (we have a dependency_override for that), but large chunks of the Dart
# ecosystem don't support version 3.0.0 yet, so we support older versions for compatibility.
convert: ">=2.1.1 <4.0.0"
collection: ^1.15.0-nullsafety.5

View File

@ -1,6 +1,7 @@
## 4.0.0
## 4.0.0-dev
- Remove the `legacy_type_inference` option
- Support moor 4
## 3.4.0

View File

@ -24,7 +24,7 @@ dependencies:
# Moor-specific analysis and apis
moor: ^4.0.0-nullsafety
sqlite3: ^0.1.6
sqlparser: ^0.12.0-dev
sqlparser: ^0.12.0-nullsafety.0
# Dart analysis
analyzer: ">=0.40.0 <0.42.0"
@ -47,8 +47,8 @@ dev_dependencies:
executables:
moor_generator:
dependency_overrides:
sqlparser:
path: ../sqlparser
moor:
path: ../moor
#dependency_overrides:
# sqlparser:
# path: ../sqlparser
# moor:
# path: ../moor

View File

@ -1,4 +1,4 @@
## 0.12.0
## 0.12.0-nullsafety.0
- Migrate to null-safety
- Remove legacy type inference

View File

@ -11,7 +11,7 @@ We can resolve what type a column in a `SELECT` statement has, infer types for v
find semantic errors and more.
This library supports most sqlite features:
- CRUD: Full support, including joins, `group by`, nested and compound selects, `WITH` clauses
- DQL: Full support, including joins, `group by`, nested and compound selects, `WITH` clauses
and window functions
- DDL: Supports `CREATE TABLE` statements, including advanced features like foreign keys or
virtual tables (when a matching module like `fts5` is enabled). This library also supports
@ -69,11 +69,9 @@ resolvedColumns.map((c) => context.typeOf(c).type.type); // int, text, int, text
```
## But why?
[Moor](https://pub.dev/packages/moor_flutter), a persistence library for Dart apps, uses this
[Moor](https://pub.dev/packages/moor), a persistence library for Dart apps, uses this
package to generate type-safe methods from sql.
## Thanks
- To [Bob Nystrom](https://github.com/munificent) for his amazing ["Crafting Interpreters"](https://craftinginterpreters.com/)
book, which was incredibly helpful when writing the parser.
- To the authors of [SQLDelight](https://github.com/square/sqldelight). This library uses their algorithm
for type inference.

View File

@ -1,6 +1,6 @@
name: sqlparser
description: Parses sqlite statements and performs static analysis on them
version: 0.12.0-dev
version: 0.12.0-nullsafety.0
homepage: https://github.com/simolus3/moor/tree/develop/sqlparser
#homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues