mysql

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusDeploying int8 = 0
	StatusDeployed  int8 = 1
	StatusVerified  int8 = 2
)

部署状态

Variables

This section is empty.

Functions

func Print added in v0.2.0

func Print(path string) error

Print 打印解析后的脚本

Types

type MySQL

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

MySQL 驱动引擎

func New

func New() *MySQL

New 创建一个新的引擎

func (*MySQL) Close

func (m *MySQL) Close()

Close 关闭连接

func (*MySQL) Connect

func (m *MySQL) Connect(params *manager.Params) (err error)

Connect 连接数据库

func (*MySQL) Deploy

func (m *MySQL) Deploy(plan *manager.Plan) error

Deploy 部署指定版本

func (*MySQL) Initiate

func (m *MySQL) Initiate(table string) error

Initiate 初始化日志表

func (*MySQL) ListLogs

func (m *MySQL) ListLogs() (logs []*manager.Log, err error)

ListLogs 获取版本更新历史

func (*MySQL) Revert

func (m *MySQL) Revert(plan *manager.Plan) error

Revert 回退指定版本

Jump to

Keyboard shortcuts

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