DbDynamicConfig
- class q2_sdk.hq.models.db_config.db_dynamic_config.DbDynamicConfig(name, default, description=None, required=True)[source]
Bases:
DbConfig
[T
]Variant of DbConfig that allows passing in a function as the default value. This value will be resolved at install time.
- Parameters:
name – Key written to the database
default (
Callable
[[],TypeVar
(T
)]) – A function that resolves to your desired default value at install timerequired – If True, will raise errors at runtime when unset. Consider using False when DbConfigs are added to an already deployed extension