fix disappearing db

This commit is contained in:
Adam 2024-05-19 01:29:43 -04:00
parent ec2598a2cc
commit 83cd0d8121

View file

@ -96,7 +96,10 @@ pub async fn start_pool() -> Result<SqlitePool, ServerFnError> {
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?;