migration

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteScripts added in v1.1.2

func ExecuteScripts(db *sqlx.DB, commands []MigrationScript) error

ExecuteScripts execute named migration scripts

func MigrationCommand

func MigrationCommand(resolver func(driver string) *sqlx.DB, defDriver string, migDir string, seedDir string) *cobra.Command

MigrationCommand get migration command

Types

type MigrationScript added in v1.1.2

type MigrationScript struct {
	Name   string
	CMD    string
	IsSeed bool
}

Jump to

Keyboard shortcuts

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