Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dc25d5 commit d75362fCopy full SHA for d75362f
1 file changed
stdlib/sql.go
@@ -114,6 +114,12 @@ var (
114
fakeTxConns map[*pgx.Conn]*sql.Tx
115
)
116
117
+// GetDefaultDriver returns the driver initialized in the init function
118
+// and used when the pgx driver is registered.
119
+func GetDefaultDriver() driver.Driver {
120
+ return pgxDriver
121
+}
122
+
123
type Driver struct {
124
configMutex sync.Mutex
125
configs map[string]*pgx.ConnConfig
0 commit comments