Documentation
¶
Index ¶
- type MigrationHistoryRepository
- func (r *MigrationHistoryRepository) CreateHistoryTable() error
- func (r *MigrationHistoryRepository) GetExecutedScripts() ([]models.ScriptExecutionHistory, error)
- func (r *MigrationHistoryRepository) IsHistoryTableCreated() (bool, error)
- func (r *MigrationHistoryRepository) UpsertExecutedScript(script *models.ScriptExecutionHistory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationHistoryRepository ¶
type MigrationHistoryRepository struct {
// contains filtered or unexported fields
}
MigrationHistoryRepository handles migration history operations
func NewMigrationHistoryRepository ¶
func NewMigrationHistoryRepository(dbFactory *database.Factory) *MigrationHistoryRepository
NewMigrationHistoryRepository creates a new migration history repository
func (*MigrationHistoryRepository) CreateHistoryTable ¶
func (r *MigrationHistoryRepository) CreateHistoryTable() error
CreateHistoryTable creates the migration history table
func (*MigrationHistoryRepository) GetExecutedScripts ¶
func (r *MigrationHistoryRepository) GetExecutedScripts() ([]models.ScriptExecutionHistory, error)
GetExecutedScripts returns all executed scripts from the history table
func (*MigrationHistoryRepository) IsHistoryTableCreated ¶
func (r *MigrationHistoryRepository) IsHistoryTableCreated() (bool, error)
IsHistoryTableCreated checks if the migration history table exists
func (*MigrationHistoryRepository) UpsertExecutedScript ¶
func (r *MigrationHistoryRepository) UpsertExecutedScript(script *models.ScriptExecutionHistory) error
UpsertExecutedScript inserts or updates a script execution record
Click to show internal directories.
Click to hide internal directories.