Package | Description |
---|---|
io.vertx.sqlclient | |
io.vertx.sqlclient.spi |
Modifier and Type | Method and Description |
---|---|
Pool |
Pool.connectHandler(io.vertx.core.Handler<SqlConnection> handler)
Set an handler called when the pool has established a connection to the database.
|
Pool |
Pool.connectionProvider(Function<io.vertx.core.Context,io.vertx.core.Future<SqlConnection>> provider)
Replace the default pool connection provider, the new
provider returns a future connection for a
given Context . |
static Pool |
Pool.pool(SqlConnectOptions connectOptions)
Like
pool(SqlConnectOptions, PoolOptions) with default options. |
static Pool |
Pool.pool(SqlConnectOptions database,
PoolOptions options)
Like
pool(Vertx, SqlConnectOptions, PoolOptions) with a Vert.x instance created automatically. |
static Pool |
Pool.pool(io.vertx.core.Vertx vertx,
SqlConnectOptions database,
PoolOptions options)
Create a connection pool to the
database with the given options . |
Modifier and Type | Method and Description |
---|---|
Pool |
Driver.createPool(io.vertx.core.Vertx vertx,
List<? extends SqlConnectOptions> databases,
PoolOptions options)
Create a connection pool to the database configured with the given
connectOptions and poolOptions . |
Copyright © 2021 Eclipse. All rights reserved.