migration

package
v0.0.0-...-52d38b8 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrate

type Migrate interface {
	Migrate() error
	Revert() error
	Commit() error
}

type Migration

type Migration interface {
	// Should return the summary of the migration
	Name() string
	Apply(conn *agoradb.Client, migrations ...Migrate) error
	Revert(migrations ...Migrate) error
}

func New

func New(change string) Migration

Jump to

Keyboard shortcuts

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