migrator

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Unlicense Imports: 1 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 interface {
	// Migrate a database to a version and returning the database logs.
	Migrate(ctx context.Context, source, db string, version uint64) ([]string, error)

	// Ping the migrator.
	Ping(ctx context.Context, source, db string) error
}

Migrator will migrate databases.

Jump to

Keyboard shortcuts

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