interface Logging {
    benchmark?: boolean;
    logging?: false | ((sql, timing?) => void);
}

Hierarchy (view full)

Properties

Properties

benchmark?: boolean

Pass query execution time in milliseconds as second argument to logging function (options.logging).

logging?: false | ((sql, timing?) => void)

A function that gets executed while running the query to log the sql.

Type declaration

    • (sql, timing?): void
    • Parameters

      • sql: string
      • Optional timing: number

      Returns void