-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to use this extension with a database managed by Quarks Dev Services #173
Comments
DevServices were added after I wrote this extension, so I never fully integrated them. The plan was to bring in this extension natively into Quarkus, but I haven't got the time to do it: quarkusio/quarkus#14240 Anyway, let me see if I can at least come up with something to integrate with DevServices. |
Totally understandable :) here's to hoping you are able to figure something in order to make it work with dev services haha |
will try it out later, much appreciated 🥳 |
Just to let you know, I've just tested it against Quarkus 2.6.3 and it works as expected :) thank you so much for implementing the solution so quickly, much appreciated |
In the Quarkus example implementation of the
DataSourceProvider
you make it clear that it's not possible to interact with Quarkus at that point in order to get the connection string directly fromConfigProvider.getConfig()
, so you rely on reading theapplication.properties
file with the help ofSmallRyeConfigBuilder
.My question is: since the value of
quarkus.datasource.jdbc.url
is purposely omitted from the file in order to have the DB launched by Dev Service during test, how would you be able to get the connection details in order to implement aDataSourceProvider
?There's probably a way of doing so, but I'm quite new to the Quarkus world so I'm not aware. Really need this for my integration tests, or else I will have to rely on dropping and populating everything manually for each test, which is quite tedious and error-prone
The text was updated successfully, but these errors were encountered: