From cf2c3986dfd5c980ad36ddbf36f76d0fb5d02d34 Mon Sep 17 00:00:00 2001 From: Remco Pander Date: Wed, 18 Jun 2025 17:32:35 +0200 Subject: [PATCH] feat: see if manually setting max_connections works --- plugins/sql/src/wrapper.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/sql/src/wrapper.rs b/plugins/sql/src/wrapper.rs index d47b2d1c..54f124be 100644 --- a/plugins/sql/src/wrapper.rs +++ b/plugins/sql/src/wrapper.rs @@ -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" => {