mirror of https://github.com/AMT-Cheif/drift.git
Expand docs, add changelog entry
This commit is contained in:
parent
c924990bc8
commit
a00e6d498e
|
@ -1,3 +1,8 @@
|
||||||
|
## 2.1.0
|
||||||
|
|
||||||
|
- Expose the underlying database from sqflite in `FlutterQueryExecutor`.
|
||||||
|
This exists only to make migrations to moor easier.
|
||||||
|
|
||||||
## 2.0.0
|
## 2.0.0
|
||||||
See the changelog of [moor](https://pub.dev/packages/moor#-changelog-tab-) for details,
|
See the changelog of [moor](https://pub.dev/packages/moor#-changelog-tab-) for details,
|
||||||
or check out an overview of new features [here](https://moor.simonbinder.eu/v2])
|
or check out an overview of new features [here](https://moor.simonbinder.eu/v2])
|
||||||
|
|
|
@ -189,7 +189,17 @@ class FlutterQueryExecutor extends DelegatedDatabase {
|
||||||
singleInstance: singleInstance, creator: creator),
|
singleInstance: singleInstance, creator: creator),
|
||||||
logStatements: logStatements);
|
logStatements: logStatements);
|
||||||
|
|
||||||
/// The underlying sqflite [s.Database] object
|
/// The underlying sqflite [s.Database] object used by moor to sent queries.
|
||||||
|
///
|
||||||
|
/// Using the sqflite database can cause unexpected behavior in moor. For
|
||||||
|
/// instance, stream queries won't update for updates sent to the [s.Database]
|
||||||
|
/// directly.
|
||||||
|
/// For this reason, projects shouldn't use this getter unless they absolutely
|
||||||
|
/// need to. The database is exposed to make migrating from sqflite to moor
|
||||||
|
/// easier.
|
||||||
|
///
|
||||||
|
/// Note that this returns null until the moor database has been opened.
|
||||||
|
/// A moor database is opened lazily when the first query runs.
|
||||||
s.Database get sqfliteDb {
|
s.Database get sqfliteDb {
|
||||||
final sqfliteDelegate = delegate as _SqfliteDelegate;
|
final sqfliteDelegate = delegate as _SqfliteDelegate;
|
||||||
return sqfliteDelegate.db;
|
return sqfliteDelegate.db;
|
||||||
|
|
|
@ -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: 2.0.0
|
version: 2.1.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
|
||||||
|
|
Loading…
Reference in New Issue