migrator

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	ID   string
	Desc string
	Up   []si.Action
	Down []si.Action
}

Migration entity

type Migrator

type Migrator struct {
	MigratorIf
}

func (Migrator) OnError

func (m Migrator) OnError()

type MigratorIf

type MigratorIf interface {
	PrepData()
	ExecOps()
	Rollback()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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