From the course: Learning Quarkus

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Data source configurations

Data source configurations

From the course: Learning Quarkus

Start my 1-month free trial

Data source configurations

- [Instructor] Configuring datasources for use in Quarkus is actually very easy. It all follows a similar pattern, and it's straightforward from there. Now there's a few prerequisites that you have to have set up in order to do the configuration of your database. First and foremost, you need to have Agroal and the JDBC extension, both of which are required on the class path through the POM file or through your Gradle command to make sure that you have the needed dependencies. Now, if you are doing reactive programming, you're going to want to use Vert.x. Now, whenever you set up a connection, there's going to be details that you are going to need to input. So those details are something you should have when you get started. Now, when we're configuring all of the properties, really the driver, what makes things click is db-kind, and specifically it's quarkus.datasource.db-kind is the property. And this is where you tell…

Contents