harp_apps.storage.settings.database

Inheritance diagram of harp_apps.storage.settings.database

class DatabaseSettings[source]

Bases: Configurable

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.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

url: Annotated[MultiHostUrl, UrlConstraints(max_length=None, allowed_schemes=['mysql', 'mysql+aiomysql', 'mysql+asyncmy', 'postgresql', 'postgresql+asyncpg', 'sqlite', 'sqlite+aiosqlite'], host_required=None, default_host=None, default_port=None, default_path=None, preserve_empty_path=None), BeforeValidator(func=_unwrap_sqlalchemy_urls, json_schema_input_type=PydanticUndefined), AfterValidator(func=_fix_unasync_dsns)]