Documentation ¶
Index ¶
- func GetFiles(relativePath string) ([]string, error)
- func GetStatements(raw string) []string
- func GetVersion(migrationFullPath string) int
- func LoadFile(fileFullPath string) (string, error)
- func Migrate(db *sql.DB, migrationDir string) error
- func Seed(db *sql.DB, seedDir string) error
- type ByFileVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatements ¶ added in v1.2.0
func GetVersion ¶ added in v1.1.2
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)
Click to show internal directories.
Click to hide internal directories.