Guess the driver from the extension selected
See original GitHub issueFrom @gsmet I was thinking last night about maybe having the possibility to not ask for the driver if we have only one JDBC driver present.
E.g. we could have a BuildItem created by each database extension and inject a list of them in either Agroal or the JPA processor and do some automatic things based on the number of elements we obtain.
We could also detect that we have none and throw a user-friendly error as we discussed.
It was just before going to sleep so maybe it’s just a dumb idea 😃.
The Hibernate extension would also need to change to listen to these and not require a driver
property in the case of no persistence.xml
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
2. Reading, Writing and Converting Simple Features
How the guessing of drivers works is explained in the next section. ... The output driver is guessed from the datasource name, either...
Read more >Error [PDOException]: Could not Find Driver in PostgreSQL ...
Just edit your php.ini and uncomment the lines extension=pdo_pgsql.so and ... Restart any open command prompts, or to be certain, restart your computer....
Read more >Using Hibernate ORM and JPA - Quarkus
The dialect will be selected based on the JDBC driver - unless you set one explicitly. You can then happily inject your EntityManager...
Read more >MDT and Drivers | Jason Watkins - University of Pennsylvania
To import drivers into OOBD, make your folders as desired, right-click the folder for the computer model, and choose “Import drivers.” A wizard ......
Read more >Chapter 4. Guest Additions - VirtualBox
Windows Guest Additions can be updated by running the installation program again. This replaces the previous Additions drivers with updated versions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good point @machi1990 .
@victorl2 I think that would be great, thanks a lot for offering! But could you wait a little bit to start? @gsmet is currently finishing a significant rewrite of how the datasources are configured. He should be done in just some days, maybe next week, so probably best you wait a little to avoid a massive conflict.
I would like to start contributing with this issue, can i take it ?