| Package | Description |
|---|---|
| io.vertx.sqlclient | |
| io.vertx.sqlclient.spi |
| Modifier and Type | Method and Description |
|---|---|
SqlConnection |
SqlConnection.closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
SqlConnection |
SqlConnection.exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
SqlConnection |
SqlConnection.prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
SqlConnection |
SqlConnection.prepare(String sql,
PrepareOptions options,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
| Modifier and Type | Method and Description |
|---|---|
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(Handler<SqlConnection> handler)
Deprecated.
instead use
ClientBuilder.withConnectHandler(Handler) |
Pool |
Pool.connectionProvider(Function<Context,Future<SqlConnection>> provider)
Deprecated.
instead use
ClientBuilder.connectingTo(Supplier) |
void |
Pool.getConnection(Handler<AsyncResult<SqlConnection>> handler)
Get a connection from the pool.
|
ClientBuilder<C> |
ClientBuilder.withConnectHandler(Handler<SqlConnection> handler)
Set a handler called when the pool has established a connection to the database.
|
default <T> Future<T> |
Pool.withConnection(Function<SqlConnection,Future<T>> function)
Like
Pool.withConnection(Function, Handler) but returns a Future of the asynchronous result |
default <T> void |
Pool.withConnection(Function<SqlConnection,Future<T>> function,
Handler<AsyncResult<T>> handler)
Get a connection from the pool and execute the given
function. |
default <T> Future<T> |
Pool.withTransaction(Function<SqlConnection,Future<T>> function)
Like
Pool.withTransaction(Function, Handler) but returns a Future of the asynchronous result. |
default <T> void |
Pool.withTransaction(Function<SqlConnection,Future<T>> function,
Handler<AsyncResult<T>> handler)
Execute the given
function within a transaction. |
default <T> Future<T> |
Pool.withTransaction(TransactionPropagation txPropagation,
Function<SqlConnection,Future<T>> function)
Like
Pool.withTransaction(Function) but allows for setting the mode, defining how the acquired
connection is managed during the execution of the function. |
default <T> void |
Pool.withTransaction(TransactionPropagation txPropagation,
Function<SqlConnection,Future<T>> function,
Handler<AsyncResult<T>> handler)
Like
Pool.withTransaction(Function, Handler) but allows for setting the mode, defining how the acquired
connection is managed during the execution of the function. |
| Modifier and Type | Method and Description |
|---|---|
Future<SqlConnection> |
ConnectionFactory.connect(Context context)
Create a connection using the given
context. |
default Future<SqlConnection> |
ConnectionFactory.connect(Context context,
Future<? extends SqlConnectOptions> fut) |
Future<SqlConnection> |
ConnectionFactory.connect(Context context,
SqlConnectOptions options)
Create a connection using the given
context. |
Copyright © 2023 Eclipse. All rights reserved.