liveBook · Manning

Quarkus-jdbc-postgresql

As explained in Quarkus in Action

quarkus-jdbc-postgresql is a Quarkus extension that provides PostgreSQL JDBC connectivity for applications.

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

How Quarkus in Action covers it

How deep it goes
Explains installation, datasource properties, Dev Services behavior, and entity integration without detailing JDBC internals.
Examples
Uses a reservation service, PostgreSQL datasource properties, a Reservation entity, and a findByCar query.
What it assumes
Assumes a Quarkus application and Panache usage while requiring database connection properties and PostgreSQL-specific driver selection.
What you can do after
Apply it via Quarkus CLI or Maven, configure PostgreSQL access, and persist Panache entities.
How it connects
Ties PostgreSQL JDBC connectivity to Quarkus, Hibernate ORM Panache, datasources, entities, and Dev Services.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.