migrator

package
v0.0.0-...-cb15a4f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Migration string    `pg:"migration"`
	CreatedAt time.Time `pg:"created_at"`
}

type Migrator

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

func (*Migrator) Down

func (m *Migrator) Down() error

func (*Migrator) Up

func (m *Migrator) Up() error

type Migrators

type Migrators interface {
	Up() error
	Down() error
}

func New

func New(database *gorm.DB, path string) Migrators

Jump to

Keyboard shortcuts

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