migrate

package
v0.0.0-...-ac311e6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GolangMigrate

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

func (GolangMigrate) Create

func (m GolangMigrate) Create(ctx context.Context, name string) error

func (GolangMigrate) Down

func (m GolangMigrate) Down(_ context.Context) error

func (GolangMigrate) Fix

func (m GolangMigrate) Fix(_ context.Context, version int) error

func (GolangMigrate) Up

type Migrate

type Migrate interface {
	Create(ctx context.Context, name string) error
	Up(ctx context.Context) error
	Down(ctx context.Context) error
	Fix(ctx context.Context, version int) error
}

func NewGolangMigrate

func NewGolangMigrate(
	config configs.Config,
) Migrate

func ProviderSet

func ProviderSet(
	config configs.Config,
	data repository.DataSqlManager,
) Migrate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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