migration

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GooseMigrator

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

func (GooseMigrator) Create

func (m GooseMigrator) Create(name string) error

func (GooseMigrator) Down

func (m GooseMigrator) Down() error

func (GooseMigrator) Fix

func (m GooseMigrator) Fix() error

func (GooseMigrator) Status

func (m GooseMigrator) Status() error

func (GooseMigrator) Up

func (m GooseMigrator) Up() error

type Migrator

type Migrator interface {
	Up() error
	Down() error
	Create(filename string) error
	Fix() error
	Status() error
}

func NewGooseMigrator

func NewGooseMigrator(db persistence.Database, config *config.AppConfig) (Migrator, error)

Jump to

Keyboard shortcuts

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