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

Method getDefaultGenerator

packages/migrations/src/Migrator.ts:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 protected getDefaultGenerator(): IMigrationGenerator {
52 if (this.options.emit === 'js' || this.options.emit === 'cjs') {
53 return new JSMigrationGenerator(this.driver, this.config.getNamingStrategy(), this.options);
54 }
55
56 return new TSMigrationGenerator(this.driver, this.config.getNamingStrategy(), this.options);
57 }
58
59 private async getSnapshotPath(): Promise<string> {
60 if (!this.#snapshotPath) {

Callers 1

initServicesFunction · 0.45

Calls 1

getNamingStrategyMethod · 0.45

Tested by

no test coverage detected