migration

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBufferSize = 10_000
)

Variables

View Source
var (
	// ErrMigrationNotNeeded is returned if the database format is already at the target version
	ErrMigrationNotNeeded = errors.New("migration not needed")
)

Functions

func Migrate

func Migrate(logger log.Logger, sourceBeaconPath, beaconName string, storageTargetType chain.StorageType, pgDSN string, bufferSize int) error

Migrate runs the migration based on the input parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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