Documentation
¶
Index ¶
- func AddMigrate(mi migplug.MigrateInterface)
- func Create(ctx context.Context, mi migplug.MigrateInterface)
- func Has(ctx context.Context, id uint64) (bool, error)
- func LoadPlugin(driverName, dsn, path string, t MigrateType) error
- func Migrate(ctx context.Context, t MigrateType)
- func Show(driverName, dsn, path string) error
- type MigrateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMigrate ¶
func AddMigrate(mi migplug.MigrateInterface)
func LoadPlugin ¶
func LoadPlugin(driverName, dsn, path string, t MigrateType) error
func Migrate ¶
func Migrate(ctx context.Context, t MigrateType)
Types ¶
type MigrateType ¶
type MigrateType byte
const ( Type_Up MigrateType = 1 Type_Down MigrateType = 2 )
Click to show internal directories.
Click to hide internal directories.