"""DB config.""" from sqlalchemy import URL, Engine class DBConfig: """Database connection configuration.""" database: str def get_engine(self) -> Engine: """Get SQLAlchemy engine.""" ... def get_url(self) -> URL: """Get a connection URL.""" ... def get_vendor(self) -> str: """Get database vendor.""" ... def __repr__(self) -> str: """Get a string representation.""" raise TypeError('Method not implemented')