File tree 2 files changed +4
-6
lines changed
packages/drift_sqlite_async/lib/src
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import 'package:sqlite_async/sqlite_async.dart';
15
15
class SqliteAsyncDriftConnection extends DatabaseConnection {
16
16
late StreamSubscription _updateSubscription;
17
17
18
- SqliteAsyncDriftConnection (SqliteConnection db)
19
- : super (SqliteAsyncQueryExecutor (db)) {
18
+ SqliteAsyncDriftConnection (SqliteConnection db, { bool logStatements = false } )
19
+ : super (SqliteAsyncQueryExecutor (db, logStatements : logStatements )) {
20
20
_updateSubscription = (db as SqliteQueries ).updates! .listen ((event) {
21
21
var setUpdates = < TableUpdate > {};
22
22
for (var tableName in event.tables) {
Original file line number Diff line number Diff line change @@ -127,10 +127,8 @@ class _SqliteAsyncVersionDelegate extends DynamicVersionDelegate {
127
127
/// Extnral update notifications from the [SqliteConnection] are _not_ forwarded
128
128
/// automatically - use [SqliteAsyncDriftConnection] for that.
129
129
class SqliteAsyncQueryExecutor extends DelegatedDatabase {
130
- SqliteAsyncQueryExecutor (SqliteConnection db)
131
- : super (
132
- _SqliteAsyncDelegate (db),
133
- );
130
+ SqliteAsyncQueryExecutor (SqliteConnection db, {bool logStatements = false })
131
+ : super (_SqliteAsyncDelegate (db), logStatements: logStatements);
134
132
135
133
/// The underlying SqliteConnection used by drift to send queries.
136
134
SqliteConnection get db {
You can’t perform that action at this time.
0 commit comments