lib

package
v0.5.5 Latest Latest
Warning

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

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

Documentation

Index

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 InitConfigFile

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

func IsFirstTimeUser

func IsFirstTimeUser() bool

func NewBranchFromCurrent added in v0.5.1

func NewBranchFromCurrent(dbname string, onlySchema bool) error

func PingDB

func PingDB() error

func ReadConfig

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

func SetCurrentBranch

func SetCurrentBranch(branchname string) error

func TmpSwitchConn added in v0.5.1

func TmpSwitchConn(connConfig types.ConnConfig, fn func() error) error

func TmpSwitchDB added in v0.5.1

func TmpSwitchDB(dbname string, fn func() error) error

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

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