Versions in this module Expand all Collapse all v0 v0.8.1 Oct 23, 2018 v0.8.0 Oct 19, 2018 Changes in this version + var BaseDir string + var BlackList []string + var BuiltinCSS = ... + var BuiltinJavascript = ... + var CharSets = map[string]int + var Config = &Configration + var Log *logs.BeeLogger + var ReportTypes = []ReportType + var TestSQLs []string + func Caller() string + func FormatDSN(env *dsn) string + func GetDataTypeBase(dataType string) string + func GetDataTypeLength(dataType string) []int + func GetFunctionName() string + func GoldenDiff(f func(), name string, update *bool) error + func IsColsPart(a, b []*Column) bool + func JoinColumnsName(cols []*Column, sep string) string + func ListReportTypes() + func LogIfError(err error, format string, v ...interface{}) + func LogIfWarn(err error, format string, v ...interface{}) + func LoggerInit() + func Markdown2HTML(buf string) string + func MarkdownEscape(str string) string + func MarkdownHTMLHeader() string + func ParseConfig(configFile string) error + func Score(score int) string + func SortedKey(m interface{}) []string + func StringStorageReq(dataType string, charset string) int + type Column struct + Alias []string + Cardinality float64 + Character string + Collation string + Comment string + DB string + DataType string + Default string + Extra string + Key string + Name string + Null string + Privileges string + Table string + func ColumnSort(colList []*Column) []*Column + func MergeColumn(dst []*Column, src ...*Column) []*Column + func (col *Column) Equal(column *Column) bool + func (col *Column) GetDataBytes(dbVersion int) int + type Configration struct + AllowDropIndex bool + AllowOnlineAsTest bool + BlackList string + ConnTimeOut int + Delimiter string + DropTestTemporary bool + DryRun bool + Explain bool + ExplainFormat string + ExplainMaxFiltered float64 + ExplainMaxKeyLength int + ExplainMaxRows int + ExplainMinPossibleKeys int + ExplainSQLReportType string + ExplainType string + ExplainWarnAccessType []string + ExplainWarnExtra []string + ExplainWarnScalability []string + ExplainWarnSelectType []string + IdxPrefix string + IgnoreRules []string + ListHeuristicRules bool + ListReportTypes bool + ListRewriteRules bool + ListTestSqls bool + LogLevel int + LogOutput string + MarkdownExtensions int + MarkdownHTMLFlags int + MaxColCount int + MaxDistinctCount int + MaxGroupByColsCount int + MaxIdxBytes int + MaxIdxBytesPerColumn int + MaxIdxColsCount int + MaxIdxCount int + MaxInCount int + MaxJoinTableCount int + MaxPrettySQLLength int + MaxQueryCost int64 + MaxSubqueryDepth int + MaxTotalRows int64 + MaxVarcharLength int + OnlineDSN *dsn + OnlySyntaxCheck bool + Profiling bool + Query string + QueryTimeOut int + ReportCSS string + ReportJavascript string + ReportTitle string + ReportType string + RewriteRules []string + Sampling bool + SamplingStatisticTarget int + ShowLastQueryCost bool + ShowWarnings bool + SpaghettiQueryLength int + TableAllowCharsets []string + TableAllowEngines []string + TestDSN *dsn + Trace bool + UkPrefix string + Verbose bool + type DB struct + Name string + Table map[string]*Table + func NewDB(db string) *DB + type KeyType int + type Meta map[string]*DB + func (b Meta) SetDefault(defaultDB string) Meta + func (b Meta) Tables(db string) []string + type ReportType struct + Description string + Example string + Name string + type Table struct + Column map[string]*Column + TableAliases []string + TableName string + func NewTable(tb string) *Table + type TableColumns map[string]map[string][]*Column