Interface ManagedTransactionOptions

Options accepted by Sequelize#transaction.

Hierarchy

Properties

benchmark?: boolean

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

constraintChecking?: ConstraintChecking | Class<ConstraintChecking>
isolationLevel?: null | IsolationLevel
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

      Returns void

How the transaction block should behave if a parent transaction block exists.

readOnly?: boolean

Whether this transaction will only be used to read data. Used to determine whether sequelize is allowed to use a read replication server.

transaction?: null | Transaction

Parent transaction. Will be retrieved from CLS automatically if not provided or if null.

Generated using TypeDoc