Documentation
¶
Index ¶
- Constants
- Variables
- func GenScript(v int64, name string) (string, error)
- func GenScriptTimestamp(name string) (version int64, filename string, script string, err error)
- func WriteScript(v int64, name string, p string) error
- func WriteScriptTimestamp(name string, dir string) (version int64, outpath string, err error)
- type GlobLoader
- type Loader
- type Migration
- type Migrator
- type Store
Constants ¶
View Source
const ( UpTargetLatest = -1 DownTargetInitial = -1 )
Variables ¶
View Source
var ( ErrLocked = errors.New("version store is locked for writing") ErrInitialVersion = errors.New("initial version is current") )
Functions ¶
func GenScriptTimestamp ¶
Types ¶
type GlobLoader ¶
type GlobLoader struct {
Pattern string
}
type Migration ¶
Click to show internal directories.
Click to hide internal directories.