Skip to content

Commit 28cf266

Browse files
committed
Clarify docs on multiple instances.
1 parent b8121c2 commit 28cf266

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/sqlite_database.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import 'update_notification.dart';
1515

1616
/// A SQLite database instance.
1717
///
18-
/// Use one instance per database file. If multiple instances are used, update
19-
/// notifications may not trigger, and calls may fail with "SQLITE_BUSY" errors.
18+
/// Use one instance per database file where feasible.
19+
///
20+
/// If multiple instances are used, update notifications will not be propagated between them.
21+
/// For update notifications across isolates, use [isolateConnectionFactory].
2022
class SqliteDatabase with SqliteQueries implements SqliteConnection {
2123
/// The maximum number of concurrent read transactions if not explicitly specified.
2224
static const int defaultMaxReaders = 5;

0 commit comments

Comments
 (0)