migrations

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

This file takes Rambler parser to our project as Rambler is binary and cannot be imported. Copied from https://github.com/elwinar/rambler/raw/master/migration.go (0dcaf6b)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Name string
	// contains filtered or unexported fields
}

Migration represent a migration file, composed of up and down sections containing one or more statements each.

func NewMigration

func NewMigration(path string) (*Migration, error)

NewMigration generate a migration from the given file

func (Migration) Down

func (m Migration) Down() []string

Down return the down statements of the migration

func (Migration) Up

func (m Migration) Up() []string

Up return the up statements of the migration

Jump to

Keyboard shortcuts

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