We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf72a00 commit d93f31bCopy full SHA for d93f31b
stdlib/sql.go
@@ -204,6 +204,10 @@ func GetConnector(config pgx.ConnConfig, opts ...OptionOpenDB) driver.Connector
204
return c
205
}
206
207
+// GetPoolConnector creates a new driver.Connector from the given *pgxpool.Pool. By using this be sure to set the
208
+// maximum idle connections of the *sql.DB created with this connector to zero since they must be managed from the
209
+// *pgxpool.Pool. This is required to avoid acquiring all the connections from the pgxpool and starving any direct
210
+// users of the pgxpool.
211
func GetPoolConnector(pool *pgxpool.Pool, opts ...OptionOpenDB) driver.Connector {
212
c := connector{
213
pool: pool,
0 commit comments