Merge pull request #646 from johanbrandhorst/expose-default-driver
Add back GetDefaultDriver
This commit is contained in:
@@ -114,6 +114,12 @@ var (
|
|||||||
fakeTxConns map[*pgx.Conn]*sql.Tx
|
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 {
|
type Driver struct {
|
||||||
configMutex sync.Mutex
|
configMutex sync.Mutex
|
||||||
configs map[string]*pgx.ConnConfig
|
configs map[string]*pgx.ConnConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user