migrations

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrations

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

func NewMigrations

func NewMigrations(cfg *orm.OrmConfig, db *gorm.DB, mConf *MigrationsConfig) *Migrations

func (Migrations) Connect

func (m Migrations) Connect() (sqlDb *sql.DB, err error)

func (Migrations) Down

func (m Migrations) Down() (err error)

func (Migrations) Purge

func (m Migrations) Purge() (err error)

func (Migrations) Up

func (m Migrations) Up() (err error)

type MigrationsConfig

type MigrationsConfig struct {
	Source string
	Dir    string
}

func NewMigrationsConfig

func NewMigrationsConfig() *MigrationsConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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