api

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrateController

type MigrateController interface {
	Migrate(...Option) error
	Upgrade(...Option) error
	Downgrade(...Option) error
	Stamp(...Option) error
	GetDbVersion(...Option) string
}

type MigrateInterface

type MigrateInterface interface {
	Run(db *gorm.DB) error
	RollBack(db *gorm.DB) error
	Version() string
	PreVersion() string
	Printer
}

type MigrateOut

type MigrateOut interface {
	Infoln(...interface{})
	Errorln(...interface{})
	Infof(string, ...interface{})
	Errorf(string, ...interface{})
}

type Option

type Option func(MigrateController)

type Printer

type Printer interface {
	Printf(MigrateOut)
	RPrintf(out MigrateOut)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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