@@ -11,22 +11,22 @@ class SqliteOptions {
1111 /// attempt to truncate the file afterwards.
1212 final int ? journalSizeLimit;
1313
14- /// Timeout waiting for locks to be released by other write connections.
14+ /// Timeout waiting for locks to be released by other connections.
1515 /// 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 ;
1818
1919 const SqliteOptions .defaults ()
2020 : journalMode = SqliteJournalMode .wal,
2121 journalSizeLimit = 6 * 1024 * 1024 , // 1.5x the default checkpoint size
2222 synchronous = SqliteSynchronous .normal,
23- busyTimeout = const Duration (seconds: 30 );
23+ lockTimeout = const Duration (seconds: 30 );
2424
2525 const SqliteOptions (
2626 {this .journalMode = SqliteJournalMode .wal,
2727 this .journalSizeLimit = 6 * 1024 * 1024 ,
2828 this .synchronous = SqliteSynchronous .normal,
29- this .busyTimeout = const Duration (seconds: 30 )});
29+ this .lockTimeout = const Duration (seconds: 30 )});
3030}
3131
3232/// SQLite journal mode. Set on the primary connection.
0 commit comments