The problem is when there is an error in bulkCreate it does not rollback. It should bring the destroyed report_details back but it is not ... ... <看更多>
Search
Search
The problem is when there is an error in bulkCreate it does not rollback. It should bring the destroyed report_details back but it is not ... ... <看更多>
This problem seems to be occurred by a bad transaction id when sequelize makes the update (I attach log output). sequelize.transaction().then( ... ... <看更多>
Model.destroy({ where: {accessLevel: 0}, individualHooks: true}); // Will select ... you to specify a transaction in the options parameter of the method. ... <看更多>
Options used for Model.destroy ... Defined in node_modules/@types/sequelize/index.d.ts:3373 ... Inherited from SearchPathOptions.transaction. ... <看更多>
When you delete a row in the "child" table, nobody cares. ... allows the check to be deferred until later in the transaction, whereas RESTRICT does not. ... <看更多>