Owows so many new files
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use anyhow::Context;
|
||||
use diesel::r2d2::ConnectionManager;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub type DbBackend = diesel::pg::Pg;
|
||||
pub type DbConnection = diesel::PgConnection;
|
||||
pub type DbPool = diesel::r2d2::Pool<
|
||||
@@ -25,6 +26,8 @@ pub fn connect(url: &str) -> anyhow::Result<DbPool> {
|
||||
|
||||
pool.get()
|
||||
.context("Failed to connect to PostgreSQL")?;
|
||||
|
||||
tracing::info!("Connected to database");
|
||||
// crate::migrations::run_migrations(&pool)?;
|
||||
Ok(pool)
|
||||
}
|
||||
Reference in New Issue
Block a user