vertx / io.vertx.ext.asyncsql / MySQLClient / createShared

createShared

open static fun createShared(vertx: Vertx, config: JsonObject, poolName: String): AsyncSQLClient

Create a MySQL client which shares its data source with any other MySQL clients created with the same data source name

Parameters

vertx - the Vert.x instance

config - the configuration

poolName - the pool name

Return
the client

open static fun createShared(vertx: Vertx, config: JsonObject): AsyncSQLClient

Like #createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool name

Parameters

vertx - the Vert.x instance

config - the configuration

Return
the client