public interface MySQLClient extends AsyncSQLClient
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARSET
The default charset.
|
static long |
DEFAULT_CONNECT_TIMEOUT
The default timeout for connect.
|
static String |
DEFAULT_DATABASE
The default database.
|
static String |
DEFAULT_HOST
The default host.
|
static String |
DEFAULT_PASSWORD
The default database password.
|
static String |
DEFAULT_POOL_NAME
The default name used for the MySQL pool.
|
static int |
DEFAULT_PORT
The default port.
|
static long |
DEFAULT_TEST_TIMEOUT
The default timeout for tests.
|
static String |
DEFAULT_USER
The default database user.
|
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
|
call, callWithParams, close, close, getConnection, query, queryStream, queryStreamWithParams, queryWithParams, update, updateWithParams
querySingle, querySingleWithParams
static final String DEFAULT_POOL_NAME
static final String DEFAULT_HOST
static final int DEFAULT_PORT
static final String DEFAULT_DATABASE
static final String DEFAULT_USER
static final String DEFAULT_PASSWORD
static final String DEFAULT_CHARSET
static final long DEFAULT_CONNECT_TIMEOUT
static final long DEFAULT_TEST_TIMEOUT
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 © 2023 Eclipse. All rights reserved.