question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JDBC ConfigSource Extension

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
wansorscommented, Mar 31, 2021

I’m wondering if we should group all sources in a single extension with multi modules or just keep them separate.

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.

0reactions
quarkus-bot[bot]commented, May 24, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found