repository

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL