()
| 20 | } |
| 21 | |
| 22 | public async commit(): Promise<any[]> { |
| 23 | if (!this.trx) { |
| 24 | throw new Error('Unable to get transaction: transaction not started.') |
| 25 | } |
| 26 | return this.trx.commit() |
| 27 | } |
| 28 | |
| 29 | public async rollback(): Promise<any[]> { |
| 30 | if (!this.trx) { |
no test coverage detected