prorm API Reference
    Preparing search index...

    Interface SlowQueryEvent

    Slow query event data emitted when a query exceeds the threshold

    interface SlowQueryEvent {
        sql: string;
        duration: number;
        timestamp: Date;
        type?: string;
        model?: string;
        error?: boolean;
        threshold: number;
    }

    Hierarchy (View Summary)

    Index
    sql: string

    The SQL query that was executed

    duration: number

    Query execution duration in milliseconds

    timestamp: Date

    Timestamp when the query was executed

    type?: string

    Query type (SELECT, INSERT, UPDATE, DELETE, etc.)

    model?: string

    Model name if query was executed via model method

    error?: boolean

    Whether the query resulted in an error

    threshold: number

    The threshold in milliseconds that was exceeded