Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDownMigration ¶
IsDownMigration reports whether down migration.
func RemoveRollbackStatements ¶
func RemoveRollbackStatements(content string, format MigrationFormat) string
RemoveRollbackStatements performs remove rollback statements.
Types ¶
type Migration ¶
type Migration struct {
FilePath string
Sequence int
Name string
Format MigrationFormat
UpSQL string
DownSQL string
Statements []string
}
Migration represents migration.
func DiscoverMigrations ¶
DiscoverMigrations performs discover migrations.
func ParseMigration ¶
ParseMigration parses migration.
type MigrationFormat ¶
type MigrationFormat int
MigrationFormat represents migration format.
const ( // Goose is a constant value for goose. Goose MigrationFormat = iota )
func (MigrationFormat) String ¶
func (f MigrationFormat) String() string
String performs the string operation.
Click to show internal directories.
Click to hide internal directories.