Currently, configuring Jdbi involves some manual setup, which can be cumbersome and error-prone, especially in complex environments with multiple datasources and varying plugin requirements. To streamline this process, a declarative configuration approach that automatically configures the Jdbi setup within Quarkus could help to reach a common baseline:
Configure Jdbi instances for each datasource entry automatically — reducing the need for manual bean configuration
Create a DSL within Quarkus to define Jdbi configurations
Expand DSL for plugins to be enabled for each Jdbi instance
Incorporate support for configuring the SQL logger
Description
Currently, configuring Jdbi involves some manual setup, which can be cumbersome and error-prone, especially in complex environments with multiple datasources and varying plugin requirements. To streamline this process, a declarative configuration approach that automatically configures the Jdbi setup within Quarkus could help to reach a common baseline:
In other words, the following class:
Could be automatically configured whenever a datasource configuration is enabled — with the exception of the plugins and the SQL logger.