Modifier and Type | Method and Description |
---|---|
MySQLConnection |
MySQLConnection.changeUser(MySQLAuthOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state.
|
MySQLConnection |
MySQLConnection.closeHandler(io.vertx.core.Handler<Void> handler) |
MySQLConnection |
MySQLConnection.debug(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
MySQLConnection |
MySQLConnection.exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
MySQLConnection |
MySQLConnection.getInternalStatistics(io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> handler)
Send a STATISTICS command to get a human readable string of the server internal status.
|
MySQLConnection |
MySQLConnection.ping(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
MySQLConnection |
MySQLConnection.prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler) |
MySQLConnection |
MySQLConnection.resetConnection(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a RESET_CONNECTION command to reset the session state.
|
MySQLConnection |
MySQLConnection.setOption(MySQLSetOption option,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a SET_OPTION command to set options for the current connection.
|
MySQLConnection |
MySQLConnection.specifySchema(String schemaName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a INIT_DB command to change the default schema of the connection.
|
Modifier and Type | Method and Description |
---|---|
static void |
MySQLConnection.connect(io.vertx.core.Vertx vertx,
MySQLConnectOptions connectOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MySQLConnection>> handler)
Create a connection to MySQL server with the given
connectOptions . |
static void |
MySQLConnection.connect(io.vertx.core.Vertx vertx,
String connectionUri,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MySQLConnection>> handler)
Like
connect(Vertx, MySQLConnectOptions, Handler) with options build from connectionUri . |
Copyright © 2020 Eclipse. All rights reserved.