migration

package
v0.0.0-...-88540c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetFilename

func GetFilename(s string) string

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 string, 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