Documentation
¶
Index ¶
- 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 GetMigrationsDir(dbname string) (string, error)
- func GetTableFromId(tableid string) (string, string)
- func GetTableId(schemaname, tablename string) string
- func OpenFileInEditor(filePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetMigrationsDir ¶
func GetTableFromId ¶
returns (schemaname, tablename) after taking in "schemaname.tablename"
func GetTableId ¶
func OpenFileInEditor ¶
func OpenFileInEditor(filePath string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.