SQLITE_BUSY prevention
This commit is contained in:
parent
199e813754
commit
0b7b3d3dc4
|
@ -18,6 +18,8 @@ extension DatabasePool {
|
|||
do {
|
||||
var configuration = Configuration()
|
||||
|
||||
configuration.busyMode = .timeout(5)
|
||||
configuration.defaultTransactionKind = .immediate
|
||||
configuration.prepareDatabase { db in
|
||||
try db.usePassphrase(passphrase())
|
||||
try db.execute(sql: "PRAGMA cipher_plaintext_header_size = 32")
|
||||
|
|
Loading…
Reference in New Issue