classHandlerFacts
final class HandlerFacts
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
Derives the facts of HANDLER ... READ.
Rule: MYSQL-HANDLER-READ-001. The handler is an open relation under its name (MYSQL-HANDLER-TABLE-001); WHERE sees it, the key values and LIMIT see no relation. The statement returns the rows read: every column of the handler's table, which is session state, so the output is an open star that depends on that state. Terminates: one pass over the finite parts. Source: https://dev.mysql.com/doc/refman/8.4/en/handler.html. Status: Implemented.
Methods§
public function read(
OpenHandler $handler,
list<Scalar> $values,
?Scalar $where,
?Limit $limit,
Derivation $derivation,
): voidDerives a read of a handler and records its rows as the output.
Parameters
$handler | OpenHandler | |
$values | list<Scalar> | The key values of an index seek |
$where | ?Scalar | |
$limit | ?Limit | |
$derivation | Derivation |
Called from 3
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexRead::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexRead.php:48
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexSeek::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexSeek.php:63
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerScan::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerScan.php:45
Calls 10
- method-call Derivation::environment() line 38
- method-call Derivation::relation() line 39
- method-call Derivation::scalar() line 41
- new Environment line 44
- new VisibleRelation line 44
- method-call TailFacts::limit() line 46
- new TailFacts line 46
- method-call Derivation::output() line 47
- new QueryFact line 47
- new OpenStar line 47
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
HandlerFactsTestcalls
Relations§
Instantiated in 3
- new SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexRead::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexRead.php:48
- new SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexSeek::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexSeek.php:63
- new SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerScan::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerScan.php:45
Method calls 3
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexRead::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexRead.php:48
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerIndexSeek::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerIndexSeek.php:63
- method-call SqlSemantics\Platform\MySql\Statement\Dml\Handler\HandlerScan::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Handler/HandlerScan.php:45