micronaut-sql icon indicating copy to clipboard operation
micronaut-sql copied to clipboard

Expose RxJava3 PgPool bean

Open hantsy opened this issue 9 months ago • 0 comments

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

hantsy avatar Apr 29 '24 13:04 hantsy