Bases: ABC
Abstract base class to configure EventStore.
Source code in event_sourcery/event_store/factory.py
| class BackendFactory(abc.ABC):
"""Abstract base class to configure EventStore."""
@abc.abstractmethod
def build(self) -> Backend:
pass
@abc.abstractmethod
def with_event_registry(self, event_registry: EventRegistry) -> Self:
pass
@abc.abstractmethod
def with_outbox(self, filterer: OutboxFiltererStrategy = no_filter) -> Self:
pass
@abc.abstractmethod
def without_outbox(self, filterer: OutboxFiltererStrategy = no_filter) -> Self:
pass
|