driver

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 13 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL