File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
packages/drift_sqlite_async/lib/src Expand file tree Collapse file tree 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';
1515class SqliteAsyncDriftConnection extends DatabaseConnection {
1616 late StreamSubscription _updateSubscription;
1717
18- SqliteAsyncDriftConnection (SqliteConnection db)
19- : super (SqliteAsyncQueryExecutor (db)) {
18+ SqliteAsyncDriftConnection (SqliteConnection db, { bool logStatements = false } )
19+ : super (SqliteAsyncQueryExecutor (db, logStatements : logStatements )) {
2020 _updateSubscription = (db as SqliteQueries ).updates! .listen ((event) {
2121 var setUpdates = < TableUpdate > {};
2222 for (var tableName in event.tables) {
Original file line number Diff line number Diff line change @@ -127,10 +127,8 @@ class _SqliteAsyncVersionDelegate extends DynamicVersionDelegate {
127127/// Extnral update notifications from the [SqliteConnection] are _not_ forwarded
128128/// automatically - use [SqliteAsyncDriftConnection] for that.
129129class 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);
134132
135133 /// The underlying SqliteConnection used by drift to send queries.
136134 SqliteConnection get db {
You can’t perform that action at this time.
0 commit comments