package
module
Version:
v0.0.0-...-775d4d0
Opens a new window with list of versions in this module.
Published: May 27, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
About
TODO
Examples
SQL
Run the following commands :
$ go run examples/sql/main.go init -db-addr <the db addr> -db-name <the db name> -db-password <your value> -db-username <your value> -v
$ go run examples/sql/main.go patch -db-addr <the db addr> -db-name <the db name> -db-password <your value> -db-username <your value> -v -astipatch-patches-directory-path examples/sql/patches/step1
$ go run examples/sql/main.go patch -db-addr <the db addr> -db-name <the db name> -db-password <your value> -db-username <your value> -v -astipatch-patches-directory-path examples/sql/patches/step2
$ go run examples/sql/main.go rollback -db-addr <the db addr> -db-name <the db name> -db-password <your value> -db-username <your value> -v -astipatch-patches-directory-path examples/sql/patches/step2
$ go run examples/sql/main.go rollback -db-addr <the db addr> -db-name <the db name> -db-password <your value> -db-username <your value> -v -astipatch-patches-directory-path examples/sql/patches/step2
Documentation
¶
View Source
var (
PatchesDirectoryPath = flag.String("astipatch-patches-directory-path", "", "the patches directory path")
)
Flags
type Configuration struct {
PatchesDirectoryPath string `toml:"patches_directory_path"`
}
Configuration represents the patcher configuration
FlagConfig generates a Configuration based on flags
Patcher represents an object capable of patching
NewPatcherSQL creates a new SQL patcher
Storer represents an object capable of storing patch's state
NewStorerSQL creates a new SQL storer
Source Files
¶
Directories
¶
examples
|
|
|
|
Click to show internal directories.
Click to hide internal directories.