Documentation
¶
Index ¶
- Variables
- func Convert(inputPath, outputDir, baseYear string) (string, error)
- func ConvertAndMigrate(cfg *Config) error
- func ConvertFlywayToGoose(in io.Reader) (string, error)
- func CopyMigrateTable(driver string, db *sql.DB, flywayTable string, gooseliteTable string, ...) error
- func IsTableAlreadyExists(err error) bool
- func RunMain()
- func Split(in io.Reader) ([]string, error)
- func SplitByDelimiter(r io.Reader, prefix string) ([]string, []bool)
- type Config
- type Token
- type TokenType
- type Tokenizer
Constants ¶
This section is empty.
Variables ¶
View Source
var SqlHandleHooks []func(string) (string, error)
Functions ¶
func ConvertAndMigrate ¶
func ConvertFlywayToGoose ¶
ConvertFlywayToGoose 将 Flyway SQL 转换为 Goose SQL 格式
func CopyMigrateTable ¶
func CopyMigrateTable( driver string, db *sql.DB, flywayTable string, gooseliteTable string, baseYear string, ) error
CopyMigrateTable copies Flyway migration records into gooselite's version table.
func IsTableAlreadyExists ¶
IsTableAlreadyExists reports whether the given error indicates that a table already exists.
Types ¶
Click to show internal directories.
Click to hide internal directories.