How to Init Databases With Quarkusmonday, 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.
- 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>