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