installer

package
v0.0.0-...-a35f291 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MIGRATION_MANAGER_ID = "MigrationManager"

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	ID   string
	Up   func(conn *sql.DB) error
	Down func(conn *sql.DB) error
}

func NewMigration

func NewMigration() *Migration

type MigrationList

type MigrationList struct {
	Migrations []Migration
}

func NewMigrationList

func NewMigrationList() *MigrationList

func (*MigrationList) GetByKey

func (self *MigrationList) GetByKey(key string) *Migration

func (*MigrationList) GetList

func (self *MigrationList) GetList() []string

func (*MigrationList) Register

func (self *MigrationList) Register(migrationTime time.Time, down func(*sql.DB) error, up func(*sql.DB) error)

func (*MigrationList) Set deprecated

func (self *MigrationList) Set(migrationTime string, down func(*sql.DB) error, up func(*sql.DB) error)

Deprecated: Set is deprecated.

type MigrationManager

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

func NewMigrationManager

func NewMigrationManager(registry *registry.Container) *MigrationManager

func RestoreMigrationManager

func RestoreMigrationManager(r *registry.Container) *MigrationManager

func (*MigrationManager) Check

func (self *MigrationManager) Check()

Jump to

Keyboard shortcuts

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