classExplainRows
final class ExplainRows
The rows an EXPLAIN report returns.
Rule: SQLITE-EXPLAIN-ROWS-001. EXPLAIN returns one row per virtual machine instruction with the columns addr, opcode, p1, p2, p3, p4, p5 and comment: the address and the operand integers are never NULL, the opcode name is text, the p4 operand is text or NULL, and the comment is NULL unless the library is built with SQLITE_ENABLE_EXPLAIN_COMMENTS. EXPLAIN QUERY PLAN returns one row per plan node with the columns id, parent, notused and detail, none of them NULL. The model fixes the number, order, names and storage classes of these columns for the shipped release. The manual says the output "is intended for interactive analysis and troubleshooting only", that "the details of the output format are subject to change from one
- release of SQLite to the next", and nothing about the number or content of
the rows, which are not modeled. Precision: every field is a known type. No diagnostic. Terminates: a fixed table. Source: https://sqlite.org/lang_explain.html, https://sqlite.org/opcode.html, https://sqlite.org/eqp.html (and sqlite3VdbeList() in vdbe.c of the release). Status: Implemented.
Methods§
public function fact(ExplainMode $mode, Comparison $names): QueryFactAnswers the output of a report.
Parameters
$mode | ExplainMode | |
$names | Comparison |
Returns
Test cases 2
Called from 1
Calls 8
- class-const ExplainRows::COLUMNS() line 69
- new Field line 70
- new OutputSlot line 70
- new Name line 70
- new Known line 70
- class-const Nullability::Nullable() line 70
- class-const Nullability::NotNull() line 70
- new QueryFact line 73
Private surface 1§
Implementation details, listed for orientation only.
private const COLUMNS = ['Program' => [['addr', \SqlSemantics\Platform\Sqlite\Statement\Type\Storage::I…Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.