database

package
Version: v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func M01FirstInstall

func M01FirstInstall(h *handler.Handler) error

M01FirstInstall func

func RunDBMigrate

func RunDBMigrate()

RunDBMigrate run DBMigrate

Types

type Migration

type Migration struct {
	DB *gorm.DB
}

Migration type

func NewMigration

func NewMigration(db *gorm.DB) *Migration

NewMigration new Migration

func (*Migration) Rollback

func (m *Migration) Rollback(mig base.IMigration) error

Rollback func

func (*Migration) Run

func (m *Migration) Run(mig base.IMigration) error

Run func

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL