migrations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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
}

Migrations ...

func NewMigrations

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

NewMigrations ...

func (Migrations) Connect

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

Connect ...

func (Migrations) Down

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

Down ...

func (Migrations) Purge

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

Purge ...

func (Migrations) Up

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

Up ...

type MigrationsConfig

type MigrationsConfig struct {
	Source string
	Dir    string
}

MigrationsConfig ...

func NewMigrationsConfig

func NewMigrationsConfig() *MigrationsConfig

NewMigrationsConfig ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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