From 83cd0d81214ffca9b5c044cada858ff8abf962fb Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sun, 19 May 2024 01:29:43 -0400 Subject: [PATCH] fix disappearing db --- server/src/db.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/db.rs b/server/src/db.rs index 2d4575f..a0faa1a 100644 --- a/server/src/db.rs +++ b/server/src/db.rs @@ -96,7 +96,10 @@ pub async fn start_pool() -> Result { db goin up" ); + // https://github.com/launchbadge/sqlx/issues/1647 let pool = SqlitePoolOptions::new() + .max_lifetime(None) + .idle_timeout(None) .connect("file::memory:?cache=shared") .await?;