()
| 15 | |
| 16 | class MigrationTest2 extends Migration { |
| 17 | async up(): Promise<void> { |
| 18 | this.addSql('select 1 + 1'); |
| 19 | this.addSql(raw('select 1 + 1')); |
| 20 | this.addSql(raw('select 2 + 2 as count2')); |
| 21 | const res = await this.execute('select 1 + 1 as count1'); |
| 22 | expect(res).toEqual([{ count1: 2 }]); |
| 23 | } |
| 24 | |
| 25 | override isTransactional(): boolean { |
| 26 | return false; |