| Modifier and Type | Method and Description |
|---|---|
static MySQLPool |
pool(MySQLConnectOptions connectOptions,
PoolOptions poolOptions)
Create a connection pool to the MySQL server configured with the given
connectOptions and poolOptions. |
static MySQLPool |
pool(String connectionUri)
Like
pool(String, PoolOptions) with a default poolOptions. |
static MySQLPool |
pool(String connectionUri,
PoolOptions poolOptions)
|
static MySQLPool |
pool(Vertx vertx,
MySQLConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool(MySQLConnectOptions, PoolOptions) with a specific Vertx instance. |
static MySQLPool |
pool(Vertx vertx,
String connectionUri)
Like
pool(Vertx, String,PoolOptions) with a default poolOptions.. |
static MySQLPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions poolOptions)
|
<R> MySQLPool |
preparedBatch(String sql,
List<Tuple> batch,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a createBatch.
|
MySQLPool |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a createBatch.
|
<R> MySQLPool |
preparedQuery(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
MySQLPool |
preparedQuery(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> MySQLPool |
preparedQuery(String sql,
Tuple arguments,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
MySQLPool |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> MySQLPool |
query(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Execute a simple query.
|
MySQLPool |
query(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Execute a simple query.
|
begin, close, getConnectionstatic MySQLPool pool(String connectionUri)
pool(String, PoolOptions) with a default poolOptions.static MySQLPool pool(String connectionUri, PoolOptions poolOptions)
static MySQLPool pool(Vertx vertx, String connectionUri)
pool(Vertx, String,PoolOptions) with a default poolOptions..static MySQLPool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
static MySQLPool pool(MySQLConnectOptions connectOptions, PoolOptions poolOptions)
connectOptions and poolOptions.connectOptions - the options for the connectionpoolOptions - the options for creating the poolstatic MySQLPool pool(Vertx vertx, MySQLConnectOptions connectOptions, PoolOptions poolOptions)
pool(MySQLConnectOptions, PoolOptions) with a specific Vertx instance.MySQLPool preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLhandler - the handler notified with the execution result<R> MySQLPool preparedQuery(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLcollector - the collectorhandler - the handler notified with the execution resultMySQLPool query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient<R> MySQLPool query(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientMySQLPool preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution result<R> MySQLPool preparedQuery(String sql, Tuple arguments, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentscollector - the collectorhandler - the handler notified with the execution resultMySQLPool preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedBatch in interface PoolpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution result<R> MySQLPool preparedBatch(String sql, List<Tuple> batch, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedBatch in interface PoolpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tuplescollector - the collectorhandler - the handler notified with the execution resultCopyright © 2019 Eclipse. All rights reserved.