public interface PgPool extends Pool
pool
of PostgreSQL connections
.Modifier and Type | Method and Description |
---|---|
static PgPool |
pool()
Like
pool(PoolOptions) with a default poolOptions . |
static PgPool |
pool(PgConnectOptions connectOptions,
PoolOptions poolOptions)
Create a connection pool to the database configured with the given
connectOptions and poolOptions . |
static PgPool |
pool(PoolOptions poolOptions)
Like
pool(PgConnectOptions, PoolOptions) with connectOptions build from the environment variables. |
static PgPool |
pool(String connectionUri)
Like
pool(String, PoolOptions) with a default poolOptions . |
static PgPool |
pool(String connectionUri,
PoolOptions poolOptions)
|
static PgPool |
pool(Vertx vertx,
PgConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool(PgConnectOptions, PoolOptions) with a specific Vertx instance. |
static PgPool |
pool(Vertx vertx,
PoolOptions poolOptions)
Like
pool(Vertx, PgConnectOptions, PoolOptions) with connectOptions build from the environment variables. |
static PgPool |
pool(Vertx vertx,
String connectionUri)
Like
pool(Vertx, String,PoolOptions) with a default poolOptions . |
static PgPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions poolOptions)
|
close, getConnection, getConnection, pool, pool, pool, preparedQuery, query, withConnection, withConnection, withTransaction, withTransaction
static PgPool pool()
pool(PoolOptions)
with a default poolOptions
.static PgPool pool(PoolOptions poolOptions)
pool(PgConnectOptions, PoolOptions)
with connectOptions
build from the environment variables.static PgPool pool(String connectionUri)
pool(String, PoolOptions)
with a default poolOptions
.static PgPool pool(String connectionUri, PoolOptions poolOptions)
static PgPool pool(Vertx vertx, String connectionUri)
pool(Vertx, String,PoolOptions)
with a default poolOptions
.static PgPool pool(Vertx vertx, PoolOptions poolOptions)
pool(Vertx, PgConnectOptions, PoolOptions)
with connectOptions
build from the environment variables.static PgPool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
static PgPool pool(PgConnectOptions connectOptions, PoolOptions poolOptions)
connectOptions
and poolOptions
.poolOptions
- the options for creating the poolstatic PgPool pool(Vertx vertx, PgConnectOptions connectOptions, PoolOptions poolOptions)
pool(PgConnectOptions, PoolOptions)
with a specific Vertx
instance.Copyright © 2021 Eclipse. All rights reserved.