sqlite3

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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