DBConfigLoaderBuilder

Builder interface for creating DB-backed config loaders.

This builder allows you to configure the target table, logical key, data source, and other options for DB persistence before loading the configuration.

Usage:

val loader = Yacla.dbLoader<MyConfig> {
dataSource(myDataSource)
table("my_config")
key("profile-1")
}.load()

Parameters

T

the type of config object to be loaded

Inheritors

Functions

Link copied to clipboard

Specifies the DataSource (JDBC) used for all DB operations.

Link copied to clipboard
abstract fun key(key: String): DBConfigLoaderBuilder<T>

Sets the logical config key to use (acts as a primary key for lookup).

Link copied to clipboard
abstract fun load(): DBConfigLoader<T>

Builds and returns a new DBConfigLoader instance with the provided settings.

Link copied to clipboard
abstract fun table(name: String): DBConfigLoaderBuilder<T>

Specifies the table name where config objects are stored.