migrate

package
v0.0.0-...-0d1a351 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(storeName string, operation string, opts MigrateOpts)

func Setup

func Setup() *cobra.Command

Types

type MigrateOpts

type MigrateOpts struct {
	TargetVersion int
}

type Migrater

type Migrater interface {
	Up() error
	Down() error
	To(version uint) error

	Force(version int) error
	Version() (uint, bool, error)
	List() ([]string, error)
	Close() error
	SetLogger(logger migrate.Logger)
}

Common migrater interface for stores

Jump to

Keyboard shortcuts

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