MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / up

Method up

tests/features/migrations/Migrator.sqlite.test.ts:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16class 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;

Callers

nothing calls this directly

Calls 2

rawFunction · 0.90
executeMethod · 0.65

Tested by

no test coverage detected