migration

package
v0.0.0-...-79307e8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrate = &Migration{
	version: make(map[int]func(db *gorm.DB, version string) error),
}

Functions

func GetFilename

func GetFilename(s string) int

Types

type Migration

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

func (*Migration) GetDb

func (e *Migration) GetDb() *gorm.DB

func (*Migration) Migrate

func (e *Migration) Migrate()

func (*Migration) SetDb

func (e *Migration) SetDb(db *gorm.DB)

func (*Migration) SetVersion

func (e *Migration) SetVersion(k int, f func(db *gorm.DB, version string) error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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