Closed TheMagicNacho closed 1 year ago
This sounds like functionality that should be done in a separate library and not as part of an ORM. Maybe an integration of the existing projects for seeding, like jaswdr/faker, with gorm, similar to datatypes, might be a better fit instead.
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days
Seeding seems to not be the responsibility of ORM, however, feel free to implement it as a plugin. https://gorm.io/docs/write_plugins.html
Describe the feature
I am proposing that Gorm has a built in Seeding method so that developers can quickly seed databases within gorm without having to re-create the functionality.
Example Proposed Usage:
Motivation
Seeding is a required process during the development process, and during platform migrations. Creating a seeding method will improve the developer's quality of life, and could increase the user-ship of GORM and GoLang as a whole.
Related Issues
Developers have asked if the functionality exists.
Issue 5274
Issue 1539
Some Developers have written Work around Tutorials
Tutorial