micronaut-sql
micronaut-sql copied to clipboard
Expose RxJava3 PgPool bean
Feature description
I tried to use Rxjava3 and Vertx PgClient in my example project: https://github.com/hantsy/micronaut-sandbox/tree/master/rxjava3-vertx-pg-client
But I have to expose a RxJava3 PgPool myself.
@Factory
public class PoolFactory {
@Bean
public Pool rx3Pool(io.vertx.sqlclient.Pool pool) {
return new Pool(pool);
}
}
see: https://github.com/hantsy/micronaut-sandbox/blob/master/rxjava3-vertx-pg-client/src/main/java/com/example/PoolFactory.java#L7-L14