Documentation ¶
Index ¶
- type CustomTime
- type MigrationModel
- type MigrationState
- type Version
- func (v Version) Equals(version Version) bool
- func (v Version) LessOrEqual(version Version) bool
- func (v Version) LessThan(version Version) bool
- func (v Version) MoreOrEqual(version Version) bool
- func (v Version) MoreThan(version Version) bool
- func (v *Version) Scan(value interface{}) error
- func (v Version) String() string
- func (v Version) Value() (driver.Value, error)
- type VersionModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTime ¶ added in v0.0.5
func (CustomTime) MarshalJson ¶ added in v0.0.5
func (c CustomTime) MarshalJson() ([]byte, error)
func (*CustomTime) Scan ¶ added in v0.0.5
func (c *CustomTime) Scan(value interface{}) error
type MigrationModel ¶
type MigrationModel struct { Id uint32 `gorm:"primaryKey"` Rank int Type string Version Version Description string RegisteredOn CustomTime `gorm:"type:datetime"` ExecutedOn *CustomTime `gorm:"type:datetime"` Checksum string State MigrationState }
func (MigrationModel) TableName ¶
func (v MigrationModel) TableName() string
type MigrationState ¶
type MigrationState string
const ( StateSuccess MigrationState = "success" StateFailure MigrationState = "failure" StateUndone MigrationState = "undone" StateRegistered MigrationState = "registered" StateSkipped MigrationState = "skipped" StateNotFound MigrationState = "not found" )
type Version ¶ added in v0.1.5
func ParseVersion ¶ added in v0.1.5
func (Version) LessOrEqual ¶ added in v0.1.5
func (Version) MoreOrEqual ¶ added in v0.1.5
type VersionModel ¶
type VersionModel struct {
Version Version
}
func (VersionModel) TableName ¶
func (v VersionModel) TableName() string
Click to show internal directories.
Click to hide internal directories.