(config pgx.ConnConfig, opts ...OptionOpenDB)
| 226 | } |
| 227 | |
| 228 | func OpenDB(config pgx.ConnConfig, opts ...OptionOpenDB) *sql.DB { |
| 229 | c := GetConnector(config, opts...) |
| 230 | return sql.OpenDB(c) |
| 231 | } |
| 232 | |
| 233 | // OpenDBFromPool creates a new *sql.DB from the given *pgxpool.Pool. Note that this method automatically sets the |
| 234 | // maximum number of idle connections in *sql.DB to zero, since they must be managed from the *pgxpool.Pool. This is |