prorm API Reference
    Preparing search index...

    Interface SlowQueryLogEntry

    Slow query log entry

    interface SlowQueryLogEntry {
        id: string;
        sql: string;
        params?: any[];
        duration: number;
        timestamp: Date;
        dialect: string;
        inTransaction: boolean;
        connection?: { database?: string; host?: string };
        error?: string;
        queryType?: string;
        rowCount?: number;
    }
    Index
    id: string

    Unique identifier for the log entry

    sql: string

    The SQL query that was executed

    params?: any[]

    Query parameters (if any)

    duration: number

    Duration of query execution in milliseconds

    timestamp: Date

    Timestamp when query was executed

    dialect: string

    Database dialect used

    inTransaction: boolean

    Whether the query was from a transaction

    connection?: { database?: string; host?: string }

    Connection info (without sensitive data)

    error?: string

    Error message if query failed

    queryType?: string

    Query type (SELECT, INSERT, UPDATE, DELETE)

    rowCount?: number

    Number of rows affected/returned