Open wburningham opened 5 months ago
Out of interest at Sourcegraph we work around this problem by wrapping the driver again and skipping over sqlhooks. https://github.com/sourcegraph/sourcegraph/blob/cab2c723c5600345a1714ee236ef726af40870b1/internal/database/dbconn/open.go#L89-L117
The
sql/driver.Pinger
interface is an optional interface to implement. For drivers that do implement the interface, theConn
type needs to try to call through.