Modifier and Type | Field and Description |
---|---|
static MySQLDriver |
INSTANCE |
Constructor and Description |
---|
MySQLDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsOptions(SqlConnectOptions options) |
ConnectionFactory |
createConnectionFactory(Vertx vertx,
SqlConnectOptions database)
Create a connection factory to the given
database . |
MySQLPool |
newPool(Vertx vertx,
List<? extends SqlConnectOptions> databases,
PoolOptions options,
io.vertx.core.impl.CloseFuture closeFuture)
Create a connection pool to the database configured with the given
connectOptions and poolOptions . |
MySQLConnectOptions |
parseConnectionUri(String uri) |
io.vertx.sqlclient.impl.SqlConnectionInternal |
wrapConnection(io.vertx.core.impl.ContextInternal context,
ConnectionFactory factory,
io.vertx.sqlclient.impl.Connection conn,
io.vertx.sqlclient.impl.tracing.QueryTracer tracer,
ClientMetrics metrics) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendQueryPlaceholder, createPool
public static final MySQLDriver INSTANCE
public MySQLPool newPool(Vertx vertx, List<? extends SqlConnectOptions> databases, PoolOptions options, io.vertx.core.impl.CloseFuture closeFuture)
Driver
connectOptions
and poolOptions
.
This method is not meant to be used directly by users, instead they should use Driver.createPool(Vertx, List, PoolOptions)
.public MySQLConnectOptions parseConnectionUri(String uri)
parseConnectionUri
in interface Driver
true
if the driver accepts the connectOptions
, false
otherwisepublic boolean acceptsOptions(SqlConnectOptions options)
acceptsOptions
in interface Driver
connectOptions
, false otherwisepublic ConnectionFactory createConnectionFactory(Vertx vertx, SqlConnectOptions database)
Driver
database
.createConnectionFactory
in interface Driver
vertx
- the Vertx instance tdatabase
- the database to connect topublic io.vertx.sqlclient.impl.SqlConnectionInternal wrapConnection(io.vertx.core.impl.ContextInternal context, ConnectionFactory factory, io.vertx.sqlclient.impl.Connection conn, io.vertx.sqlclient.impl.tracing.QueryTracer tracer, ClientMetrics metrics)
wrapConnection
in interface Driver
Copyright © 2023 Eclipse. All rights reserved.