Versions in this module Expand all Collapse all v0 v0.2.0 Mar 12, 2014 Changes in this version + var Driver func(tx *sql.Tx) Operation + var GitHubEnterpriseSupport = &Rev3 + var RenamePrivelegedToPrivileged = &Rev1 + type Migration struct + func New(db *sql.DB) *Migration + func (m *Migration) Add(rev ...Revision) *Migration + func (m *Migration) All() *Migration + func (m *Migration) Migrate() error + func (m *Migration) MigrateTo(target int64) error + type MigrationDriver struct + Tx *sql.Tx + type Operation interface + AddColumn func(tableName, columnSpec string) (sql.Result, error) + CreateTable func(tableName string, args []string) (sql.Result, error) + DropColumns func(tableName string, columnsToDrop []string) (sql.Result, error) + DropTable func(tableName string) (sql.Result, error) + Exec func(query string, args ...interface{}) (sql.Result, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + RenameColumns func(tableName string, columnChanges map[string]string) (sql.Result, error) + RenameTable func(tableName, newName string) (sql.Result, error) + func SQLite(tx *sql.Tx) Operation + type Rev1 struct + func (r *Rev1) Down(op Operation) error + func (r *Rev1) Revision() int64 + func (r *Rev1) Up(op Operation) error + type Rev3 struct + func (r *Rev3) Down(op Operation) error + func (r *Rev3) Revision() int64 + func (r *Rev3) Up(op Operation) error + type Revision interface + Down func(op Operation) error + Revision func() int64 + Up func(op Operation) error + type SQLiteDriver MigrationDriver + func (s *SQLiteDriver) AddColumn(tableName, columnSpec string) (sql.Result, error) + func (s *SQLiteDriver) CreateTable(tableName string, args []string) (sql.Result, error) + func (s *SQLiteDriver) DropColumns(tableName string, columnsToDrop []string) (sql.Result, error) + func (s *SQLiteDriver) DropTable(tableName string) (sql.Result, error) + func (s *SQLiteDriver) Exec(query string, args ...interface{}) (sql.Result, error) + func (s *SQLiteDriver) Query(query string, args ...interface{}) (*sql.Rows, error) + func (s *SQLiteDriver) QueryRow(query string, args ...interface{}) *sql.Row + func (s *SQLiteDriver) RenameColumns(tableName string, columnChanges map[string]string) (sql.Result, error) + func (s *SQLiteDriver) RenameTable(tableName, newName string) (sql.Result, error)