vertx / io.vertx.reactivex.servicediscovery.types / JDBCDataSource / rxGetJDBCClient

# rxGetJDBCClient

`open static fun rxGetJDBCClient(discovery: ServiceDiscovery, filter: JsonObject): Single<JDBCClient>`

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

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

Return

`open static fun rxGetJDBCClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): Single<JDBCClient>`

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

### Parameters

`discovery` - The service discovery instance

`filter` - The filter (must not be `null`)

Return

`open static fun rxGetJDBCClient(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): Single<JDBCClient>`

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

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

`consumerConfiguration` - the consumer configuration

Return

`open static fun rxGetJDBCClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, consumerConfiguration: JsonObject): Single<JDBCClient>`

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

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, must not be `null`

`consumerConfiguration` - the consumer configuration

Return