vertx / io.vertx.kotlin.servicediscovery.types / JDBCDataSource

JDBCDataSource

object JDBCDataSource

Functions

getJDBCClientAwait

suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: JsonObject): JDBCClient
suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): JDBCClient
suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): JDBCClient
suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, consumerConfiguration: JsonObject): JDBCClient

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.ext.jdbc.JDBCClient. The async result is marked as failed is there are no matching services, or if the lookup fails.