Skip to content

Commit d764359

Browse files
committed
update doc
1 parent bfb8bd0 commit d764359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/drift_sqlite_async/lib/src/connection.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import 'package:sqlite_async/sqlite_async.dart';
1515
class SqliteAsyncDriftConnection extends DatabaseConnection {
1616
late StreamSubscription _updateSubscription;
1717

18+
/// [transformTableUpdates] is useful to map local table names from PowerSync that are backed by a view name
19+
/// which is the entity that the user interacts with.
1820
SqliteAsyncDriftConnection(
1921
SqliteConnection db, {
2022
bool logStatements = false,
2123
Set<TableUpdate> Function(UpdateNotification)? transformTableUpdates,
2224
}) : super(SqliteAsyncQueryExecutor(db, logStatements: logStatements)) {
2325
_updateSubscription = (db as SqliteQueries).updates!.listen((event) {
2426
final Set<TableUpdate> setUpdates;
25-
// This is useful to map local table names from PowerSync that are backed by a view name
26-
// which is the entity that the user interacts with.
2727
if (transformTableUpdates != null) {
2828
setUpdates = transformTableUpdates(event);
2929
} else {

0 commit comments

Comments
 (0)