| 721 | const TransactionTest = this.sequelizeWithTransaction.define('TransactionTest', { name: DataTypes.STRING }, { timestamps: false }); |
| 722 | |
| 723 | const count = async transaction => { |
| 724 | const sql = this.sequelizeWithTransaction.getQueryInterface().queryGenerator.selectQuery('TransactionTests', { attributes: [['count(*)', 'cnt']] }); |
| 725 | |
| 726 | const result = await this.sequelizeWithTransaction.query(sql, { plain: true, transaction }); |
| 727 | |
| 728 | return result.cnt; |
| 729 | }; |
| 730 | |
| 731 | await TransactionTest.sync({ force: true }); |
| 732 | const t1 = await this.sequelizeWithTransaction.transaction(); |
no test coverage detected