cockroachdb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CockroachRepository

type CockroachRepository struct {
	database.Repository
	// contains filtered or unexported fields
}

func NewCockroachRepository

func NewCockroachRepository(ctx context.Context, db database.Database, history_table *string) *CockroachRepository

func (*CockroachRepository) AssertSchemaHistoryTable

func (r *CockroachRepository) AssertSchemaHistoryTable() error

func (*CockroachRepository) CheckSchemaHistoryTable

func (r *CockroachRepository) CheckSchemaHistoryTable() (bool, error)

func (*CockroachRepository) DoInLock

func (r *CockroachRepository) DoInLock(fn func() error) error

func (*CockroachRepository) DoInTransaction

func (r *CockroachRepository) DoInTransaction(fn func() error) error

func (*CockroachRepository) ExecuteHook

func (r *CockroachRepository) ExecuteHook(hook *migrations.Hook) error

func (*CockroachRepository) ExecuteMigration

func (r *CockroachRepository) ExecuteMigration(migration *migrations.Migration) []error

func (*CockroachRepository) GetFailingMigrations

func (r *CockroachRepository) GetFailingMigrations() ([]*migrations.Migration, error)

func (*CockroachRepository) GetLatestMigration

func (r *CockroachRepository) GetLatestMigration() (uint16, error)

func (*CockroachRepository) Repair

func (r *CockroachRepository) Repair(migrations []*migrations.Migration) []error

func (*CockroachRepository) RollbackMigration

func (r *CockroachRepository) RollbackMigration(migration *migrations.Migration) error

func (*CockroachRepository) ValidateMigrations

func (r *CockroachRepository) ValidateMigrations(migrations []*migrations.Migration) []error

Jump to

Keyboard shortcuts

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