dbumppg

package module
v0.0.0-...-982d805 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 3 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
}

func NewMigrator

func NewMigrator(db *sql.DB) *Migrator

func (*Migrator) Exec

func (m *Migrator) Exec(ctx context.Context, query string, args ...interface{}) error

func (*Migrator) Lock

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

func (*Migrator) SetVersion

func (m *Migrator) SetVersion(ctx context.Context, version int) error

func (*Migrator) Unlock

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

func (*Migrator) Version

func (m *Migrator) Version(ctx context.Context) (version int, err error)

Jump to

Keyboard shortcuts

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