feat: see if manually setting max_connections works

pull/2784/head
Remco Pander 4 weeks ago
parent eea363625a
commit cf2c3986df

@ -88,7 +88,12 @@ impl DbPool {
if !Sqlite::database_exists(conn_url).await.unwrap_or(false) {
Sqlite::create_database(conn_url).await?;
}
Ok(Self::Sqlite(Pool::connect(conn_url).await?))
let pool = sqlx::sqlite::SqlitePoolOptions::new()
.max_connections(1)
.connect(conn_url);
Ok(Self::Sqlite(pool.await?))
}
#[cfg(feature = "mysql")]
"mysql" => {

Loading…
Cancel
Save