()
| 148 | } |
| 149 | |
| 150 | async begin() { |
| 151 | const queryInterface = this.sequelize.getQueryInterface(); |
| 152 | |
| 153 | if ( this.sequelize.dialect.supports.settingIsolationLevelDuringTransaction ) { |
| 154 | await queryInterface.startTransaction(this, this.options); |
| 155 | return queryInterface.setIsolationLevel(this, this.options.isolationLevel, this.options); |
| 156 | } |
| 157 | |
| 158 | await queryInterface.setIsolationLevel(this, this.options.isolationLevel, this.options); |
| 159 | |
| 160 | return queryInterface.startTransaction(this, this.options); |
| 161 | } |
| 162 | |
| 163 | cleanup() { |
| 164 | class="cm">// Donclass="st">'t release the connection if there's a parent transaction or |
no test coverage detected