"""Transaction Manager interface for managing database transactions.""" from abc import ABC, abstractmethod class TransactionManager(ABC): """Abstract Transaction Manager for controlling transaction boundaries.""" @abstractmethod async def commit(self) -> None: """Commit the current transaction.""" ... @abstractmethod async def rollback(self) -> None: """Rollback the current transaction.""" ...