migrations

package
v0.0.0-...-64046f9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 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 Migrator

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

Migrator execute migrations.

func New

func New(db *sql.DB) *Migrator

New create a migrator.

func (*Migrator) Down

func (m *Migrator) Down(ctx context.Context) error

Down database migrations

func (*Migrator) Up

func (m *Migrator) Up(ctx context.Context) error

Up database migrations

Jump to

Keyboard shortcuts

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