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

Method seed

packages/seeder/src/SeedManager.ts:79–86  ·  view source on GitHub ↗
(...classNames: Constructor<Seeder>[])

Source from the content-addressed store, hash-verified

77 }
78
79 async seed(...classNames: Constructor<Seeder>[]): Promise<void> {
80 for (const SeederClass of classNames) {
81 const seeder = new SeederClass();
82 await seeder.run(this.#em);
83 await this.#em.flush();
84 this.#em.clear();
85 }
86 }
87
88 /**
89 * @internal

Callers 1

seedStringMethod · 0.95

Calls 3

runMethod · 0.65
clearMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected