migration

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sqlx.DB, opts *MigrationOpts) error

func MustMigrate

func MustMigrate(db *sqlx.DB, opts *MigrationOpts)

Types

type MigrationOpts

type MigrationOpts struct {
	SkipDropColumn bool
	DryRun         bool
}

type Migrator

type Migrator interface {
	Migrate(db *sqlx.DB, opt *MigrationOpts) error
}

Jump to

Keyboard shortcuts

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