import abc import duckdb [docs] class DuckDbConnectionFactory(abc.ABC): """Abstract factory for DuckDb connection.""" [docs] @abc.abstractmethod def connect(self) -> duckdb.DuckDBPyConnection: """Create a new DuckDb connection."""