-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi, thanks for the library. I am running into an issue during tests, where I am creating a temporary database with a pool:
let pool = PoolBuilder::new()
.path(path)
.journal_mode(JournalMode::Wal)
.open()
.await?;Occasionally I get an error:
Rusqlite(SqliteFailure(Error { code: DatabaseBusy, extended_code: 5 }, Some("database is locked")))
The workaround is to create the file before creating the pool:
let client = ClientBuilder::new()
.path(&path)
.journal_mode(JournalMode::Wal)
.open()
.await?;
client.close().await?;
let pool = ...Not sure if this is worth fixing or just mentioning in docs.
Metadata
Metadata
Assignees
Labels
No labels