Interface TransactionOptions

Options provided when the transaction is created

Hierarchy

  • Logging
    • TransactionOptions

Properties

autocommit?: boolean
benchmark?: boolean

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

deferrable?: string | Deferrable
isolationLevel?: ISOLATION_LEVELS
logging?: boolean | ((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
        Optional

      Returns void

readOnly?: boolean
transaction?: Transaction

Parent transaction.

type?: TYPES

Generated using TypeDoc