Add multiple DB connections functionality

This commit is contained in:
arberkatellari
2025-10-16 15:54:55 +02:00
committed by Dan Christian Bogos
parent 119481b3d1
commit 5f2b1f67df
109 changed files with 3361 additions and 4613 deletions

View File

@@ -110,6 +110,9 @@ type DataDB interface {
GetConfigSectionsDrv(*context.Context, string, []string) (map[string][]byte, error)
SetConfigSectionsDrv(*context.Context, string, map[string][]byte) error
RemoveConfigSectionsDrv(*context.Context, string, []string) error
SetCDR(*context.Context, *utils.CGREvent, bool) error
GetCDRs(*context.Context, []*Filter, map[string]any) ([]*utils.CDR, error)
RemoveCDRs(*context.Context, []*Filter) error
DumpDataDB() error
RewriteDataDB() error
BackupDataDB(string, bool) error
@@ -121,16 +124,6 @@ type DataDBDriver interface {
config.ConfigDB
}
type StorDB interface {
Storage
SetCDR(*context.Context, *utils.CGREvent, bool) error
GetCDRs(*context.Context, []*Filter, map[string]any) ([]*utils.CDR, error)
RemoveCDRs(*context.Context, []*Filter) error
DumpStorDB() error
RewriteStorDB() error
BackupStorDB(string, bool) error
}
type LoadStorage interface {
Storage
LoadReader