mirror of https://github.com/jackc/pgx.git
Update docs and changelog for renamed pgxpool.NewWithConfig
fixes https://github.com/jackc/pgx/issues/1306v5-dev
parent
90b69c0ee0
commit
a05fb80b8a
|
@ -24,7 +24,7 @@ pgconn now supports pipeline mode.
|
||||||
|
|
||||||
## pgxpool
|
## pgxpool
|
||||||
|
|
||||||
`Connect` and `ConnectConfig` have been renamed to `New` and `NewConfig` respectively. The `LazyConnect` option has been removed. Pools always lazily connect.
|
`Connect` and `ConnectConfig` have been renamed to `New` and `NewWithConfig` respectively. The `LazyConnect` option has been removed. Pools always lazily connect.
|
||||||
|
|
||||||
## pgtype
|
## pgtype
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ connection with `ConnectConfig`.
|
||||||
// do something with every new connection
|
// do something with every new connection
|
||||||
}
|
}
|
||||||
|
|
||||||
pool, err := pgxpool.NewConfig(context.Background(), config)
|
pool, err := pgxpool.NewWithConfig(context.Background(), config)
|
||||||
|
|
||||||
A pool returns without waiting for any connections to be established. Acquire a connection immediately after creating
|
A pool returns without waiting for any connections to be established. Acquire a connection immediately after creating
|
||||||
the pool to check if a connection can successfully be established.
|
the pool to check if a connection can successfully be established.
|
||||||
|
|
Loading…
Reference in New Issue