Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

migration

v1.2.3
github.com/gomig/database/migration

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

5 matches

Top ↑

Functions

ExecuteScripts

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

ExecuteScripts execute named migration scripts

MigrationCommand

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

MigrationCommand get migration command

Types

MigrationScript

type MigrationScript struct {
	Name   string
	CMD    string
	IsSeed bool
}

Dependency graph