db

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrateMgr

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

func NewMigrateMgr

func NewMigrateMgr(db *sql.DB, dbType string) *MigrateMgr

func (*MigrateMgr) ApplyRequiredMigrations

func (m *MigrateMgr) ApplyRequiredMigrations() (int, int, error)

func (*MigrateMgr) CheckIfMigrationIsRequired

func (m *MigrateMgr) CheckIfMigrationIsRequired() (int, error)

func (*MigrateMgr) GetLastMigrationInstalled

func (m *MigrateMgr) GetLastMigrationInstalled() (int, error)

func (*MigrateMgr) LoadMigrations

func (m *MigrateMgr) LoadMigrations() error

Jump to

Keyboard shortcuts

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