mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Merge pull request #511 from platelk/master
Close issue #481 : Give access to the registered driver instance
This commit is contained in:
commit
fb61dbf363
@ -126,6 +126,12 @@ var (
|
||||
fakeTxConns map[*pgx.Conn]*sql.Tx
|
||||
)
|
||||
|
||||
// GetDefaultDriver return the driver initialize in the init function
|
||||
// and used when register pgx driver
|
||||
func GetDefaultDriver() *Driver {
|
||||
return pgxDriver
|
||||
}
|
||||
|
||||
type Driver struct {
|
||||
configMutex sync.Mutex
|
||||
configCount int64
|
||||
|
Loading…
x
Reference in New Issue
Block a user