final class DataAccess
    implements Characteristic
    uses Snapshot
Public API: explicitly declared with @visibility public.

The data access characteristic of a stored routine.

Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html.

Reading the data access of a routinedoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER PROCEDURE p READS SQL DATA');
    $alter->statement->characteristics[0]->level // => \SqlSemantics\Platform\MySql\Statement\Routine\Characteristic\AccessLevel::ReadsSqlData

Properties§

public AccessLevel $level

Methods§

public function __construct(public AccessLevel $level)

Parameters

$levelAccessLevelThe declared use of data
public function render(Output $out): void

Test cases 8§

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 6

Relations§

Instantiated in 1