Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilPointer defines a nil pointer argument error ErrNilPointer = fmt.Errorf("invalid nil pointer") )
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao defines an object to the migration DAO instance responsible to manager the installed migrations.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator defines the structure of an application persistence layer migration manager.
func NewMigrator ¶
NewMigrator instantiates a new migration manager instance.
func (*Migrator) AddMigration ¶
AddMigration registers a migration into the migration manager
type Record ¶
type Record struct { ID uint `json:"id" xml:"id" gorm:"primaryKey"` Version int64 `json:"model" xml:"model"` CreatedAt time.Time `json:"createdAt" xml:"createdAt"` UpdatedAt time.Time `json:"updatedAt" xml:"updatedAt"` DeletedAt *time.Time `json:"deletedAt" xml:"deletedAt" sql:"index"` }
Record defines the rdb record that stores a migration.
Click to show internal directories.
Click to hide internal directories.