libUtils

package
v0.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirExists

func EnsureDirExists(dirName string) (bool, error)

returns "(true, nil)" if dir was created, else returns "(false, ...)"

func Exists

func Exists(path string) bool

func FindConfigDirPath

func FindConfigDirPath() (string, error)

func FindConfigFilePath

func FindConfigFilePath() (string, error)

func FindTmpDirPath

func FindTmpDirPath() (string, error)

func GenerateMigrationId

func GenerateMigrationId(migrationsDirPath string, title string) (string, error)

returns "00069__title" or "00069"

func GetAbsolutePathFor

func GetAbsolutePathFor(relativePath string) (string, error)

func GetMigrationsDir

func GetMigrationsDir(dbname string) (string, error)

func GetTableFromId

func GetTableFromId(tableid string) (string, string)

returns (schemaname, tablename) after taking in "schemaname.tablename"

func GetTableId

func GetTableId(schemaname, tablename string) string

func OpenFileInEditor

func OpenFileInEditor(filePath string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL