Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGorm ¶
func BuildGorm(config config.Config, logger logger.Interface, pool database.Pool, connection string, telemetryResolver contractstelemetry.Resolver) (*gorm.DB, *instrumentationdatabase.Instrument, error)
func CloseConnections ¶ added in v1.18.0
func CloseConnections()
CloseConnections drops the cached connections, unregisters their telemetry and closes the pools. Call it only when the connections are idle.
func ResetConnections ¶ added in v1.16.6
func ResetConnections()
ResetConnections drops the cached connections and unregisters their telemetry, leaving the pools open for callers that may still hold the *gorm.DB.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.