Package | Description |
---|---|
io.vertx.sqlclient |
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 |
---|---|
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. |
Copyright © 2021 Eclipse. All rights reserved.