migrate

package
v1.0.756 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecutableScripts added in v1.0.756

func GetExecutableScripts(pool *sql.DB) (map[string]string, map[string]string, error)

GetExecutableScripts returns functions & views that must be applied. It takes dependencies into account & excludes any unchanged scripts.

func RunMigrations added in v1.0.10

func RunMigrations(pool *sql.DB, config api.Config) error

Types

type DependencyMap added in v1.0.756

type DependencyMap map[string][]string

DependencyMap map holds path -> dependents

type MigrateOptions added in v1.0.94

type MigrateOptions struct {
	Skip        bool // Skip running migrations
	IgnoreFiles []string
}

Jump to

Keyboard shortcuts

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