Owows so many new files

This commit is contained in:
2026-09-09 22:20:29 +03:00
parent 3fcee5ea9a
commit 6441cc6709
21 changed files with 3249 additions and 58 deletions

View File

@@ -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)
}