migrate

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger added in v0.17.0

type Debugger interface {
	DbgPrint(format string, args ...any)
}

type MigrateOptions

type MigrateOptions struct {
	Environ  []string
	From     string
	To       string
	StepEnd  int
	Squeeze  bool
	LFS      bool
	Quiet    bool
	Verbose  bool
	Values   []string
	Debugger Debugger
}

type Migrator

type Migrator struct {
	Debugger
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(ctx context.Context, opts *MigrateOptions) (*Migrator, error)

func (*Migrator) Close

func (m *Migrator) Close() error

func (*Migrator) Execute

func (m *Migrator) Execute(ctx context.Context) error

type ProgressBar

type ProgressBar struct {
	// contains filtered or unexported fields
}

func NewBar

func NewBar(description string, total int, stepCurrent, stepEnd int, verbose bool) *ProgressBar

func (*ProgressBar) Add

func (b *ProgressBar) Add(n int)

func (*ProgressBar) Done

func (b *ProgressBar) Done()

Jump to

Keyboard shortcuts

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