INNER CODE UNIT · Python

engine

BlessedRebuS/Krawl · src/database/core.py:265

    def engine(self):
        """The SQLAlchemy Engine, for statements that cannot run in a session.

        ANALYZE and friends need connection-level control (AUTOCOMMIT), which a
        thread-local ORM session does not give.
        """
        if not self._initialized:
            raise RuntimeError(
                "DatabaseManager not initialized. Call initialize() first."
            )
        return self._engine

    def close_session(self) -> None:
        """Close the current thread-local session."""
        if self._initialized:
            self._Session.remove()

    def persist_access(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…