migranttask

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrantMake

type MigrantMake struct {
	FolderPath   string
	PackageName  string
	Logger       cbmigrant.Logger
	ErrorHandler cbmigrant.ErrorHandler
}

func (MigrantMake) GetGroup

func (m MigrantMake) GetGroup() string

func (MigrantMake) GetName

func (m MigrantMake) GetName() string

func (MigrantMake) GetSchedule

func (m MigrantMake) GetSchedule() string

func (MigrantMake) Run

func (m MigrantMake) Run() error

type MigrantMigrate

type MigrantMigrate struct {
	Db                        *gorm.DB
	CreateMigrantDatabaseFunc func(db *gorm.DB) error
	MigrantDatabaseName       string
	MigrantTableName          string
	Logger                    cbmigrant.Logger
	ErrorHandler              cbmigrant.ErrorHandler
}

func (MigrantMigrate) GetGroup

func (m MigrantMigrate) GetGroup() string

func (MigrantMigrate) GetName

func (m MigrantMigrate) GetName() string

func (MigrantMigrate) GetSchedule

func (m MigrantMigrate) GetSchedule() string

func (MigrantMigrate) Run

func (m MigrantMigrate) Run() error

type MigrantRollback

type MigrantRollback struct {
	Db                        *gorm.DB
	CreateMigrantDatabaseFunc func(db *gorm.DB) error
	MigrantDatabaseName       string
	MigrantTableName          string
	Logger                    cbmigrant.Logger
	ErrorHandler              cbmigrant.ErrorHandler
}

func (MigrantRollback) GetGroup

func (m MigrantRollback) GetGroup() string

func (MigrantRollback) GetName

func (m MigrantRollback) GetName() string

func (MigrantRollback) GetSchedule

func (m MigrantRollback) GetSchedule() string

func (MigrantRollback) Run

func (m MigrantRollback) Run() error

Jump to

Keyboard shortcuts

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