Represents an asynchronous MySQL client
| Constructor and description |
|---|
MySQLClient
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
static AsyncSQLClient |
createNonShared(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> config)Create a MySQL client which maintains its own pool. |
static AsyncSQLClient |
createShared(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> config, java.lang.String poolName)Create a MySQL client which shares its data source with any other MySQL clients created with the same data source name |
static AsyncSQLClient |
createShared(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> config)Like MySQLClient.createShared but with the default pool name |
java.lang.Object |
getDelegate() |
| Methods inherited from class | Name |
|---|---|
class AsyncSQLClient |
close, close, getConnection, getDelegate |
Create a MySQL client which maintains its own pool.
vertx - the Vert.x instanceconfig - the configurationCreate a MySQL client which shares its data source with any other MySQL clients created with the same data source name
vertx - the Vert.x instanceconfig - the configurationpoolName - the pool nameLike MySQLClient.createShared but with the default pool name
vertx - the Vert.x instanceconfig - the configuration