We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90842d3 commit a1641a9Copy full SHA for a1641a9
1 file changed
src/db.rs
@@ -5,7 +5,8 @@ use std::str::FromStr;
5
pub async fn create_pool(database_url: &str) -> anyhow::Result<SqlitePool> {
6
let options = SqliteConnectOptions::from_str(database_url)?
7
.create_if_missing(true)
8
- .journal_mode(sqlx::sqlite::SqliteJournalMode::Wal);
+ .journal_mode(sqlx::sqlite::SqliteJournalMode::Wal)
9
+ .busy_timeout(std::time::Duration::from_secs(5));
10
11
let pool = SqlitePoolOptions::new()
12
.max_connections(5)
0 commit comments