Documentation ¶
Index ¶
- func DownCmd(m *migrate.Migrate, limit int64) error
- func GotoCmd(m *migrate.Migrate, v uint64, direction string) error
- func GotoVersionCmd(m *migrate.Migrate, gotoVersion int64) error
- func SquashCmd(m *migrate.Migrate, from uint64, version int64, name, directory string) (versions []int64, err error)
- func UpCmd(m *migrate.Migrate, limit int64) error
- type CreateOptions
- func (c *CreateOptions) Create() error
- func (c *CreateOptions) Delete() error
- func (c *CreateOptions) SetMetaDown(data interface{}) error
- func (c *CreateOptions) SetMetaUp(data interface{}) error
- func (c *CreateOptions) SetMetaUpFromFile(filePath string) error
- func (c *CreateOptions) SetSQLDown(data string) error
- func (c *CreateOptions) SetSQLUp(data string) error
- func (c *CreateOptions) SetSQLUpFromFile(filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct { Version string Directory string Name string 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) SetMetaUpFromFile ¶
func (c *CreateOptions) SetMetaUpFromFile(filePath string) error
func (*CreateOptions) SetSQLDown ¶
func (c *CreateOptions) SetSQLDown(data string) error
func (*CreateOptions) SetSQLUp ¶
func (c *CreateOptions) SetSQLUp(data string) error
func (*CreateOptions) SetSQLUpFromFile ¶
func (c *CreateOptions) SetSQLUpFromFile(filePath string) error
Click to show internal directories.
Click to hide internal directories.