mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user