# Functions
ConvertExplainJSON2Row 将JSON格式转成ROW格式,为方便统一做优化建议 但是会损失一些JSON特有的分析结果.
ExplainInfoTranslator 将explain信息翻译成人能读懂的.
FormatJSONIntoTraditional 将JSON形式转换为TRADITIONAL形式,方便前端展现.
FormatProfiling 格式化输出Profiling信息.
FormatTrace 格式化输出Trace信息.
MySQLExplainQueryCost 将last_query_cost信息补充到评审结果中.
MySQLExplainWarnings WARNINGS信息中包含的优化器信息.
NewTableDesc 初始化一个*TableDesc.
NewTableIndexInfo 构造 TableIndexInfo.
ParseExplainResult 分析mysql执行explain的结果,返回ExplainInfo结构化数据.
ParseExplainText 解析explain文本信息(很可能是用户复制粘贴得到),返回格式化数据.
PrintMarkdownExplainTable 打印markdown格式的explain table.
RemoveSQLComments 去除SQL中的注释.
# Constants
EXTENDED输出.
索引列名称.
索引类型.
索引名称.
唯一索引.
JSON格式输出.
PARTITIONS输出.
默认转出.
默认输出.
# Variables
ExplainAccessType EXPLAIN中ACCESS TYPE会出现的类型.
ExplainColumnIndent EXPLAIN表头.
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的基本信息.