Documentation ¶ Index ¶ Variables func GenFile(system bool, path string) error func GetFilename(s string) int type Migration func (e *Migration) GetDb() *gorm.DB func (e *Migration) Migrate() func (e *Migration) SetDb(db *gorm.DB) func (e *Migration) SetVersion(k int, f func(db *gorm.DB, version string) error) Constants ¶ This section is empty. Variables ¶ View Source var FS embed.FS View Source var Migrate = &Migration{ version: make(map[int]func(db *gorm.DB, version string) error), } Functions ¶ func GenFile ¶ func GenFile(system bool, path string) error func GetFilename ¶ func GetFilename(s string) int Types ¶ type Migration ¶ type Migration struct { // contains filtered or unexported fields } func (*Migration) GetDb ¶ func (e *Migration) GetDb() *gorm.DB func (*Migration) Migrate ¶ func (e *Migration) Migrate() func (*Migration) SetDb ¶ func (e *Migration) SetDb(db *gorm.DB) func (*Migration) SetVersion ¶ func (e *Migration) SetVersion(k int, f func(db *gorm.DB, version string) error) Source Files ¶ View all Source files make.go Directories ¶ Show internal Expand all Path Synopsis models Click to show internal directories. Click to hide internal directories.