Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Access the CDR database with GetCDRDB() to ensure proper initialization and reconnection. CDRDB *sql.DB )
var ( // Access the database with GetDB() to ensure proper initialization and reconnection. DB *sql.DB )
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. It returns nil when the database is not reachable: satellite-pgsql runs only once call or voicemail transcription has been enabled.
Types ¶
This section is empty.