-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support async datasource drivers #38
Comments
jOOQ 3.15 supports R2DBC, which isn't based on the vertx drivers. I do hope that vertx will team up with R2DBC to implement their SPI to create that "from one hand" situation, knowing that reactive != async, though... |
Hello @lukaseder, nice to meet you. At first, you're doing a very great job, If I search for something related with jooq, I see in 90% of the cases a very detailed answer from you. So thanks for that! (I also linked the jooq issue, in expectation to get an answer from you.)
I corrected my question. I am using the reactive way, It seems I'm using it a bit wrong :). I'm right, that if I use the JooqCustomContext in this project and configure it to use R2DBC (adding the driver), then I should be able to use the async calls from Jooq? |
Probably... Well, let us know if it works :) |
I got it working after some drawbacks. I published a repo with the code (Kotlin). I implemented both configuration options mentioned in the docs. I am a bit unsure if it is using the R2DBC driver, but the errors I got were related to the R2DBC driver. Maybe you can have a quick look @lukaseder ? For Agroal there has to be a JDBC implementation present at runtime. Are NO-OP JDBC drivers existing? I haven't found one. Also the native compilation may not working anymore. |
What am I looking for?
|
|
You only wrote one query, I think, and it's this? https://github.com/Dudeplayz/quarkus-jooq-r2dbc-example/blob/master/src/main/kotlin/com/example/JooqResource.kt What could possibly be wrong about it?
What made you think your driver usage wasn't correct? |
Yes, other calls would be analog?
My first tries were executed with the wrong driver. But I think this should be fixed. If I use it at runtime I would discover it when I use the H2 as the default JDBC driver and use Postgres as the R2DBC driver. Also I was using |
Yes. Always use jOOQ queries as
That doesn't get backed by R2DBC yet |
How does it look with the support for the async drivers? Jooq has support for it since 3.15 jOOQ/jOOQ#6298
https://blog.jooq.org/tag/async/
My project is currently based on vertx-jooq and I'd like to migrate the whole app to quarkus. My db calls are
asyncreactive atm and updating to quarkus would result in going back to jdbc. I know that I could still use vertx-jooq, but I would like to use a "from one hand" solution.The text was updated successfully, but these errors were encountered: