migrateregister

package
v3.0.7-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrateAction

func GetMigrateAction(mType MigrateType) []func(ownerID string, mysql dbStorage.DI, mgo dbStorage.DI) error

func RegisterMigrateAction

func RegisterMigrateAction(f func(ownerID string, mysql dbStorage.DI, mgo dbStorage.DI) error, mType MigrateType)

Types

type MigrateLogic

type MigrateLogic struct {
	TableName string
}

type MigrateType

type MigrateType int
const (
	MigrateTypeCreateTable MigrateType = iota
	MigrateTypeAlterTable
	MigrateTypeDropTable

	MigrateTypeAddData
	MigrateTypeUpdateData
	MigrateTypeDelData
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL