Documentation
¶
Overview ¶
Package migrator is a lightweight database migrator package, pass only the *sql.DB, migrate, rollback and migration reports
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBMigrator ¶ added in v1.1.28
type DBMigrator interface {
SubscribeToMessages(callback messager.CallbackFunc)
Rollback(count int) error
Refresh() error
Migrate(count int) error
Report() (string, error)
AddNewMigrationFiles(customText string) error
ChecksumValidation() []string
SaveBaseline(files ...string) error
LoadBaseline(files ...string) error
}
DBMigrator encapsulates migrator functions
Directories
¶
| Path | Synopsis |
|---|---|
|
Main package is to display basic package info
|
Main package is to display basic package info |
|
Package config contains publicly available configuration values
|
Package config contains publicly available configuration values |
|
internal
|
|
|
baseliner
Package baseliner saves and restores current database structure
|
Package baseliner saves and restores current database structure |
|
dbtypemanager
Package dbtypemanager contains constants and shared functions to determine specifics for a db type
|
Package dbtypemanager contains constants and shared functions to determine specifics for a db type |
|
helper
Package helper contains variable helper functions can be used across packages
|
Package helper contains variable helper functions can be used across packages |
|
messager
Package messager receives a message and calls back a callback
|
Package messager receives a message and calls back a callback |
|
migrate
Package migrate is the main internal package of the migrator
|
Package migrate is the main internal package of the migrator |
|
migrationfile
Package migrationfile manages migration file creation
|
Package migrationfile manages migration file creation |
Click to show internal directories.
Click to hide internal directories.