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" => {