Documentation
¶
Index ¶
- type MySQLRepository
- func (r *MySQLRepository) AssertSchemaHistoryTable() error
- func (r *MySQLRepository) CheckSchemaHistoryTable() (bool, error)
- func (r *MySQLRepository) DoInLock(fn func() error) error
- func (r *MySQLRepository) DoInTransaction(fn func() error) error
- func (r *MySQLRepository) ExecuteHook(hook *migrations.Hook) error
- func (r *MySQLRepository) ExecuteMigration(migration *migrations.Migration) []error
- func (r *MySQLRepository) GetFailingMigrations() ([]*migrations.Migration, error)
- func (r *MySQLRepository) GetLatestMigration() (uint16, error)
- func (r *MySQLRepository) Repair(migrations []*migrations.Migration) []error
- func (r *MySQLRepository) RollbackMigration(migration *migrations.Migration) error
- func (r *MySQLRepository) ValidateMigrations(migrations []*migrations.Migration) []error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLRepository ¶
type MySQLRepository struct {
database.Repository
// contains filtered or unexported fields
}
func NewMySQLRepository ¶
func (*MySQLRepository) AssertSchemaHistoryTable ¶
func (r *MySQLRepository) AssertSchemaHistoryTable() error
func (*MySQLRepository) CheckSchemaHistoryTable ¶
func (r *MySQLRepository) CheckSchemaHistoryTable() (bool, error)
func (*MySQLRepository) DoInLock ¶
func (r *MySQLRepository) DoInLock(fn func() error) error
func (*MySQLRepository) DoInTransaction ¶
func (r *MySQLRepository) DoInTransaction(fn func() error) error
func (*MySQLRepository) ExecuteHook ¶
func (r *MySQLRepository) ExecuteHook(hook *migrations.Hook) error
func (*MySQLRepository) ExecuteMigration ¶
func (r *MySQLRepository) ExecuteMigration(migration *migrations.Migration) []error
func (*MySQLRepository) GetFailingMigrations ¶
func (r *MySQLRepository) GetFailingMigrations() ([]*migrations.Migration, error)
func (*MySQLRepository) GetLatestMigration ¶
func (r *MySQLRepository) GetLatestMigration() (uint16, error)
func (*MySQLRepository) Repair ¶
func (r *MySQLRepository) Repair(migrations []*migrations.Migration) []error
func (*MySQLRepository) RollbackMigration ¶
func (r *MySQLRepository) RollbackMigration(migration *migrations.Migration) error
func (*MySQLRepository) ValidateMigrations ¶
func (r *MySQLRepository) ValidateMigrations(migrations []*migrations.Migration) []error
Click to show internal directories.
Click to hide internal directories.