Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose RxJava3 PgPool bean #1333

Open
hantsy opened this issue Apr 29, 2024 · 0 comments
Open

Expose RxJava3 PgPool bean #1333

hantsy opened this issue Apr 29, 2024 · 0 comments

Comments

@hantsy
Copy link

hantsy commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants