mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
Add multiple DB connections functionality
This commit is contained in:
committed by
Dan Christian Bogos
parent
119481b3d1
commit
5f2b1f67df
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user