public class MSSQLConnectionImpl extends SqlConnectionImpl<MSSQLConnectionImpl> implements MSSQLConnection
conn, contextmetrics, tracer| Constructor and Description |
|---|
MSSQLConnectionImpl(io.vertx.mssqlclient.impl.MSSQLConnectionFactory factory,
ContextInternal context,
Connection conn,
QueryTracer tracer,
ClientMetrics metrics) |
| Modifier and Type | Method and Description |
|---|---|
int |
appendQueryPlaceholder(StringBuilder queryBuilder,
int index,
int current)
Append a parameter placeholder in the
query. |
static Future<MSSQLConnection> |
connect(Vertx vertx,
MSSQLConnectOptions options)
Like
MSSQLConnection.connect(Vertx, MSSQLConnectOptions, Handler) but returns a Future of the asynchronous result |
begin, begin, close, close, closeHandler, databaseMetadata, exceptionHandler, handleClosed, handleEvent, handleException, isSSL, promise, promise, scheduleprepare, preparepreparedQuery, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcast, closeHandler, connect, exceptionHandler, preparebegin, begin, close, databaseMetadata, isSSL, prepareclose, preparedQuery, querypublic MSSQLConnectionImpl(io.vertx.mssqlclient.impl.MSSQLConnectionFactory factory,
ContextInternal context,
Connection conn,
QueryTracer tracer,
ClientMetrics metrics)
public int appendQueryPlaceholder(StringBuilder queryBuilder, int index, int current)
SqlClientInternalquery.
The index starts at 0.
index == current indicates it is a new parameter and therefore the same
* value should be returned.index < current indicates the builder wants to reuse a parameter.
The implementation can either return the same value to indicate the parameter can be reused or
return the next index to use (which is shall be the current valueappendQueryPlaceholder in interface SqlClientInternalappendQueryPlaceholder in class SqlClientBase<MSSQLConnectionImpl>queryBuilder - the builder to append toindex - the parameter placeholder indexpublic static Future<MSSQLConnection> connect(Vertx vertx, MSSQLConnectOptions options)
MSSQLConnectionMSSQLConnection.connect(Vertx, MSSQLConnectOptions, Handler) but returns a Future of the asynchronous resultconnect in interface MSSQLConnectionCopyright © 2021. All rights reserved.