Database settings

pydantic model horizon.backend.settings.database.DatabaseSettings

Database connection settings.

Note

You can pass here any extra option supported by SQLAlchemy Engine class, even if it is not mentioned in documentation.

Examples

HORIZON__DATABASE__URL=postgresql+asyncpg://postgres:postgres@localhost:5432/horizon
# custom option passed directly to engine factory
HORIZON__DATABASE__POOL_PRE_PING=True
Fields:
field url: str [Required]

Database connection URL.

See SQLAlchemy documentation

class Config