final class ExplainFacts
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Derives the row EXPLAIN returns and checks the options that depend on each other.

Rule: PG-EXPLAIN-ROWS-001. EXPLAIN returns one column named QUERY PLAN that is never NULL. The server reads the FORMAT options in order, so the last one decides: the value xml gives the type xml, json gives json, text and yaml give text, and without the option the format is text. The value is compared exactly as received, an unquoted word already folded to lower case. Diagnostic: a value that is none of the four; the column is then typed as text. Precision: Known. Rule: PG-EXPLAIN-OPTIONS-001. SERIALIZE (release 17) without a value means text, and its value is one of off, none, text and binary, compared exactly. The options WAL, TIMING and SERIALIZE other than off/none require ANALYZE; TIMING is checked only when it is written, because it otherwise follows ANALYZE. ANALYZE and GENERIC_PLAN exclude each other. Each Boolean option is read by PG-UTILITY-OPTION-VALUE-001. Termination: one pass over the options. Source: https://www.postgresql.org/docs/17/sql-explain.html. Status: Implemented.

Methods§

Private surface 2§

Implementation details, listed for orientation only.

private const TYPES = ['text' => \SqlSemantics\Platform\PostgreSql\Statement\Type\Descriptor\Builtin:…
private const SERIALIZE = ['off', 'none', 'text', 'binary']

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 2