Documentation ¶
Index ¶
- Variables
- func Migrate(filename string, prefix string, max int, verbose bool) error
- func Reset(filename string, prefix string, max int, verbose bool) (err error)
- type Changeset
- func (cs *Changeset) AddChange(line string)
- func (cs *Changeset) AddRollback(line string)
- func (cs *Changeset) Changes() string
- func (cs *Changeset) Checksum() string
- func (cs *Changeset) ParseHeader(line string) error
- func (cs *Changeset) Rollbacks() string
- func (cs *Changeset) SetFileInfo(filename string, description string, version string)
- type DBChangeset
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHeader is when the changeset header is invalid. ErrInvalidHeader = errors.New("invalid changeset header") // ErrInvalidFormat is when a changeset is not found. ErrInvalidFormat = errors.New("invalid changeset format") )
Functions ¶
Types ¶
type Changeset ¶
type Changeset struct {
// contains filtered or unexported fields
}
Changeset is a SQL changeset.
func (*Changeset) AddRollback ¶
AddRollback will add a rollback command.
func (*Changeset) ParseHeader ¶
ParseHeader will parse the header information.
Click to show internal directories.
Click to hide internal directories.