mirror of https://github.com/AMT-Cheif/drift.git
Final preparations for the 1.6 release
Short summary of updates - web support - using zones to resolve the current transaction - comparable date time values - collate expressions - many bug fixes
This commit is contained in:
parent
be371a3005
commit
f21021a6e9
|
@ -1,4 +1,4 @@
|
||||||
## 1.6 (unreleased)
|
## 1.6.0
|
||||||
- Experimental web support! See [the documentation](https://moor.simonbinder.eu/web) for details.
|
- Experimental web support! See [the documentation](https://moor.simonbinder.eu/web) for details.
|
||||||
- Make transactions easier to use: Thanks to some Dart async magic, you no longer need to run
|
- Make transactions easier to use: Thanks to some Dart async magic, you no longer need to run
|
||||||
queries on the transaction explicitly. This
|
queries on the transaction explicitly. This
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
- Date time columns are now comparable
|
- Date time columns are now comparable
|
||||||
- The `StringType` now supports arbitrary data from sqlite ([#70](https://github.com/simolus3/moor/pull/70)).
|
- The `StringType` now supports arbitrary data from sqlite ([#70](https://github.com/simolus3/moor/pull/70)).
|
||||||
Thanks, [knaeckeKami](https://github.com/knaeckeKami)!
|
Thanks, [knaeckeKami](https://github.com/knaeckeKami)!
|
||||||
|
- Bugfixes related to stream queries and `LIMIT` clauses.
|
||||||
|
|
||||||
## 1.5.1
|
## 1.5.1
|
||||||
- Fixed an issue where transformed streams would not always update
|
- Fixed an issue where transformed streams would not always update
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/// A version of moor that runs on the web by using [sql.js](https://github.com/kripken/sql.js)
|
/// A version of moor that runs on the web by using [sql.js](https://github.com/kripken/sql.js)
|
||||||
/// You manually need to include that library into your website to use the
|
/// You manually need to include that library into your website to use the
|
||||||
/// web version of moor.
|
/// web version of moor. See [the documentation](https://moor.simonbinder.eu/web)
|
||||||
|
/// for a more detailed instruction.
|
||||||
@experimental
|
@experimental
|
||||||
library moor_web;
|
library moor_web;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: moor
|
name: moor
|
||||||
description: Moor is a safe and reactive persistence library for Dart applications
|
description: Moor is a safe and reactive persistence library for Dart applications
|
||||||
version: 1.5.1+1
|
version: 1.6.0
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://moor.simonbinder.eu/
|
homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
@ -17,7 +17,7 @@ dependencies:
|
||||||
synchronized: ^2.1.0
|
synchronized: ^2.1.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
moor_generator: ^1.5.0
|
moor_generator: ^1.6.0
|
||||||
build_runner: '>=1.3.0 <2.0.0'
|
build_runner: '>=1.3.0 <2.0.0'
|
||||||
build_test: ^0.10.8
|
build_test: ^0.10.8
|
||||||
test: ^1.6.4
|
test: ^1.6.4
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
## 1.6.0
|
||||||
|
- Experimental web support! See [the documentation](https://moor.simonbinder.eu/web) for details.
|
||||||
|
- Make transactions easier to use: Thanks to some Dart async magic, you no longer need to run
|
||||||
|
queries on the transaction explicitly. This
|
||||||
|
```dart
|
||||||
|
Future deleteCategory(Category category) {
|
||||||
|
return transaction((t) async {
|
||||||
|
await t.delete(categories).delete(category);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
```
|
||||||
|
is now the same as this (notice how we don't have to use the `t.` in front of the delete)
|
||||||
|
```dart
|
||||||
|
Future deleteCategory(Category category) {
|
||||||
|
return transaction((t) async {
|
||||||
|
await delete(categories).delete(category);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
```
|
||||||
|
This makes it much easier to compose operations by extracting them into methods, as you don't
|
||||||
|
have to worry about not using the `t` parameter.
|
||||||
|
- Moor now provides syntax sugar for list parameters in compiled custom queries
|
||||||
|
(`SELECT * FROM entries WHERE id IN ?`)
|
||||||
|
- Support `COLLATE` expressions.
|
||||||
|
- Date time columns are now comparable
|
||||||
|
- The `StringType` now supports arbitrary data from sqlite ([#70](https://github.com/simolus3/moor/pull/70)).
|
||||||
|
Thanks, [knaeckeKami](https://github.com/knaeckeKami)!
|
||||||
|
- Bugfixes related to stream queries and `LIMIT` clauses.
|
||||||
|
|
||||||
## 1.5.0
|
## 1.5.0
|
||||||
This version introduces some new concepts and features, which are explained in more detail below.
|
This version introduces some new concepts and features, which are explained in more detail below.
|
||||||
Here is a quick overview of the new features:
|
Here is a quick overview of the new features:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: moor_flutter
|
name: moor_flutter
|
||||||
description: Flutter implementation of moor, a safe and reactive persistence library for Dart applications
|
description: Flutter implementation of moor, a safe and reactive persistence library for Dart applications
|
||||||
version: 1.5.0
|
version: 1.6
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://moor.simonbinder.eu/
|
homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
@ -12,7 +12,7 @@ environment:
|
||||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
moor: ^1.4.0
|
moor: ^1.6.0
|
||||||
sqflite: ^1.1.0
|
sqflite: ^1.1.0
|
||||||
meta: '>=1.0.0 <1.2.0'
|
meta: '>=1.0.0 <1.2.0'
|
||||||
path: '>=1.0.0 <2.0.0'
|
path: '>=1.0.0 <2.0.0'
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
## 1.6.0
|
||||||
|
- Generate code to expand array variables
|
||||||
|
|
||||||
## 1.5.0
|
## 1.5.0
|
||||||
- Parse custom queries and write generated mapping code.
|
- Parse custom queries and write generated mapping code.
|
||||||
- Refactorings and minor improvements in the generator
|
- Refactorings and minor improvements in the generator
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: moor_generator
|
name: moor_generator
|
||||||
description: Dev-dependency to generate table and dataclasses together with the moor package.
|
description: Dev-dependency to generate table and dataclasses together with the moor package.
|
||||||
version: 1.5.0
|
version: 1.6.0
|
||||||
repository: https://github.com/simolus3/moor
|
repository: https://github.com/simolus3/moor
|
||||||
homepage: https://moor.simonbinder.eu/
|
homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
@ -19,9 +19,9 @@ dependencies:
|
||||||
source_span: ^1.5.5
|
source_span: ^1.5.5
|
||||||
build: ^1.1.0
|
build: ^1.1.0
|
||||||
build_config: '>=0.3.1 <1.0.0'
|
build_config: '>=0.3.1 <1.0.0'
|
||||||
moor: ^1.4.0
|
moor: ^1.6.0
|
||||||
meta: '>= 1.0.0 <2.0.0'
|
meta: '>= 1.0.0 <2.0.0'
|
||||||
sqlparser: ^0.1.0
|
sqlparser: ^0.1.2
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.6.0
|
test: ^1.6.0
|
||||||
test_api: ^0.2.0
|
test_api: ^0.2.0
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
## unreleased
|
## 0.1.2
|
||||||
- parse `COLLATE` expressions
|
- parse `COLLATE` expressions
|
||||||
|
- fix wrong order in parsed `LIMIT` clauses
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
Attempt to recognize when a bound variable should be an array (eg. in `WHERE x IN ?`).
|
Attempt to recognize when a bound variable should be an array (eg. in `WHERE x IN ?`).
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: sqlparser
|
name: sqlparser
|
||||||
description: Parses sqlite statements and performs static analysis on them
|
description: Parses sqlite statements and performs static analysis on them
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
homepage: https://github.com/simolus3/moor/tree/develop/sqlparser
|
homepage: https://github.com/simolus3/moor/tree/develop/sqlparser
|
||||||
#homepage: https://moor.simonbinder.eu/
|
#homepage: https://moor.simonbinder.eu/
|
||||||
issue_tracker: https://github.com/simolus3/moor/issues
|
issue_tracker: https://github.com/simolus3/moor/issues
|
||||||
|
|
Loading…
Reference in New Issue