migrations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	Up Direction = iota
	Down
)

type PgMigration

type PgMigration struct {
	User       string
	Password   string
	Database   string
	Host       string
	Port       int
	Limit      int
	TableName  string
	SchemaName string
	// contains filtered or unexported fields
}

func (*PgMigration) Down

func (o *PgMigration) Down() ([]string, error)

func (*PgMigration) NewMigration

func (o *PgMigration) NewMigration(name string) (string, error)

func (*PgMigration) SetMigrationDir

func (o *PgMigration) SetMigrationDir(dir string) *PgMigration

func (*PgMigration) Up

func (o *PgMigration) Up() ([]string, error)

Jump to

Keyboard shortcuts

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