migrater

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package migrater contains logic for migrate data in database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(r *zergrepo.Repo) core.Migrater

New create new instance migrater.

Types

type Migrater

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

Migrater is responsible for data migration to the database.

func (*Migrater) Migrate

func (m *Migrater) Migrate(ctx context.Context, cfg core.Config, migrates []core.Migrate) error

Migrate sql requests.

Jump to

Keyboard shortcuts

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