lib

package
v0.4.9 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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSupportedDbDriver

func EnsureSupportedDbDriver()

func GetCsvString

func GetCsvString(queryResult types.QueryResult) string

func GetDbGroupedDumpFiles

func GetDbGroupedDumpFiles(configFilePath string) (types.DbDumpFilesMap, error)

func GetDriverDumpDir

func GetDriverDumpDir(configPath string) string

func GetFormattedColumns

func GetFormattedColumns(queryResult types.QueryResult) string

func InitConfigFile

func InitConfigFile(v *viper.Viper, configPath string, write bool)

func IsFirstTimeUser

func IsFirstTimeUser() bool

func PingDB

func PingDB() error

func ReadConfig

func ReadConfig(v *viper.Viper, configPath string) error

func SetCurrentBranch

func SetCurrentBranch(branchname string) error

func SwitchDB

func SwitchDB(v *viper.Viper, dbname string, fn func() error) error

error can be returned if callback function errors or there is a connection error to the DB

func ValidateBranchName

func ValidateBranchName(branchname string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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