package
0.0.0-20211001231847-69d7c44852f1
Repository: https://github.com/go-ragnaros/soar.git
Documentation: pkg.go.dev
# Functions
ConvertExplainJSON2Row 将 JSON 格式转成 ROW 格式,为方便统一做优化建议 但是会损失一些 JSON 特有的分析结果.
Escape like C API mysql_escape_string().
ExplainInfoTranslator 将explain信息翻译成人能读懂的.
FormatJSONIntoTraditional 将JSON形式转换为TRADITIONAL形式,方便前端展现.
FormatProfiling 格式化输出 Profiling 信息.
FormatTrace 格式化输出Trace信息.
MySQLExplainQueryCost 将last_query_cost信息补充到评审结果中.
MySQLExplainWarnings WARNINGS信息中包含的优化器信息.
NewConnector 创建新连接.
NewTableDesc 初始化一个*TableDesc.
NewTableIndexInfo 构造 TableIndexInfo.
NullFloat null able float.
NullInt null able int.
NullString null able string.
ParseExplainResult 分析 mysql 执行 explain 的结果,返回 ExplainInfo 结构化数据.
ParseExplainText 解析explain文本信息(很可能是用户复制粘贴得到),返回格式化数据.
PrintMarkdownExplainTable 打印 markdown 格式的 explain table.
RemoveSQLComments 去除SQL中的注释.
TimeString returns t as string in MySQL format Converts time.Time zero to MySQL zero.
# Constants
No description provided by the author
EXTENDED输出.
索引列名称.
索引类型.
索引名称.
唯一索引.
JSON格式输出.
No description provided by the author
PARTITIONS输出.
TimeFormat standard MySQL datetime format.
默认转出.
默认输出.
# Variables
ExplainAccessType EXPLAIN中ACCESS TYPE会出现的类型.
ExplainExtra Extra信息解读 https://dev.mysql.com/doc/refman/8.0/en/explain-output.html sql/opt_explain_traditional.cc:traditional_extra_tags.
ExplainFormatType EXPLAIN 支持的 FORMAT_TYPE.
ExplainKeyWords 需要解释的关键字.
ExplainScalability ACCESS TYPE对应的运算复杂度 [AccessType]scalability map.
ExplainSelectType EXPLAIN中SELECT TYPE会出现的类型.
ExplainType EXPLAIN命令支持的参数.
# Structs
Connector 数据库连接基本对象.
ExplainInfo 用于存放Explain信息.
ExplainJSON 根结点.
ExplainJSONBufferResult JSON.
ExplainJSONCostInfo JSON.
ExplainJSONDuplicatesRemoval JSON.
ExplainJSONGroupingOperation JSON.
ExplainJSONMaterializedFromSubquery JSON.
ExplainJSONNestedLoop JSON.
ExplainJSONOrderingOperation JSON.
ExplainJSONQueryBlock JSON.
ExplainJSONSubqueries JSON.
ExplainJSONTable JSON.
ExplainJSONUnionResult JSON.
ExplainRow 单行Explain.
ExplainWarning explain extended 后 SHOW WARNINGS 输出的结果.
Profiling show profile 输出的结果.
ProfilingRow show profile每一行信息.
QueryResult 数据库查询返回值.
ReferenceValue 用于处理表之间的关系.
TableDesc show columns from rental;.
TableDescValue 含有每一列的属性.
TableIndexInfo 用以保存 show index 之后获取的 index 信息.
TableIndexRow 用以存放show index 之后获取的每一条 index 信息.
TableStatInfo 用以保存 show table status 之后获取的table信息.
Trace 用于存放 Select * From Information_Schema.Optimizer_Trace;输出的结果.
TraceRow 中含有trace的基本信息.