EnvAsyncPostgresDsn#
- type safir.pydantic.EnvAsyncPostgresDsn = Annotated[pydantic_core._pydantic_core.Url, pydantic.networks.UrlConstraints(max_length=None, allowed_schemes=['postgresql', 'postgresql+asyncpg'], host_required=True, default_host=None, default_port=None, default_path=None, preserve_empty_path=None), pydantic.functional_validators.AfterValidator(func=safir.pydantic._types._validate_env_async_postgres_dsn)]#
Async PostgreSQL data source URL honoring Docker environment variables.
Unlike the standard Pydantic
PostgresDsntype, this type does not support multiple hostnames because Safir’s database library does not support multiple hostnames.