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 df0862f commit dbc2f90Copy full SHA for dbc2f90
db_connector/src/lib.rs
@@ -20,7 +20,7 @@ pub fn run_migrations(
20
* Create db connection pool
21
*/
22
pub fn get_connection_pool() -> Pool {
23
- dotenv::dotenv().ok();
+ dotenvy::dotenv().ok();
24
let url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
25
let manager = diesel::r2d2::ConnectionManager::<PgConnection>::new(url);
26
Pool::builder()
@@ -30,7 +30,7 @@ pub fn get_connection_pool() -> Pool {
30
}
31
32
pub fn test_connection_pool() -> Pool {
33
34
35
36
0 commit comments