public interface MSSQLConnection extends SqlConnection
| Modifier and Type | Method and Description |
|---|---|
static MSSQLConnection |
cast(SqlConnection sqlConnection)
Cast a
SqlConnection to MSSQLConnection. |
MSSQLConnection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
static Future<MSSQLConnection> |
connect(Vertx vertx,
MSSQLConnectOptions connectOptions)
Like
connect(Vertx, MSSQLConnectOptions, Handler) but returns a Future of the asynchronous result |
static void |
connect(Vertx vertx,
MSSQLConnectOptions connectOptions,
Handler<AsyncResult<MSSQLConnection>> handler)
Create a connection to SQL Server with the given
connectOptions. |
static Future<MSSQLConnection> |
connect(Vertx vertx,
String connectionUri)
Like
connect(Vertx, String, Handler) but returns a Future of the asynchronous result |
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<MSSQLConnection>> handler)
Like
connect(Vertx, MSSQLConnectOptions, Handler) with options built from connectionUri. |
MSSQLConnection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
MSSQLConnection |
prepare(String s,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
begin, begin, close, databaseMetadata, isSSL, prepare, prepare, prepareclose, preparedQuery, preparedQuery, querystatic void connect(Vertx vertx, MSSQLConnectOptions connectOptions, Handler<AsyncResult<MSSQLConnection>> handler)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionhandler - the handler called with the connection or the failurestatic Future<MSSQLConnection> connect(Vertx vertx, MSSQLConnectOptions connectOptions)
connect(Vertx, MSSQLConnectOptions, Handler) but returns a Future of the asynchronous resultstatic void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<MSSQLConnection>> handler)
connect(Vertx, MSSQLConnectOptions, Handler) with options built from connectionUri.static Future<MSSQLConnection> connect(Vertx vertx, String connectionUri)
connect(Vertx, String, Handler) but returns a Future of the asynchronous resultMSSQLConnection prepare(String s, Handler<AsyncResult<PreparedStatement>> handler)
sql string.prepare in interface SqlConnections - the sqlhandler - the handler notified with the prepared query asynchronouslyMSSQLConnection exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface SqlConnectionhandler - the handlerMSSQLConnection closeHandler(Handler<Void> handler)
closeHandler in interface SqlConnectionhandler - the handlerstatic MSSQLConnection cast(SqlConnection sqlConnection)
SqlConnection to MSSQLConnection.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.sqlConnection - the connection to castinstanceCopyright © 2022 Eclipse. All rights reserved.