Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDownMigration ¶
func RemoveRollbackStatements ¶
func RemoveRollbackStatements(content string, format MigrationFormat) string
Types ¶
type Migration ¶
type Migration struct {
FilePath string
Sequence int
Name string
Format MigrationFormat
UpSQL string
DownSQL string
Statements []string
}
func DiscoverMigrations ¶
func ParseMigration ¶
type MigrationFormat ¶
type MigrationFormat int
const (
Goose MigrationFormat = iota
)
func (MigrationFormat) String ¶
func (f MigrationFormat) String() string
Click to show internal directories.
Click to hide internal directories.