conceptadev / typeorm-seeding

A simple but powerful database seeder for TypeORM ^0.3.0
https://www.npmjs.com/package/@concepta/typeorm-seeding
MIT License
12 stars 8 forks source link

Feature/initialization helper #6

Closed MrMaz closed 1 year ago

MrMaz commented 1 year ago

Initial improvements for: https://github.com/conceptadev/typeorm-seeding/issues/5

There is a new initialization helper that gets called automatically when running the seeders via CLI. If you are building a programmatic seed script, you can call SeederSource.initialize() manually as well.

Also added some helpers for easily retrieving Repositories from inside Seeder and Factory classes.

bquangDinh commented 1 year ago

Lovely!

MrMaz commented 1 year ago

Fixes https://github.com/conceptadev/typeorm-seeding/issues/5