package
Version:
v0.0.0-...-a3b5a27
Opens a new window with list of versions in this module.
Published: Jul 27, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var MigrationFields = []string{"project", "filename", "statement_index", "status"}
MigrationFields hold the database column names for Migration{}
List lists database migration filenames
Load reads migrations from disk
Print outputs database migrations for a project to log output
Run takes migrations for a project and executes them against a database
FS represents a mapping between filename => contents
NewFS returns a new FS instance
Migrations returns list of SQL files to execute
ReadFile returns decoded file contents from FS
type Migration struct {
Project string `db:"project"`
Filename string `db:"filename"`
StatementIndex int `db:"statement_index"`
Status string `db:"status"`
}
Migration holds the DB structure for the migration table
Options include migration options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.