We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187a520 commit 2d83ce1Copy full SHA for 2d83ce1
src/db/memory.rs
@@ -6,7 +6,11 @@ pub type Pool =
6
pub trait Managed {
7
#[must_use]
8
fn open(db_url: &str, migrations: diesel_migrations::EmbeddedMigrations) -> Pool {
9
- tracing::info!("opening in-memory database");
+ if db_url == ":memory:" {
10
+ tracing::info!("opening in-memory database");
11
+ } else {
12
+ tracing::info!("opening database {db_url}");
13
+ }
14
let db = memdb_pool(db_url);
15
create_tables(&db, migrations);
16
db
0 commit comments