| 735 | const TransactionTest = this.sequelizeWithTransaction.define('TransactionTest', { name: DataTypes.STRING }, { timestamps: false }); |
| 736 | |
| 737 | const count = async transaction => { |
| 738 | const sql = this.sequelizeWithTransaction.getQueryInterface().queryGenerator.selectQuery('TransactionTests', { attributes: [[Sequelize.literal('count(*)'), 'cnt']] }); |
| 739 | |
| 740 | const result = await this.sequelizeWithTransaction.query(sql, { plain: true, transaction }); |
| 741 | |
| 742 | return result.cnt; |
| 743 | }; |
| 744 | |
| 745 | await TransactionTest.sync({ force: true }); |
| 746 | const t1 = await this.sequelizeWithTransaction.transaction(); |
no test coverage detected