INNER CODE UNIT · Python

get_dropped_rows

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

def get_dropped_rows() -> int:
    """Access-log rows dropped because the buffer was full (for monitoring)."""
    return _dropped_rows


class DatabaseManager:
    """
    Singleton database manager for the Krawl honeypot.

    Handles database initialization, session management, and provides
    methods for persisting access logs, credentials, and attack detections.
    """

    _instance: Optional["DatabaseManager"] = None

    def __new__(cls) -> "DatabaseManager":
        if cls._instance is None:
            cls._instance = super().__new__(cls)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…