Documentation
¶
Overview ¶
Package driver provides SQL driver registration and adapter helpers for go-service.
This package contains small pieces that integrate specific `database/sql`-compatible drivers with the SQL wiring in this repository (for example by registering a driver or exposing driver-specific helpers).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens master/slave `database/sql` connection pools for the given driver name.
It reads master and slave DSNs from cfg using the provided filesystem (DSNs are configured as "source strings"), connects using `mssqlx.ConnectMasterSlaves`, registers OpenTelemetry DB stats metrics for each pool, and configures pool limits/lifetime.
The returned pools are closed on Fx lifecycle stop.