Skip to main content
Version: 5.9

SeedManager

Implements

  • ISeedManager

Index

Constructors

constructor

  • new SeedManager(em: EntityManager<IDatabaseDriver<Connection>>): SeedManager
  • Parameters

    • em: EntityManager<IDatabaseDriver<Connection>>

    Returns SeedManager

Methods

createSeeder

  • createSeeder(className: string): Promise<string>
  • Parameters

    • className: string

    Returns Promise<string>

seed

  • seed(...classNames: Constructor<Seeder<Dictionary>>[]): Promise<void>
  • Parameters

    • rest...classNames: Constructor<Seeder<Dictionary>>[]

    Returns Promise<void>

staticregister

  • register(orm: MikroORM<IDatabaseDriver<Connection>>): void
  • Parameters

    • orm: MikroORM<IDatabaseDriver<Connection>>

    Returns void

Page Options