Hi,
first, we understand the SQL client connection pool is lacking several
features, but that's a different question you are asking here.
the Vert.x JDBC Client currently provides two API implementations:
1/ the Vert.x 3 JDBC client API
2/ the Vert.x 4 SQL client API (defined in vertx-sql-client)
Both use JDBC and the a JDBC connection pool.
I think what confuses you is that the JDBPool is using the PoolOptions
of SQL client that is limited somehow.
You can use the JDBC pool from any data source, so it means you can
pass a JDBC pool to use with the SQL client API, e.g
HikariDataSource ds = new HikariDataSource();
ds.setJdbcUrl("jdbc:h2:mem:testDB?shutdown=true");
client = JDBCPool.pool(vertx, ds);
Concerning deprecation:
1/ the Vert.x 3 JDBC API is supported for the lifetime of Vert.x 4,
but is deprecated (because the API is replaced) and going away in
Vert.x 5
2/ the Vert.x 4 JDBC API is supported for the lifetime of Vert.x 4 and beyond
So to sum-up
- you can continue using the Vert.x 3 JDBC API with Vert.x 4
- but you should migrate to the new Vert.x 4 JDBC API based on
vertx-sql-client that will be supported beyond Vert.x 4
- you can create a Vert.x 4 JDBC API pool with any datasource as shown above
I hope it answers your questions and doubts.
HTH
Julien
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
vertx+un...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/vertx/b4c96e59-0159-44f0-8d03-abb411e75da6n%40googlegroups.com.