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

Method createStatement

tests/features/migrations/Migrator.postgres.test.ts:95–102  ·  view source on GitHub ↗
(sql: string, padLeft: number)

Source from the content-addressed store, hash-verified

93 }
94
95 override createStatement(sql: string, padLeft: number): string {
96 sql = sql
97 .split('\n')
98 .map((l, i) => (i === 0 ? l : `${' '.repeat(padLeft + 13)}${l}`))
99 .join('\n');
100
101 return super.createStatement(sql, padLeft);
102 }
103 },
104 });
105 const migration = await orm.migrator.create();

Callers

nothing calls this directly

Calls 3

joinMethod · 0.65
createStatementMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected