Documentation ¶
Index ¶
- type Migrator
- func (my *Migrator) Exec(ctx context.Context, query string, args ...interface{}) error
- func (pg *Migrator) Init(ctx context.Context) error
- func (my *Migrator) LockDB(ctx context.Context) error
- func (my *Migrator) SetVersion(ctx context.Context, version int) error
- func (my *Migrator) UnlockDB(ctx context.Context) error
- func (my *Migrator) Version(ctx context.Context) (version int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator to migrate MySQL.
func (*Migrator) SetVersion ¶
SetVersion is a method for Migrator interface.
Click to show internal directories.
Click to hide internal directories.