diff --git a/src/storage.rs b/src/storage.rs index 123afb8..4a46653 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -8,7 +8,7 @@ pub async fn create_pool(db_url: String) -> AnyPool { sqlx::any::install_default_drivers(); // Create SQLite database file if it does not exist - if db_url.starts_with("sqlite:") { + if db_url.starts_with("sqlite:") && db_url != ("sqlite::memory:") { let path = db_url.replace("sqlite:", ""); if !Path::new(&path).exists() { warn!("Sqlite database does not exist, creating file {}", path);