Documentation ¶
Index ¶
- type Executor
- type Migration
- func (d *Migration) Down() *dbx.Query
- func (d *Migration) DownQuery(query *dbx.Query) *Migration
- func (d *Migration) DownSql(sql string) *Migration
- func (d *Migration) Name() string
- func (d *Migration) Up() *dbx.Query
- func (d *Migration) UpQuery(query *dbx.Query) *Migration
- func (d *Migration) UpSql(sql string) *Migration
- type MigrationDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { TableName string LogFunc dbx.LogFunc // contains filtered or unexported fields }
func NewExecutor ¶
func NewExecutor(db *dbx.DB) *Executor
func (*Executor) Add ¶
func (m *Executor) Add(d MigrationDescriptor) *Executor
func (*Executor) NewMigration ¶
Creates new Description and adds it to migrations
type MigrationDescriptor ¶
type MigrationDescriptor interface { Name() string Up() *dbx.Query Down() *dbx.Query }
MigrationDescriptor interface
Click to show internal directories.
Click to hide internal directories.