Skip to content

Commit 70008f8

Browse files
committed
fix: preserve SQLite busy timeout when connections reopen
1 parent 6213056 commit 70008f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/database/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func NewDB(dataSourceName string, readConns, writeConns int) (*DB, error) {
179179
}
180180

181181
connectionString := dataSourceName +
182-
separator + "_busy_timeout=5000" +
182+
separator + "_pragma=busy_timeout(5000)" +
183183
"&_journal_mode=WAL" +
184184
"&_pragma=foreign_keys(ON)" +
185185
"&_txlock=immediate" +

0 commit comments

Comments
 (0)