Documentation
¶
Overview ¶
Package migration provides database schema migration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicTask ¶
type BasicTask struct {
// contains filtered or unexported fields
}
func (*BasicTask) CreateTime ¶
func (*BasicTask) Description ¶
type Task ¶
type Task interface {
CreateTime() time.Time
Name() string
Description() string
// Up does not need to commit or rollback, runner with handle it based on error
Up(tx *sql.Tx, a db.Adapter) error
// Down does not need to commit or rollback, runner with handle it based on error
Down(tx *sql.Tx, a db.Adapter) error
}
type TaskRunner ¶
type TaskRunner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(db *db.Wrapper) *TaskRunner
Click to show internal directories.
Click to hide internal directories.