Discover Packages
github.com/molotovtv/go-astipatch
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: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
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
Expand ▾
Collapse ▴
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.