migratory

package module
Version: v0.0.0-...-4f5be53 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: ISC Imports: 5 Imported by: 0

README

migratory

GoDoc

status: incomplete

MIGRATORY_DSN=mysql://root:sekure@/test migratory -h
Usage of migratory:
  -dir string
	  path to migrations directory (default "migrations")
  -dryrun
	  dry run mode
  -dsn string
	  DSN for database connection
  -target string
	  target database state to move to (default "latest")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration string

type Migratory

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

func New

func New(path, DSN, target string) (*Migratory, error)

func (*Migratory) Run

func (m *Migratory) Run(dryRun bool) error

type Plan

type Plan struct {
	Forwards  []Migration
	Backwards []Migration
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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