Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMigrationName ¶
ParseMigrationName parses the migration filename to extract table name and whether it's a create migration.
Types ¶
type MigrationInfo ¶ added in v0.4.0
type MigrationInfo struct {
TableName string
Type MigrationType
IsCreate bool // Backwards compatibility
}
MigrationInfo contains parsed migration information.
func ParseMigrationInfo ¶ added in v0.4.0
func ParseMigrationInfo(filename string) MigrationInfo
ParseMigrationInfo provides detailed migration information.
type MigrationType ¶ added in v0.4.0
type MigrationType int
MigrationType pattern types.
const ( MigrationTypeUnknown MigrationType = iota MigrationTypeCreate MigrationTypeUpdate )
Click to show internal directories.
Click to hide internal directories.