cmd

package
v1.0.0-alpha11 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: AGPL-3.0 Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownCmd

func DownCmd(m *migrate.Migrate, limit int64) error

func GotoCmd

func GotoCmd(m *migrate.Migrate, v uint64, direction string) error

func ResetCmd

func ResetCmd(m *migrate.Migrate) error

func UpCmd

func UpCmd(m *migrate.Migrate, limit int64) error

Types

type CreateOptions

type CreateOptions struct {
	Version   int64
	Directory string
	Name      string
	IsCMD     bool
	MetaUp    []byte
	MetaDown  []byte
	SQLUp     []byte
	SQLDown   []byte
}

func New

func New(version int64, name, directory string) *CreateOptions

func (*CreateOptions) Create

func (c *CreateOptions) Create() error

func (*CreateOptions) Delete

func (c *CreateOptions) Delete() error

func (*CreateOptions) SetMetaDown

func (c *CreateOptions) SetMetaDown(data interface{}) error

func (*CreateOptions) SetMetaUp

func (c *CreateOptions) SetMetaUp(data interface{}) error

func (*CreateOptions) SetSQLDown

func (c *CreateOptions) SetSQLDown(data string) error

func (*CreateOptions) SetSQLUp

func (c *CreateOptions) SetSQLUp(data string) error

Jump to

Keyboard shortcuts

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