File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ func OpenDB(config pgx.ConnConfig, opts ...OptionOpenDB) *sql.DB {
216
216
217
217
// OpenDBFromPool creates a new *sql.DB from the given *pgxpool.Pool. Note that this method automatically sets the
218
218
// maximum number of idle connections in *sql.DB to zero, since they must be managed from the *pgxpool.Pool. This is
219
- // required to avoid acquiring all the connections from the pgxpool and starving any direct users of the pgxpool.
219
+ // required to avoid acquiring all the connections from the pgxpool and starving any direct users of the pgxpool. Note
220
+ // that closing the returned *sql.DB will not close the *pgxpool.Pool.
220
221
func OpenDBFromPool (pool * pgxpool.Pool , opts ... OptionOpenDB ) * sql.DB {
221
222
c := GetPoolConnector (pool , opts ... )
222
223
db := sql .OpenDB (c )
You can’t perform that action at this time.
0 commit comments