Merge branch 'master' into develop

This commit is contained in:
Simon Binder 2021-05-28 22:10:15 +02:00
commit c24cdb74ed
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
6 changed files with 33 additions and 13 deletions

View File

@ -54,16 +54,18 @@ jobs:
# setup
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- name: Download sqlite3
uses: actions/download-artifact@v2
with:
name: sqlite3
path: /tmp/sqlite/out/
- name: Use downloaded sqlite3
- name: Install sqlite3 for tests
run: |
chmod a+x /tmp/sqlite/out/sqlite3
echo "/tmp/sqlite/out" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/tmp/sqlite/out" >> $GITHUB_ENV
mkdir sqlite
cd sqlite
curl https://sqlite.org/2021/sqlite-autoconf-3350500.tar.gz --output sqlite.tar.gz
tar zxvf sqlite.tar.gz
cd sqlite-autoconf-3350500
./configure
make
sudo make install
echo "/usr/local/lib" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=`pwd`/.libs" >> $GITHUB_ENV
- name: Check sqlite3 version
run: sqlite3 --version
- run: dart pub upgrade
@ -99,7 +101,6 @@ jobs:
sqlparser:
runs-on: ubuntu-20.04
needs: [compile_sqlite3]
defaults:
run:
working-directory: sqlparser

View File

@ -65,7 +65,7 @@ an exception will be thrown. When using sql, moor also warns about that at compi
If you do want to make a column nullable, just use `nullable()`:
```dart
class Items {
IntColumn get category => integer().nullable();
IntColumn get category => integer().nullable()();
// ...
}
```

View File

@ -2,6 +2,17 @@
- Add `Value.ofNullable` constructor to easily wrap nullable values
## 4.3.2
- Fix `insertReturning` not updating streams
- Fix streams emitting stale data if a new subscriber attaches immediately
after an update.
## 4.3.1
- Fix encoding table updates without a kind over isolates
- Fix deserializing some nullable types in the default value serializer
## 4.3.0
- Support custom, existing classes for rows! See the `@UseRowClass` annotation

View File

@ -1,6 +1,6 @@
name: moor
description: Moor is a safe and reactive persistence library for Dart applications
version: 4.3.0
version: 4.3.2
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues

View File

@ -1,3 +1,11 @@
## 4.3.2
- Support the latest analyzer version
## 4.3.1
- Fix code generation for custom data classes
## 4.3.0
- Generate non-nullable nested result classes when possible

View File

@ -1,6 +1,6 @@
name: moor_generator
description: Dev-dependency to generate table and dataclasses together with the moor package.
version: 4.3.0
version: 4.3.2
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues