public interface MySQLConnection
extends io.vertx.sqlclient.SqlConnection
| Modifier and Type | Method and Description |
|---|---|
MySQLConnection |
changeUser(MySQLConnectOptions options,
Handler<AsyncResult<Void>> handler)
Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state.
|
MySQLConnection |
closeHandler(Handler<Void> handler) |
static void |
connect(Vertx vertx,
MySQLConnectOptions connectOptions,
Handler<AsyncResult<MySQLConnection>> handler)
Create a connection to MySQL server with the given
connectOptions. |
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<MySQLConnection>> handler)
Like
connect(Vertx, MySQLConnectOptions, Handler) with options build from connectionUri. |
MySQLConnection |
debug(Handler<AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
MySQLConnection |
exceptionHandler(Handler<Throwable> handler) |
MySQLConnection |
getInternalStatistics(Handler<AsyncResult<String>> handler)
Send a STATISTICS command to get a human readable string of the server internal status.
|
MySQLConnection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
MySQLConnection |
prepare(String sql,
Handler<AsyncResult<io.vertx.sqlclient.PreparedQuery>> handler) |
<R> MySQLConnection |
preparedQuery(String sql,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
MySQLConnection |
preparedQuery(String sql,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
<R> MySQLConnection |
preparedQuery(String sql,
io.vertx.sqlclient.Tuple arguments,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
MySQLConnection |
preparedQuery(String sql,
io.vertx.sqlclient.Tuple arguments,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
<R> MySQLConnection |
query(String sql,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
MySQLConnection |
query(String sql,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
MySQLConnection |
resetConnection(Handler<AsyncResult<Void>> handler)
Send a RESET_CONNECTION command to reset the session state.
|
MySQLConnection |
setOption(MySQLSetOption option,
Handler<AsyncResult<Void>> handler)
Send a SET_OPTION command to set options for the current connection.
|
MySQLConnection |
specifySchema(String schemaName,
Handler<AsyncResult<Void>> handler)
Send a INIT_DB command to change the default schema of the connection.
|
static void connect(Vertx vertx, MySQLConnectOptions connectOptions, Handler<AsyncResult<MySQLConnection>> handler)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionhandler - the handler called with the connection or the failurestatic void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<MySQLConnection>> handler)
connect(Vertx, MySQLConnectOptions, Handler) with options build from connectionUri.MySQLConnection prepare(String sql, Handler<AsyncResult<io.vertx.sqlclient.PreparedQuery>> handler)
prepare in interface io.vertx.sqlclient.SqlConnectionMySQLConnection exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface io.vertx.sqlclient.SqlConnectionMySQLConnection closeHandler(Handler<Void> handler)
closeHandler in interface io.vertx.sqlclient.SqlConnectionMySQLConnection preparedQuery(String sql, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnection<R> MySQLConnection preparedQuery(String sql, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnectionMySQLConnection query(String sql, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
query in interface io.vertx.sqlclient.SqlClientquery in interface io.vertx.sqlclient.SqlConnection<R> MySQLConnection query(String sql, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
query in interface io.vertx.sqlclient.SqlClientquery in interface io.vertx.sqlclient.SqlConnectionMySQLConnection preparedQuery(String sql, io.vertx.sqlclient.Tuple arguments, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnection<R> MySQLConnection preparedQuery(String sql, io.vertx.sqlclient.Tuple arguments, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnectionMySQLConnection ping(Handler<AsyncResult<Void>> handler)
handler - the handler notified when the server responses to clientMySQLConnection specifySchema(String schemaName, Handler<AsyncResult<Void>> handler)
schemaName - name of the schema to change tohandler - the handler notified with the execution resultMySQLConnection getInternalStatistics(Handler<AsyncResult<String>> handler)
handler - the handler notified with the execution resultMySQLConnection setOption(MySQLSetOption option, Handler<AsyncResult<Void>> handler)
option - the options to sethandler - the handler notified with the execution resultMySQLConnection resetConnection(Handler<AsyncResult<Void>> handler)
handler - the handler notified with the execution resultMySQLConnection debug(Handler<AsyncResult<Void>> handler)
handler - the handler notified with the execution resultMySQLConnection changeUser(MySQLConnectOptions options, Handler<AsyncResult<Void>> handler)
options - authentication options, only username, password, database, collation and properties will be used.handler - the handlerCopyright © 2019 Eclipse. All rights reserved.