Package io.helidon.data.sql.datasource
Interface DataSourceConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
DataSourceConfig.BuilderBase.DataSourceConfigImpl
DataSource configuration.
This is the data.sources configuration array member node of the DataSource configuration with name
and provider.<provider> nodes:
data:
sources:
sql:
- name: something
provider.ucp:
# provider configuration
username: "test"
password: "changeit"
...
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forDataSourceConfig.static classDataSourceConfig.BuilderBase<BUILDER extends DataSourceConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends DataSourceConfig> Fluent API builder base forDataSourceConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourceConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static DataSourceConfig.Builderbuilder(DataSourceConfig instance) Create a new fluent API builder from an existing instance.static DataSourceConfigcreate()Create a new instance with default values.static DataSourceConfigDeprecated.static DataSourceConfigCreate a new instance from configuration.name()DataSourcename.provider()Configuration of the used provider, such as UCP.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
name
String name()DataSourcename. Optional name to distinguish several data sources of the same type. First available data source is returned when name is not set.- Returns:
- the repository name
-
provider
ProviderConfig provider()Configuration of the used provider, such as UCP.- Returns:
- provider configuration
-
create(io.helidon.config.Config)