Documentation
    Preparing search index...

    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
    });

    Hierarchy (View Summary)

    Index
    • get constraints(): readonly string[]

      Returns readonly string[]

    • get 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.

      Returns typeof DEFERRED & (...args: [constraints: readonly string[]]) => DEFERRED

    • get 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.

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