Documentation
¶
Index ¶
- Variables
- type Control
- type Manager
- type Migration
- func (m *Migration) Down(fn func(c Control)) *Migration
- func (m Migration) IgnoreDatabase(names ...string) Migrator
- func (m Migration) Init() error
- func (m Migration) MustDown()
- func (m Migration) MustInit()
- func (m Migration) MustNew()
- func (m Migration) MustRun()
- func (m Migration) MustUp()
- func (m Migration) New() error
- func (m Migration) Run() error
- func (m *Migration) Up(fn func(c Control)) *Migration
- type Migrator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidDatabase = errors.New("invalid database") ErrorInvalidDir = errors.New("invalid directory") )
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
func (Migration) IgnoreDatabase ¶
Click to show internal directories.
Click to hide internal directories.