public interface MSSQLConnection extends SqlConnection
Modifier and Type | Method and Description |
---|---|
static MSSQLConnection |
cast(SqlConnection sqlConnection)
Cast a
SqlConnection to MSSQLConnection . |
MSSQLConnection |
closeHandler(io.vertx.core.Handler<Void> handler) |
static io.vertx.core.Future<MSSQLConnection> |
connect(io.vertx.core.Vertx vertx,
MSSQLConnectOptions connectOptions)
Like
connect(Vertx, MSSQLConnectOptions, Handler) but returns a Future of the asynchronous result |
static void |
connect(io.vertx.core.Vertx vertx,
MSSQLConnectOptions connectOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MSSQLConnection>> handler)
Create a connection to SQL Server with the given
connectOptions . |
MSSQLConnection |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
MSSQLConnection |
prepare(String s,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler) |
begin, begin, close, databaseMetadata, isSSL, prepare
close, preparedQuery, query
static void connect(io.vertx.core.Vertx vertx, MSSQLConnectOptions connectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<MSSQLConnection>> handler)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionhandler
- the handler called with the connection or the failurestatic io.vertx.core.Future<MSSQLConnection> connect(io.vertx.core.Vertx vertx, MSSQLConnectOptions connectOptions)
connect(Vertx, MSSQLConnectOptions, Handler)
but returns a Future
of the asynchronous resultMSSQLConnection prepare(String s, io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
prepare
in interface SqlConnection
MSSQLConnection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler
in interface SqlConnection
MSSQLConnection closeHandler(io.vertx.core.Handler<Void> handler)
closeHandler
in interface SqlConnection
static MSSQLConnection cast(SqlConnection sqlConnection)
SqlConnection
to MSSQLConnection
.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.sqlConnection
- the connection to castinstance
Copyright © 2021 Eclipse. All rights reserved.