migrate

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCouldNotFindConnection = errors.New("could not find connection by name")
	ErrNotEnoughArgs          = errors.New("not enough args, please specify direction p.e ox pop migrate up")
	ErrInvalidInstruction     = errors.New("invalid instruction for migrate command")
)

Functions

func Plugins added in v0.4.1

func Plugins(migrations packd.Box) []plugins.Plugin

Types

type Command added in v0.4.1

type Command struct {
	*Logger
	// contains filtered or unexported fields
}

func (*Command) Flags added in v0.6.3

func (m *Command) Flags() *pflag.FlagSet

func (Command) HelpText added in v0.4.1

func (m Command) HelpText() string

HelpText returns the help Text of build function

func (*Command) Name added in v0.4.1

func (m *Command) Name() string

func (*Command) ParentName added in v0.4.1

func (m *Command) ParentName() string

func (*Command) ParseFlags added in v0.6.3

func (m *Command) ParseFlags(args []string)

func (*Command) Run added in v0.4.1

func (m *Command) Run(ctx context.Context, root string, args []string) error

func (*Command) RunBeforeTest added in v0.6.3

func (mu *Command) RunBeforeTest(ctx context.Context, root string, args []string) error

func (*Command) RunDown added in v0.6.3

func (mu *Command) RunDown() error

RunDown will run migrations on the current folder, it will look for the migrations folder and attempt to run the migrations using internal pop tooling

func (*Command) RunUp added in v0.6.3

func (mu *Command) RunUp() error

Run will run migrations on the current folder, it will look for the migrations folder and attempt to run the migrations using internal pop tooling

type Logger added in v0.5.1

type Logger struct{}

func (*Logger) Log added in v0.5.1

func (l *Logger) Log(lvl logging.Level, s string, args ...interface{})

Jump to

Keyboard shortcuts

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