public interface MySQLClient extends AsyncSQLClient
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_POOL_NAME |
Modifier and Type | Method and Description |
---|---|
static AsyncSQLClient |
createNonShared(Vertx vertx,
JsonObject config)
Create a MySQL client which maintains its own pool.
|
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool name |
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config,
String poolName)
Create a MySQL client which shares its data source with any other MySQL clients created with the same
data source name
|
close, close, getConnection
static final String DEFAULT_POOL_NAME
static AsyncSQLClient createNonShared(Vertx vertx, JsonObject config)
vertx
- the Vert.x instanceconfig
- the configurationstatic AsyncSQLClient createShared(Vertx vertx, JsonObject config, String poolName)
vertx
- the Vert.x instanceconfig
- the configurationpoolName
- the pool namestatic AsyncSQLClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.core.Vertx, JsonObject, String)
but with the default pool namevertx
- the Vert.x instanceconfig
- the configurationCopyright © 2015. All Rights Reserved.