question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Guess the driver from the extension selected

See original GitHub issue

From @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:closed
  • Created 5 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Sannecommented, Feb 26, 2020

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.

1reaction
victorl2commented, Feb 25, 2020

I would like to start contributing with this issue, can i take it ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found