This commit is contained in:
@@ -40,6 +40,7 @@ impl Database {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub async fn init_from_pool(pool: Pool<Postgres>) -> Database {
|
||||
Database { conn_pool: pool }
|
||||
}
|
||||
@@ -197,7 +198,6 @@ impl Database {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use dotenvy::dotenv;
|
||||
use sqlx::PgPool;
|
||||
|
||||
#[sqlx::test]
|
||||
|
||||
Reference in New Issue
Block a user