2
0

Merge pull request #646 from johanbrandhorst/expose-default-driver

Add back GetDefaultDriver
This commit is contained in:
Jack Christensen
2019-12-07 09:36:26 -06:00
committed by GitHub
+6
View File
@@ -114,6 +114,12 @@ var (
fakeTxConns map[*pgx.Conn]*sql.Tx
)
// GetDefaultDriver returns the driver initialized in the init function
// and used when the pgx driver is registered.
func GetDefaultDriver() driver.Driver {
return pgxDriver
}
type Driver struct {
configMutex sync.Mutex
configs map[string]*pgx.ConnConfig