arctictern

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFiles added in v1.1.2

func GetFiles(relativePath string) ([]string, error)

func GetStatements added in v1.2.0

func GetStatements(raw string) []string

func GetVersion added in v1.1.2

func GetVersion(migrationFullPath string) int

func LoadFile added in v1.1.2

func LoadFile(fileFullPath string) (string, error)

func Migrate

func Migrate(db *sql.DB, migrationDir string) error

func Seed added in v1.2.0

func Seed(db *sql.DB, seedDir string) error

Types

type ByFileVersion added in v1.1.2

type ByFileVersion []string

func (ByFileVersion) Len added in v1.1.2

func (a ByFileVersion) Len() int

func (ByFileVersion) Less added in v1.1.2

func (a ByFileVersion) Less(i, j int) bool

func (ByFileVersion) Swap added in v1.1.2

func (a ByFileVersion) Swap(i, j int)

Jump to

Keyboard shortcuts

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