mysql

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 NewMySQLRepository(ctx context.Context, db database.Database, history_table *string) *MySQLRepository

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

Jump to

Keyboard shortcuts

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