mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 16:21:00 +00:00
SQLITE_BUSY prevention
This commit is contained in:
parent
199e813754
commit
0b7b3d3dc4
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ extension DatabasePool {
|
||||||
do {
|
do {
|
||||||
var configuration = Configuration()
|
var configuration = Configuration()
|
||||||
|
|
||||||
|
configuration.busyMode = .timeout(5)
|
||||||
|
configuration.defaultTransactionKind = .immediate
|
||||||
configuration.prepareDatabase { db in
|
configuration.prepareDatabase { db in
|
||||||
try db.usePassphrase(passphrase())
|
try db.usePassphrase(passphrase())
|
||||||
try db.execute(sql: "PRAGMA cipher_plaintext_header_size = 32")
|
try db.execute(sql: "PRAGMA cipher_plaintext_header_size = 32")
|
||||||
|
|
Loading…
Reference in a new issue