Skip to content

Expose RxJava3 PgPool bean #1333

@hantsy

Description

@hantsy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: improvementA minor improvement to an existing feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions