migrator

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

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 4 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 struct {
	// contains filtered or unexported fields
}

Migrator represents the component responsible for running migrations on bolt db

func NewMigrator

func NewMigrator(db *boltdb.Bolt) *Migrator

NewMigrator returns a new instance of migrator

func (*Migrator) RunMigrations

func (m *Migrator) RunMigrations(sequence []migrations.Migration) error

RunMigrations runs the given sequence of migrations

Jump to

Keyboard shortcuts

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