- java.lang.Object
-
- io.vertx.pgclient.spi.PgDriver
-
- All Implemented Interfaces:
Driver<PgConnectOptions>
public class PgDriver extends Object implements Driver<PgConnectOptions>
-
-
Constructor Summary
Constructors Constructor Description PgDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsOptions(SqlConnectOptions options)intappendQueryPlaceholder(StringBuilder queryBuilder, int index, int current)ConnectionFactory<PgConnectOptions>createConnectionFactory(Vertx vertx, NetClientOptions transportOptions)PgConnectOptionsdowncast(SqlConnectOptions connectOptions)PoolnewPool(Vertx vertx, Supplier<Future<PgConnectOptions>> databases, PoolOptions poolOptions, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler, io.vertx.core.internal.CloseFuture closeFuture)PgConnectOptionsparseConnectionUri(String uri)io.vertx.sqlclient.internal.SqlConnectionInternalwrapConnection(io.vertx.core.internal.ContextInternal context, ConnectionFactory<PgConnectOptions> factory, io.vertx.sqlclient.internal.Connection conn)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.sqlclient.spi.Driver
createPool
-
-
-
-
Field Detail
-
INSTANCE
public static final PgDriver INSTANCE
-
-
Method Detail
-
newPool
public Pool newPool(Vertx vertx, Supplier<Future<PgConnectOptions>> databases, PoolOptions poolOptions, NetClientOptions transportOptions, Handler<SqlConnection> connectHandler, io.vertx.core.internal.CloseFuture closeFuture)
- Specified by:
newPoolin interfaceDriver<PgConnectOptions>
-
parseConnectionUri
public PgConnectOptions parseConnectionUri(String uri)
- Specified by:
parseConnectionUriin interfaceDriver<PgConnectOptions>
-
acceptsOptions
public boolean acceptsOptions(SqlConnectOptions options)
- Specified by:
acceptsOptionsin interfaceDriver<PgConnectOptions>
-
downcast
public PgConnectOptions downcast(SqlConnectOptions connectOptions)
- Specified by:
downcastin interfaceDriver<PgConnectOptions>
-
createConnectionFactory
public ConnectionFactory<PgConnectOptions> createConnectionFactory(Vertx vertx, NetClientOptions transportOptions)
- Specified by:
createConnectionFactoryin interfaceDriver<PgConnectOptions>
-
appendQueryPlaceholder
public int appendQueryPlaceholder(StringBuilder queryBuilder, int index, int current)
- Specified by:
appendQueryPlaceholderin interfaceDriver<PgConnectOptions>
-
wrapConnection
public io.vertx.sqlclient.internal.SqlConnectionInternal wrapConnection(io.vertx.core.internal.ContextInternal context, ConnectionFactory<PgConnectOptions> factory, io.vertx.sqlclient.internal.Connection conn)- Specified by:
wrapConnectionin interfaceDriver<PgConnectOptions>
-
-