quarkus-jdbc-postgresql is the Quarkus JDBC driver extension that connects Hibernate Panache applications to PostgreSQL. Panache typically uses it alongside quarkus-hibernate-orm-panache. section 7.1.2
Add the extension, configure the datasource, and let Panache entities use the connection:
- Install it with quarkus ext add quarkus-jdbc-postgresql, or add the io.quarkus:quarkus-jdbc-postgresql Maven dependency. section 7.1.2
- Configure quarkus.datasource.db-kind=postgresql, credentials, and a JDBC URL such as jdbc:postgresql://localhost:5432/reservation. section 7.1.2
- Use the connection through Panache entities, such as Reservation extending PanacheEntity and querying with list("carId", carId). section 7.1.2
Listing 7.2 Adding extensions required for Panache
$ quarkus ext add quarkus-hibernate-orm-panache quarkus-jdbc-postgresql Looking for the newly published extensions in registry.quarkus.io [SUCCESS] ✅ Extension io.quarkus:quarkus-hibernate-orm-panache has been installed [SUCCESS] ✅ Extension io.quarkus:quarkus-jdbc-postgresql has been installed
The extension command shows the minimal installation step for a Panache application. section 7.1.2
