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()Deprecated.default booleanbooleanWhether or not a health check is published in case the smallrye-health extension is present.booleanWhether or not datasource metrics are published in case a metrics extension is present.url()Deprecated.
-
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 or not 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 "jdbc.enable-metrics" property that needs to be set on the JDBC datasource level to enable collection of metrics for that datasource.
-
url
Deprecated.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
Deprecated.Only here to detect configuration errors. -
hasNamedDataSources
default boolean hasNamedDataSources()
-