use deadpool_postgres::Pool;
pub struct DBClients {
first_db_pool: Pool,
second_db_pool: Pool,
}
impl DBClients {
pub fn new(first_db_pool: Pool, second_db_pool: Pool) -> Self {
Self {
first_db_pool,
second_db_pool,
}
}
pub fn first_db_pool(&self) -> Pool {
self.first_db_pool.clone()
}
pub fn second_db_pool(&self) -> Pool {
self.second_db_pool.clone()
}
}