refactor(db_interfaces): move db interfaces in router to domain_models (#9830)

Co-authored-by: Ankit Kumar Gupta <ankit.gupta.001@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Gaurav Rawat <104276743+GauravRawat369@users.noreply.github.com>
This commit is contained in:
Jagan
2025-10-15 12:18:53 +05:30
committed by GitHub
parent 2f90ffa211
commit 59628332de
55 changed files with 5386 additions and 4504 deletions

View File

@ -50,7 +50,7 @@ use crate::{
},
errors::{CustomResult, ParsingError, PercentageError, ValidationError},
fp_utils::when,
impl_enum_str,
id_type, impl_enum_str,
};
/// Represents Percentage Value between 0 and 100 both inclusive
@ -1441,3 +1441,12 @@ impl_enum_str!(
},
}
);
#[allow(missing_docs)]
pub trait TenantConfig: Send + Sync {
fn get_tenant_id(&self) -> &id_type::TenantId;
fn get_schema(&self) -> &str;
fn get_accounts_schema(&self) -> &str;
fn get_redis_key_prefix(&self) -> &str;
fn get_clickhouse_database(&self) -> &str;
}