Initialize the repository with a SQLAlchemy sessionmaker or engine and context information. # Initialize SQL repository for dual-write support self.sql_repository ...
Event listener that automatically filters soft-deleted records. This is called before every query execution. If the query involves any SoftDeleteMixin models, the filter will be applied automatically.