package
2.2.3+incompatible
Repository: https://github.com/acls/migrate.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
IsEmpty returns true if the directory is empty.
LineColumnFromOffset reads data and returns line and column integer for a given offset.
LinesBeforeAndAfter reads n lines before and after a given line.
No description provided by the author
No description provided by the author
NewZipReader returns a new DumpReader.
NewZipWriter returns a new DumpWriter.
Parse parses the version.
ReadFilesBetween reads the previous and current files and returns the files needed to go from the previous version to the current version.
ReadMigrationFiles reads all migration files from a given path.
RemoveContents removes all the files/directories inside the passed in dir.

# Constants

TablesDir prefix for DumpWriter/DumpReader.

# Variables

V2 set to true to use version 2 for schema migrations which enables major versions.

# Structs

DirReader struct.
DirWriter struct.
File represents one file on disk.
No description provided by the author
MigrationFile represents both the UP and the DOWN migration file.
Opener struct.

# Interfaces

DumpReader interface.
DumpWriter interface.
No description provided by the author

# Type aliases

Files is a slice of Files.
MigrationFiles is a slice of MigrationFiles.
No description provided by the author
Openers is a list of openers.