Can be used to set constraints deferrable within a transaction. This is only supported in PostgreSQL.

The constraints can be configured to be deferrable in a transaction like this. It will trigger a query once the transaction has been started and set the constraints to be checked at the very end of the transaction.

sequelize.transaction({
constraintChecking: Sequelize.ConstraintChecking.DEFERRED
});

Constructors

Properties

Accessors

Methods

Constructors

Properties

DEFERRED: typeof DEFERRED & ((...args) => DEFERRED) = ...

Will trigger an additional query at the beginning of a transaction which sets the constraints to deferred.

Type declaration

    • (...args): DEFERRED
    • Parameters

      • Rest ...args: [constraints: readonly string[]]

      Returns DEFERRED

IMMEDIATE: typeof IMMEDIATE & ((...args) => IMMEDIATE) = ...

Will trigger an additional query at the beginning of a transaction which sets the constraints to immediately.

Type declaration

    • (...args): IMMEDIATE
    • Parameters

      • Rest ...args: [constraints: readonly string[]]

      Returns IMMEDIATE

Accessors

Methods