Skip to content

io.vertx.mutiny.sqlclient.Pool.pool(...) doesn't find the (postgres) db driver in native compilation being called from code #50140

@ScorpioBroker

Description

@ScorpioBroker

Describe the bug

Hi,

i'm using PgPool.pool(...) at the moment to create new pools from code (dynamic tenants). Since PgPool was deprecated i updated my code to use io.vertx.mutiny.sqlclient.Pool this works fine in the Java version.
Pool.pool(vertx, PgConnectOptions.fromUri(reactiveBaseUrl + finalDataBase).setUser(username) .setPassword(password).setCachePreparedStatements(true), options);

However in the native compilation i get an error "No implementations of interface io.vertx.sqlclient.spi.Driver found that accept connection options io.vertx.pgclient.PgConnectOptions@7a4d8706".

I also tried it with SqlConnectOptions but had the same result.

Expected behavior

If quarkus-reactive-pg-client is present in the build the driver should be made discoverable if a pool is constructed via Pool.pool(...)

Actual behavior

No response

How to Reproduce?

  1. Create quarkus app with quarkus-reactive-pg-client
  2. Call Pool.pool to create a new pool from code

Output of uname -a or ver

Windows 11/Ubuntu server

Output of java -version

Temurin JDK 21 latest

Mandrel or GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.23.4

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

What's a bit weird to me is that i also have an injected Pool (for my standard connection) using postgres via application.propperties config and that works. So the driver is present in general. I also tried using PgBuilder directly but that gives me the same error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions