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

Function initServices

packages/core/src/utils/AbstractMigrator.ts:442–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440 }
441
442 protected initServices(): void {
443 this.runner = this.createRunner();
444 this.storage = this.createStorage();
445
446 if (this.options.generator) {
447 this.generator = new this.options.generator(this.driver, this.config.getNamingStrategy(), this.options);
448 } else {
449 this.generator = this.getDefaultGenerator();
450 }
451 }
452
453 protected resolve(params: { name: string; path: string }): RunnableMigration {
454 const createMigrationHandler = async (method: 'up' | 'down', afterRun?: (tx?: Transaction) => Promise<void>) => {

Callers

nothing calls this directly

Calls 4

createRunnerMethod · 0.45
createStorageMethod · 0.45
getNamingStrategyMethod · 0.45
getDefaultGeneratorMethod · 0.45

Tested by

no test coverage detected