Documentation
¶
Index ¶
- func EnsureSupportedDbDriver()
- func GetCsvString(queryResult types.QueryResult) string
- func GetDbGroupedDumpFiles(configFilePath string) (types.DbDumpFilesMap, error)
- func GetDriverDumpDir(configPath string) string
- func GetFormattedColumns(queryResult types.QueryResult) string
- func InitConfigFile(v *viper.Viper, configPath string, write bool)
- func IsFirstTimeUser() bool
- func PingDB() error
- func ReadConfig(v *viper.Viper, configPath string) error
- func SetCurrentBranch(branchname string) error
- func SwitchDB(v *viper.Viper, dbname string, fn func() error) error
- func ValidateBranchName(branchname string) bool
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 GetFormattedColumns ¶
func GetFormattedColumns(queryResult types.QueryResult) string
func IsFirstTimeUser ¶
func IsFirstTimeUser() bool
func SetCurrentBranch ¶
func SwitchDB ¶
error can be returned if callback function errors or there is a connection error to the DB
func ValidateBranchName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.