Package | Description |
---|---|
io.vertx.sqlclient | |
io.vertx.sqlclient.spi |
Modifier and Type | Method and Description |
---|---|
SqlConnection |
SqlConnection.closeHandler(io.vertx.core.Handler<Void> handler)
Set an handler called when the connection is closed.
|
SqlConnection |
SqlConnection.exceptionHandler(io.vertx.core.Handler<Throwable> handler)
Set an handler called with connection errors.
|
SqlConnection |
SqlConnection.prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Future<SqlConnection> |
Pool.getConnection()
Like
Pool.getConnection(Handler) but returns a Future of the asynchronous result |
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 . |
void |
Pool.getConnection(io.vertx.core.Handler<io.vertx.core.AsyncResult<SqlConnection>> handler)
Get a connection from the pool.
|
default <T> io.vertx.core.Future<T> |
Pool.withConnection(Function<SqlConnection,io.vertx.core.Future<T>> function)
Like
Pool.withTransaction(Function, Handler) but returns a Future of the asynchronous result |
default <T> void |
Pool.withConnection(Function<SqlConnection,io.vertx.core.Future<T>> function,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Get a connection from the pool and execute the given
function . |
default <T> io.vertx.core.Future<T> |
Pool.withTransaction(Function<SqlConnection,io.vertx.core.Future<T>> function)
Like
Pool.withTransaction(Function, Handler) but returns a Future of the asynchronous result |
default <T> void |
Pool.withTransaction(Function<SqlConnection,io.vertx.core.Future<T>> function,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Execute the given
function within a transaction. |
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Future<SqlConnection> |
ConnectionFactory.connect(io.vertx.core.Context context)
Create a connection using the given
context . |
Copyright © 2021 Eclipse. All rights reserved.