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: [constraints: readonly string[]],
) => DEFERRED = ...

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

IMMEDIATE: typeof IMMEDIATE & (
    ...args: [constraints: readonly string[]],
) => IMMEDIATE = ...

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

Accessors

Methods