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