diff --git a/src/lib.rs b/src/lib.rs index 9072835..acb6b8c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,12 +57,12 @@ impl BlogDb { } } let memory = SqlitePoolOptions::new() + .min_connections(1) .connect_with( #[cfg(not(debug_assertions))] SqliteConnectOptions::from_str(MEMORY_URL)?.journal_mode(SqliteJournalMode::Memory), #[cfg(debug_assertions)] - SqliteConnectOptions::from_str(MEMORY_URL.as_ref())? - .journal_mode(SqliteJournalMode::Wal), + SqliteConnectOptions::from_str(MEMORY_URL)?.journal_mode(SqliteJournalMode::Wal), ) .await?; Self::run_main_migrations(&db).await?;