Documentation
¶
Index ¶
- func CwdIsProject() (string, bool, error)
- func EnsureDirExists(dirName string) (bool, error)
- func Exists(path string) bool
- func FindConfigDirPath() (string, error)
- func FindConfigFilePath() (string, error)
- func FindTmpDirPath() (string, error)
- func GenerateMigrationId(migrationsDirPath string, title string) (string, error)
- func GetAbsolutePathFor(relativePath string) (string, error)
- func GetConnConfigFromUri(uri string) (types.ConnConfig, error)
- func GetConnConfigFromViper(v *viper.Viper) (types.ConnConfig, error)
- func GetDbConfigOriginKey(originName string) string
- func GetDriverDumpDir(configFilePath string, driver string) string
- func GetDumpFileName(dbname string) string
- func GetGlobalConfigPath() string
- func GetGlobalDirPath() string
- func GetLocalConfigPath() string
- func GetMigrationsDir(configDirPath, dbname string) string
- func GetSQLStmts(sqlStr string) []string
- func GetTableFromId(tableid string) (string, string)
- func GetTableId(schemaname, tablename string) string
- func IsStmtBegin(line string) bool
- func IsStmtEnd(line string) bool
- func OpenFileInEditor(filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CwdIsProject ¶ added in v0.5.1
func EnsureDirExists ¶
returns "(true, nil)" if dir was created, else returns "(false, ...)"
func FindConfigDirPath ¶
func FindConfigFilePath ¶
func FindTmpDirPath ¶
func GenerateMigrationId ¶
returns "00069__title" or "00069"
func GetAbsolutePathFor ¶
func GetConnConfigFromUri ¶ added in v0.5.1
func GetConnConfigFromUri(uri string) (types.ConnConfig, error)
func GetConnConfigFromViper ¶ added in v0.5.1
func GetConnConfigFromViper(v *viper.Viper) (types.ConnConfig, error)
func GetDbConfigOriginKey ¶ added in v0.5.1
func GetDriverDumpDir ¶ added in v0.5.1
func GetDumpFileName ¶ added in v0.5.1
func GetGlobalConfigPath ¶ added in v0.5.1
func GetGlobalConfigPath() string
func GetGlobalDirPath ¶ added in v0.5.1
func GetGlobalDirPath() string
func GetLocalConfigPath ¶ added in v0.5.1
func GetLocalConfigPath() string
func GetMigrationsDir ¶
func GetSQLStmts ¶ added in v0.5.1
func GetTableFromId ¶
returns (schemaname, tablename) after taking in "schemaname.tablename"
func GetTableId ¶
func IsStmtBegin ¶ added in v0.5.1
func OpenFileInEditor ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.