final class GeneralCondition
    implements Condition
    uses Snapshot
Public API: explicitly declared with @visibility public.

A class of conditions in a handler declaration: SQLWARNING, NOT FOUND or SQLEXCEPTION.

Source: https://dev.mysql.com/doc/refman/8.4/en/declare-handler.html.

Reading the class a handler namesdoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE PROCEDURE p() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; END');
    $create->statement->body->declarations[0]->conditions[0]->class // => \SqlSemantics\Platform\MySql\Statement\Routine\Condition\ConditionClass::SqlException

Properties§

Methods§

public function __construct(public ConditionClass $class)

Parameters

$classConditionClassThe class of conditions
public function render(Output $out): void

Test cases 11§

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

Dedicated tests 2
Other tests reaching this symbol 9

Relations§

Instantiated in 3
Type checks 1