DBConfig Loader Builder
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()Content copied to clipboard
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
Sets the logical config key to use (acts as a primary key for lookup).
Link copied to clipboard
Builds and returns a new DBConfigLoader instance with the provided settings.
Link copied to clipboard
Specifies the table name where config objects are stored.