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, gooseTable string, ...) error
- func IsTableAlreadyExists(err error) bool
- func IsTableNotExists(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, gooseTable string, baseYear string, ) error
重命名函数:CopyMigrateTable
func IsTableAlreadyExists ¶
func IsTableNotExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.