Versions in this module Expand all Collapse all v0 v0.11.1 Mar 26, 2024 Changes in this version + var BaseDir string + var BlackList []string + var Branch = "" + var BuiltinCSS = ... + var BuiltinJavascript = ... + var CharSets = map[string]int + var CheckConfig bool + var Compile = "" + var Config = &Configuration + var DevPath = "" + var GitDirty = "" + var Log *logs.BeeLogger + var PrintConfig bool + var PrintVersion bool + var ReportTypes = []ReportType + var TestSQLs []string + var Version = "No Version Provided" + func ArgConfig() string + func Caller() string + func Chardet(buf []byte) string + func CheckCharsetByBOM(buf []byte) 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 HandleSignal(f func()) + func IsColsPart(a, b []*Column) bool + func JSONFind(json string, name string) []string + 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 PrintConfiguration() + func RemoveBOM(buf []byte) (string, []byte) + func RemoveDuplicatesItem(duplicate []string) []string + func Score(score int) string + func SoarVersion() + 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 Configuration struct + AllowCharsets []string + AllowCollates []string + AllowDropIndex bool + AllowEngines []string + AllowOnlineAsTest bool + BlackList string + CleanupTestDatabase bool + ColumnNotAllowType []string + Delimiter string + DisableVersionCheck bool + DropTestTemporary bool + DryRun bool + Explain bool + ExplainFormat string + ExplainMaxFiltered float64 + ExplainMaxKeyLength int + ExplainMaxRows int64 + 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 + MaxTextColsCount int + MaxTotalRows uint64 + MaxValueCount int + MaxVarcharLength int + MinCardinality float64 + OnlineDSN *Dsn + OnlySyntaxCheck bool + Profiling bool + Query string + ReportCSS string + ReportJavascript string + ReportTitle string + ReportType string + RewriteRules []string + Sampling bool + SamplingCondition string + SamplingStatisticTarget int + ShowLastQueryCost bool + ShowWarnings bool + SpaghettiQueryLength int + TestDSN *Dsn + Trace bool + UkPrefix string + Verbose bool + type DB struct + Name string + Table map[string]*Table + func NewDB(db string) *DB + type Dsn struct + Addr string + AllowNativePasswords bool + AllowOldPasswords bool + Charset string + Collation string + Disable bool + Loc string + MaxAllowedPacket int + Net string + Params map[string]string + Password string + ReadTimeout string + Schema string + ServerPubKey string + TLS string + Timeout string + User string + Version int + WriteTimeout string + func ParseDSN(odbc string, d *Dsn) *Dsn + 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