migration

package
v0.0.0-...-3c98ef5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegressionMigrator

type RegressionMigrator struct {
	// contains filtered or unexported fields
}

RegressionMigrator provides a struct to migrate regression data from regressions to regressions2 table.

func New

New returns a new instance of RegressionMigrator.

func (*RegressionMigrator) RunOneMigration

func (m *RegressionMigrator) RunOneMigration(batchSize int)

The helper function for RunPeriodicMigration to run a single iteration, with the proper handling on timeout.

func (*RegressionMigrator) RunPeriodicMigration

func (m *RegressionMigrator) RunPeriodicMigration(iterationPeriod time.Duration, batchSize int)

RunPeriodicMigration runs a goroutine that runs the migration with the provided batch size with a frequency specified by iterationPeriod.

Jump to

Keyboard shortcuts

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