Documentation ¶
Index ¶
- type MigrationCmd
- func (mc *MigrationCmd) AddMigration(m ...*gormigrate.Migration)
- func (mc *MigrationCmd) AddSeed(sf ...seed.SeedFunc)
- func (mc *MigrationCmd) Migrate() error
- func (mc *MigrationCmd) MigrationLen() int
- func (mc *MigrationCmd) Refresh() error
- func (mc *MigrationCmd) Rollback(migrationId string) error
- func (mc *MigrationCmd) Seed() error
- func (mc *MigrationCmd) SeedlLen() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationCmd ¶
type MigrationCmd struct { MigrationCollection []*gormigrate.Migration SeedCollection []seed.SeedFunc }
MigrationCmd migration cmd MigrationCollection migration collections SeedCollection data seed collection
func (*MigrationCmd) AddMigration ¶
func (mc *MigrationCmd) AddMigration(m ...*gormigrate.Migration)
AddMigration add *gormigrate.Migration
func (*MigrationCmd) AddSeed ¶
func (mc *MigrationCmd) AddSeed(sf ...seed.SeedFunc)
AddSeed add SeedFunc
func (*MigrationCmd) MigrationLen ¶
func (mc *MigrationCmd) MigrationLen() int
MigrationLen length of MigrationCollection
func (*MigrationCmd) Rollback ¶
func (mc *MigrationCmd) Rollback(migrationId string) error
Rollback roolback migrations
func (*MigrationCmd) SeedlLen ¶
func (mc *MigrationCmd) SeedlLen() int
SeedlLen length of SeedCollection
Click to show internal directories.
Click to hide internal directories.