@@ -11,22 +11,22 @@ class SqliteOptions {
11
11
/// attempt to truncate the file afterwards.
12
12
final int ? journalSizeLimit;
13
13
14
- /// Timeout waiting for locks to be released by other write connections.
14
+ /// Timeout waiting for locks to be released by other connections.
15
15
/// Defaults to 30 seconds.
16
- /// Set to 0 to fail immediately when the database is locked.
17
- final Duration ? busyTimeout ;
16
+ /// Set to null or [Duration.zero] to fail immediately when the database is locked.
17
+ final Duration ? lockTimeout ;
18
18
19
19
const SqliteOptions .defaults ()
20
20
: journalMode = SqliteJournalMode .wal,
21
21
journalSizeLimit = 6 * 1024 * 1024 , // 1.5x the default checkpoint size
22
22
synchronous = SqliteSynchronous .normal,
23
- busyTimeout = const Duration (seconds: 30 );
23
+ lockTimeout = const Duration (seconds: 30 );
24
24
25
25
const SqliteOptions (
26
26
{this .journalMode = SqliteJournalMode .wal,
27
27
this .journalSizeLimit = 6 * 1024 * 1024 ,
28
28
this .synchronous = SqliteSynchronous .normal,
29
- this .busyTimeout = const Duration (seconds: 30 )});
29
+ this .lockTimeout = const Duration (seconds: 30 )});
30
30
}
31
31
32
32
/// SQLite journal mode. Set on the primary connection.
0 commit comments