Uses of Interface
io.vertx.sqlclient.SqlConnection
-
Packages that use SqlConnection Package Description io.vertx.sqlclient io.vertx.sqlclient.spi -
-
Uses of SqlConnection in io.vertx.sqlclient
Methods in io.vertx.sqlclient that return SqlConnection Modifier and Type Method Description SqlConnectionSqlConnection. closeHandler(Handler<Void> handler)Set an handler called when the connection is closed.SqlConnectionSqlConnection. exceptionHandler(Handler<Throwable> handler)Set an handler called with connection errors.Methods in io.vertx.sqlclient that return types with arguments of type SqlConnection Modifier and Type Method Description Future<SqlConnection>Pool. getConnection()Get a connection from the pool.Method parameters in io.vertx.sqlclient with type arguments of type SqlConnection Modifier and Type Method Description 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)Get a connection from the pool and execute the givenfunction.default <T> Future<T>Pool. withTransaction(TransactionPropagation txPropagation, Function<SqlConnection,Future<T>> function)LikePool.withTransaction(Function)but allows for setting the mode, defining how the acquired connection is managed during the execution of the function.default <T> Future<T>Pool. withTransaction(Function<SqlConnection,Future<T>> function)Execute the givenfunctionwithin a transaction. -
Uses of SqlConnection in io.vertx.sqlclient.spi
Methods in io.vertx.sqlclient.spi that return types with arguments of type SqlConnection Modifier and Type Method Description Future<SqlConnection>ConnectionFactory. connect(Context context, C options)Create a connection using the givencontext.default Future<SqlConnection>ConnectionFactory. connect(Context context, Future<C> fut)Method parameters in io.vertx.sqlclient.spi with type arguments of type SqlConnection Modifier and Type Method Description default PoolDriver. createPool(Vertx vertx, Supplier<Future<C>> databases, PoolOptions poolOptions, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler)Create a connection pool to the database configured with the givenconnectOptionsandpoolOptions.PoolDriver. newPool(Vertx vertx, Supplier<Future<C>> databases, PoolOptions options, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler, io.vertx.core.internal.CloseFuture closeFuture)Create a connection pool to the database configured with the givenconnectOptionsandpoolOptions.
-