migrator

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TableMigration = "datastore_migration"

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	// Version returns -1 mean there is no active version
	Version() (uint, bool)
	// Steps looks at the currently active migration version.
	// It will migrate up if n > 0, and down if n < 0.
	Steps(n int) error
}

func New

func New(provider configuration.Provider) (Migrator, error)

func NewSql

func NewSql(conf *config.Config) (Migrator, error)

Jump to

Keyboard shortcuts

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