Ligare.database.config
Ligare.database’s integration with Ligare.programming.config.
Classes
|
|
|
|
|
|
|
- class Ligare.database.config.Config(**data)[source]
-
database:
DatabaseConfig
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
database:
- class Ligare.database.config.DatabaseConfig(**data)[source]
- __init__(**data)[source]
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
-
connect_args:
DatabaseConnectArgsConfig
|None
-
connection_string:
str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- post_load()[source]
This method is called by load_config after TOML data has been loaded into the pluggable config type instance.
- Return type:
None
-
sqlalchemy_echo:
bool
- class Ligare.database.config.DatabaseConnectArgsConfig(**data)[source]
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].