db

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mysql *gorp.DbMap
View Source
var Versions []*DBVersion

Functions

func Connect

func Connect() error

Mysql database

func MigrateAll

func MigrateAll() error

Types

type DBVersion

type DBVersion struct {
	Major int
	Minor int
	Patch int
	Build string

	UpgradedDate *time.Time
	Notes        *string
}

func (*DBVersion) CheckExists

func (version *DBVersion) CheckExists() (bool, error)

func (*DBVersion) GetErrPath

func (version *DBVersion) GetErrPath() string

func (*DBVersion) GetPath

func (version *DBVersion) GetPath() string

func (*DBVersion) GetSQL

func (version *DBVersion) GetSQL(path string) []string

func (*DBVersion) HumanoidVersion

func (version *DBVersion) HumanoidVersion() string

func (*DBVersion) Run

func (version *DBVersion) Run() error

func (*DBVersion) TryRollback

func (version *DBVersion) TryRollback()

func (*DBVersion) VersionString

func (version *DBVersion) VersionString() string

Jump to

Keyboard shortcuts

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