Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2017 Changes in this version + func ExpandAll(ctx Context, expanders ...Expander) ([]string, error) + type ChangeLog struct + ChangeSets []*ChangeSet + LockTableName NullString + TableName NullString + Variables *vars.Variables + func NewChangeLogFile(path string) (*ChangeLog, error) + type ChangeSet struct + Author NullString + Changers []Changer + Id string + Name NullString + Tags []string + func (c *ChangeSet) Sha256Sum() ([]byte, error) + type Changer interface + DTO func() (dto.Changer, error) + Down func(ctx Context) ([]*Stmt, error) + Up func(ctx Context) ([]*Stmt, error) + type Column struct + Constraint *Constraint + Default NullString + IsNullable NullBool + Name string + Type string + type Constraint struct + IsPrimaryKey NullBool + IsUnique NullBool + PrimaryKeyName NullString + UniqueName NullString + type Context interface + Expand func(string) (string, error) + type CreateTable struct + Columns []*Column + IfNotExists NullBool + Name string + type Expander interface + Expand func(Context) (string, error) + type ExpanderFunc func(Context) (string, error) + func (ef ExpanderFunc) Expand(ctx Context) (string, error) + type NullBool struct + Bool bool + Raw string + Valid bool + func (nb *NullBool) DefaultExpander(def bool) Expander + type NullString struct + String string + Valid bool + func NewNullString(s *string) NullString + func (ns *NullString) DefaultExpander(def string) Expander + type RawSql struct + DownStmts []*Stmt + UpStmts []*Stmt + func (r *RawSql) DTO() (dto.Changer, error) + func (r *RawSql) Down(_ Context) ([]*Stmt, error) + func (r *RawSql) Up(_ Context) ([]*Stmt, error) + type Stmt struct + Args []interface{} + Raw string + func CollectChangersDown(ctx Context, changers ...Changer) ([]*Stmt, error) + func CollectChangersUp(ctx Context, changers ...Changer) ([]*Stmt, error) + type UnknownDTOChangerError struct + func (e *UnknownDTOChangerError) Error() string