sebastiandaschner blog
How to Init Databases With Quarkus
monday, april 03, 2023While 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
- My example coffee-shop project
- Dev Services for Databases
- Pragmatic database migrations with Quarkus and Flyway
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.