tidb: github.com/pingcap/tidb/util/printer Index | Files

package printer

import "github.com/pingcap/tidb/util/printer"

Index

Package Files

printer.go

Variables

var (
    TiDBBuildTS   = "None"
    TiDBGitHash   = "None"
    TiDBGitBranch = "None"
    GoVersion     = "None"
    // TiKVMinVersion is the minimum version of TiKV that can be compatible with the current TiDB.
    TiKVMinVersion = "v3.0.0-60965b006877ca7234adaced7890d7b029ed1306"
)

Version information.

func GetPrintResult Uses

func GetPrintResult(cols []string, datas [][]string) (string, bool)

GetPrintResult gets a result with a formatted string.

func GetTiDBInfo Uses

func GetTiDBInfo() string

GetTiDBInfo returns the git hash and build time of this tidb-server binary.

func PrintTiDBInfo Uses

func PrintTiDBInfo()

PrintTiDBInfo prints the TiDB version information.

Package printer imports 8 packages (graph) and is imported by 94 packages. Updated 2019-08-13. Refresh now. Tools for package owners.