JDBC ConfigSource Extension
See original GitHub issueDescribe the extension
The idea is to have a extension that implements a ConfigSource to read properties from a JDBC Database table.
Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).
Configuration suggestion
# Add your application.properties here, if applicable.
quarkus.jdbc-config.enabled If set to true, the application will attempt to look up the configuration from DB
quarkus.jdbc-config.table table name for configuration records, default value is "configuration"
quarkus.jdbc-config.key-column name of the column containing the key, default value is "key"
quarkus.jdbc-config.value-column name of the column containing the value, default value is "value"
Additional context
The extension can depend on agroal. It can be similar to https://github.com/microprofile-extensions/config-ext/tree/main/configsource-db, but with quarkus constrains (No JNI).
Initial discussion about implementation: https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/ConfigSourceProvider.20from.20Database.20Table.20Extension
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
config-ext/README.md at main · microprofile-extensions ...
Contribute to microprofile-extensions/config-ext development by creating an account on GitHub. ... This config source expects JNDI & JDBC to be available.
Read more >Quarkus JDBC Config :: Quarkiverse Documentation
This command generates a Maven project with a REST endpoint and imports the config-jdbc extension.
Read more >JDBC Config Source :: Payara Community Documentation
The JDBC config source reads configuration properties from a database table. Configuration. You can configure JDBC Config Source either via the admin console...
Read more >Configuration Reference Guide - Quarkus
In this reference guide we're going to describe various aspects of Quarkus configuration. A Quarkus application and Quarkus itself (core and extensions) are ......
Read more >Chapter 12. Datasource Management Red Hat JBoss ...
PostgreSQLValidConnectionChecker; org.jboss.jca.adapters.jdbc.extensions.sybase.SybaseValidConnectionChecker. check-valid-connection-sql.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
IMHO, I think it make sense to have them together, it would be easier to develop a new one following the same principles of the others (same style on variable names, etc). From a user point of view, it is also easier to look which ConfigSource types are available.
/cc @aloubyansky, @gastaldi, @gsmet, @maxandersen