final class HandlerRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Dml". Code outside that scope must not name this declaration.

Lowers HANDLER of every release.

Rule: MYSQL-HANDLER-LOWERING-001. Scope: handler, handler_read_or_scan (5.6, 5.7); handler_stmt (8.0 and later); handler_scan_function, handler_rkey_function, handler_rkey_mode. OPEN and CLOSE are HandlerOpen and HandlerClose; a read is a scan (HandlerScan), an index read (HandlerIndexRead) or an index seek (HandlerIndexSeek). Terminates: the parts are strict subtrees. Source: https://dev.mysql.com/doc/refman/8.4/en/handler.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Form $form): Statement

Lowers a node of handler or handler_stmt.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 4
public function index(
    OpenHandler $handler,
    Node $index,
    Form $function,
    ?Scalar $where,
    ?Limit $limit,
    Form|null $seek = null,
): Statement

Private surface 5§

Implementation details, listed for orientation only.

private const READS = ['handler: HANDLER_SYM table_ident_nodb READ_SYM handler_read_or_scan where_cla…
private const SCANS = ['handler_scan_function: FIRST_SYM' => \SqlSemantics\Platform\MySql\Statement\D…
private const DIRECTIONS = ['handler_rkey_function: FIRST_SYM' => \SqlSemantics\Platform\MySql\Statement\D…
private const MODES = ['handler_rkey_mode: EQ' => \SqlSemantics\Platform\MySql\Statement\Dml\Handler\…
private Lowering $lowering

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 1