Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMigrateExecutor ¶
type IMigrateExecutor interface { Migrate(version int64) error Up() error Down() error Create(fileName string) error Close() error }
func New ¶
func New(source, database string) (IMigrateExecutor, error)
type MigrateExecutor ¶
type MigrateExecutor struct {
// contains filtered or unexported fields
}
func (*MigrateExecutor) Close ¶
func (m *MigrateExecutor) Close() error
func (*MigrateExecutor) Create ¶
func (m *MigrateExecutor) Create(fileName string) error
func (*MigrateExecutor) Down ¶
func (m *MigrateExecutor) Down() error
func (*MigrateExecutor) Migrate ¶
func (m *MigrateExecutor) Migrate(version int64) error
func (*MigrateExecutor) Up ¶
func (m *MigrateExecutor) Up() error
Click to show internal directories.
Click to hide internal directories.