Package io.quarkus.datasource.runtime
Interface DataSourcesBuildTimeConfig
@ConfigMapping(prefix="quarkus.datasource")
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED)
public interface DataSourcesBuildTimeConfig
-
Method Summary
Modifier and TypeMethodDescription@WithUnnamedKey("<default>") Map<String, DataSourceBuildTimeConfig> Datasources.driver()Only here to detect configuration errors.default booleanbooleanWhether or not a health check is published in case the smallrye-health extension is present.booleanWhether datasource metrics are published in case a metrics extension is present.url()Only here to detect configuration errors.
-
Method Details
-
dataSources
@ConfigDocMapKey("datasource-name") @WithParentName @WithDefaults @WithUnnamedKey("<default>") @WithUnnamedKey("<default>") Map<String,DataSourceBuildTimeConfig> dataSources()Datasources. -
healthEnabled
@WithName("health.enabled") @WithDefault("true") boolean healthEnabled()Whether or not a health check is published in case the smallrye-health extension is present.This is a global setting and is not specific to a datasource.
-
metricsEnabled
@WithName("metrics.enabled") @WithDefault("false") boolean metricsEnabled()Whether datasource metrics are published in case a metrics extension is present.This is a global setting and is not specific to a datasource.
NOTE: This is different from the
quarkus.datasource."datasource name".jdbc.metrics.enabledproperty that needs to be set on the JDBC datasource level to enable collection of metrics for that datasource. -
url
Only here to detect configuration errors.This used to be runtime but we don't really care, we just want to catch invalid configurations.
-
driver
Only here to detect configuration errors. -
hasNamedDataSources
default boolean hasNamedDataSources()
-