Merge branch 'master' into develop

This commit is contained in:
Simon Binder 2020-03-07 11:09:13 +01:00
commit 994374e191
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 16 additions and 0 deletions

View File

@ -197,4 +197,20 @@ class EncryptedExecutor extends DelegatedDatabase {
creator: creator,
password: password),
logStatements: logStatements);
/// The underlying sqflite [s.Database] object used by moor to send 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 {
final sqfliteDelegate = delegate as _SqfliteDelegate;
return sqfliteDelegate.db;
}
}