improvement: longer timeout, more descriptive errors
This commit is contained in:
parent
76660bf189
commit
55a2ff025f
2 changed files with 6 additions and 4 deletions
|
@ -55,6 +55,7 @@ impl Engine {
|
|||
conn.pragma_update(Some(Main), "journal_mode", &"WAL")?;
|
||||
conn.pragma_update(Some(Main), "synchronous", &"NORMAL")?;
|
||||
conn.pragma_update(Some(Main), "cache_size", &(-i64::from(cache_size_kb)))?;
|
||||
conn.pragma_update(Some(Main), "wal_autocheckpoint", &0)?;
|
||||
|
||||
Ok(conn)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue