Getting started with Quarkus, reactive MySQL datasource, & Kotlin #26165
Unanswered
jehrenzweig-leagueapps
asked this question in
Q&A
Replies: 1 comment 5 replies
-
/cc @evanchooly |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm pretty new to Quarkus, reactive programming, & Kotlin, and I'm having trouble figuring out how to get my first reactive SQL query working. Here's the repository class I have right now, which I've written using the "Reactive SQL Clients" page's "Prepared Queries" info:
[UPDATE @ 2022-06-17]
I've created a repository with a sample application to help demonstrate this behavior:
The
PotatoTypeReadOnlyRepository
class' getPotatoTypeByName() method successfully submits a SQL query & returns aPotatoType
object, which is then returned as the API response body.However, if I call the
PotatoTypeReadOnlyRepository
class' getPotatoTypeByNameReactive()method, the API endpoint that calls it returns a HTTP 500 response, because I'm doing one or more things wrong.
The problem here is that I can't figure out to write the reactive equivalent of my non-reactive repository method. Any help or pointers would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions