sebastiandaschner blog


How to Init Databases With Quarkus

#quarkus monday, april 03, 2023

While developing Quarkus applications that use relational databases, we usually need to control or set the database schema and initial data. There are several approaches in Quarkus, including the dev services, and in the following video we’ll see which approaches make sense for an efficient development workflow.

 

 

You can find the example scripts in my coffee-shop project.

More Resources

Additionally, check out these Quarkus config options:

quarkus.datasource.devservices.init-script-path=<file.sql>
quarkus.hibernate-orm.database.generation=none|drop-and-create|update|...
quarkus.hibernate-orm.sql-load-script=<file.sql>

 

Found the post useful? Then you might want to have a look at my Quarkus video courses or full-day online workshops in April.