Documentation ¶
Index ¶
- Constants
- func ColumnNames(columns []*sql.ColumnType) []string
- func ColumnValueAsString(val interface{}, colType *sql.ColumnType) (result string, err error)
- func ColumnValuesAsString(values []interface{}, columns []*sql.ColumnType) ([]string, error)
- func ParseJSONOutputColumnValue(val interface{}, colType *sql.ColumnType) (interface{}, error)
- func PrintInstallReports(reports []InstallReport, isUpdateReport bool)
- func ShowOutput(result *results.QueryResult)
- func ShowPaged(content string)
- func ShowWrappedTable(headers []string, rows [][]string, autoMerge bool)
- type InstallReport
Constants ¶
View Source
const ALREADY_INSTALLED = "Already installed"
View Source
const LATEST_ALREADY_INSTALLED = "Latest already installed"
View Source
const NOT_INSTALLED = "Not installed"
Variables ¶
This section is empty.
Functions ¶
func ColumnNames ¶
func ColumnNames(columns []*sql.ColumnType) []string
ColumnNames :: extract names from columns
func ColumnValueAsString ¶
func ColumnValueAsString(val interface{}, colType *sql.ColumnType) (result string, err error)
ColumnValueAsString :: convert column value to string
func ColumnValuesAsString ¶
func ColumnValuesAsString(values []interface{}, columns []*sql.ColumnType) ([]string, error)
ColumnValuesAsString :: converts a slice of columns into strings
func ParseJSONOutputColumnValue ¶ added in v0.1.2
func ParseJSONOutputColumnValue(val interface{}, colType *sql.ColumnType) (interface{}, error)
segregate data types, ignore string conversion for certain data types : JSON, JSONB, BOOL and so on..
func PrintInstallReports ¶ added in v0.3.5
func PrintInstallReports(reports []InstallReport, isUpdateReport bool)
Prints out the installation reports onto the console
func ShowOutput ¶
func ShowOutput(result *results.QueryResult)
ShowOutput :: displays the output using the proper formatter as applicable
func ShowPaged ¶ added in v0.1.1
func ShowPaged(content string)
ShowPaged :: displays the `content` in a system dependent pager
func ShowWrappedTable ¶ added in v0.2.3
Types ¶
Click to show internal directories.
Click to hide internal directories.