xphinx

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Table = "xphinx"
)

Variables

This section is empty.

Functions

func SetCommand

func SetCommand(_command string)

Types

type XPhinx

type XPhinx struct {
	// contains filtered or unexported fields
}

func New

func New(version string) *XPhinx

* 新建一条版本号:会通过数据库进行校验版本号是否存在

func (*XPhinx) Do

func (this *XPhinx) Do() error

执行命令

func (*XPhinx) Migrate

func (this *XPhinx) Migrate(migrate func(builder *xmysql.XBuilder) error) *XPhinx

func (*XPhinx) Rollback

func (this *XPhinx) Rollback(rollback func(builder *xmysql.XBuilder) error) *XPhinx

type XVersion

type XVersion struct {
	Id      uint32 `db:"id"`
	Version string `db:"version"`
	Addtime int64  `db:"addtime"`
	Date    string `db:"date"`
	Name    string `db:"name"`
}

Jump to

Keyboard shortcuts

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