Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Access the CDR database with GetCDRDB() to ensure proper initialization and reconnection. CDRDB *sql.DB )
View Source
var ( // Access the database with GetDB() to ensure proper initialization and reconnection. DB *sql.DB )
View Source
var (
SatelliteDB *sql.DB
)
Functions ¶
func CloseCDR ¶ added in v0.5.0
func CloseCDR() error
CloseCDR gracefully closes the CDR database connection pool.
func CloseSatellite ¶ added in v0.5.0
func CloseSatellite() error
CloseSatellite gracefully closes the satellite database connection pool.
func GetCDRDB ¶ added in v0.5.0
GetCDRDB returns a ready-to-use CDR DB connection, initializing it on demand.
func GetSatelliteDB ¶ added in v0.5.0
GetSatelliteDB returns a ready-to-use satellite DB connection, initializing it on demand.
func Init ¶
func Init() error
Init initializes the database connection pool with the configured MariaDB settings. It performs health checks and creates necessary schema.
func InitCDR ¶ added in v0.5.0
func InitCDR() error
InitCDR initializes the CDR database connection pool with the configured MariaDB settings.
func InitSatellite ¶ added in v0.5.0
func InitSatellite() error
InitSatellite initializes the satellite database connection pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.