migrations

package
v0.0.0-...-4aad9a5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NewSqlDbError           = "MR00001"
	NewDbDriverError        = "MR00002"
	NewMigrateInstanceError = "MR00003"
	MigrateError            = "MR00004"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaManager

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

func New

func New(rootDir string, config *config.PgConfig, logger *zap.SugaredLogger) (*SchemaManager, *e.ErrorData)

func (*SchemaManager) Migrate

func (sm *SchemaManager) Migrate() *e.ErrorData

func (*SchemaManager) RollBack

func (sm *SchemaManager) RollBack()

func (*SchemaManager) Stop

func (sm *SchemaManager) Stop()

Jump to

Keyboard shortcuts

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