Documentation
¶
Index ¶
- func EnsureSupportedDbDriver() error
- func GetCsvString(queryResult types.QueryResult) string
- func GetDbGroupedDumpFiles(configFilePath string) (types.DbDumpFilesMap, error)
- func GetFormattedColumns(queryResult types.QueryResult) string
- func InitConfigFile(v *viper.Viper, configDirPath string, write bool) error
- func IsFirstTimeUser() bool
- func NewBranchFromCurrent(dbname string, onlySchema bool) error
- func PingDB() error
- func ReadConfig(v *viper.Viper, configFilePath string) error
- func SetCurrentBranch(branchname string) error
- func TmpSwitchConn(connConfig types.ConnConfig, fn func() error) error
- func TmpSwitchDB(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() error
func GetCsvString ¶
func GetCsvString(queryResult types.QueryResult) string
func GetDbGroupedDumpFiles ¶
func GetDbGroupedDumpFiles(configFilePath string) (types.DbDumpFilesMap, error)
func GetFormattedColumns ¶
func GetFormattedColumns(queryResult types.QueryResult) string
func IsFirstTimeUser ¶
func IsFirstTimeUser() bool
func NewBranchFromCurrent ¶ added in v0.5.1
func SetCurrentBranch ¶
func TmpSwitchConn ¶ added in v0.5.1
func TmpSwitchConn(connConfig types.ConnConfig, fn func() error) error
func TmpSwitchDB ¶ added in v0.5.1
takes in the currently active connection config to switch back to, dbname and function to run when connected to the "dbname" database. 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.