basemigrator

package
v0.0.0-...-e82cbcd Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMigrator

type BaseMigrator struct {
	Cfg    migrators.MigratorConfig
	Logger *zap.Logger
	DB     driver.Conn
}

func New

func New(cfg migrators.MigratorConfig, logger *zap.Logger) (*BaseMigrator, error)

func (*BaseMigrator) Close

func (m *BaseMigrator) Close() error

func (*BaseMigrator) Migrate

func (m *BaseMigrator) Migrate(ctx context.Context, database string, migrationFolder string) error

Jump to

Keyboard shortcuts

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