classDataAccess
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.
$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::ReadsSqlDataProperties§
public AccessLevel $levelMethods§
public function __construct(public AccessLevel $level)Parameters
$level | AccessLevel | The declared use of data |
public function render(Output $out): voidWrites the keywords of the level.
Parameters
$out | Output |
Test cases 1
Calls 5
- class-const AccessLevel::ContainsSql() line 37
- method-call Output::keyword() line 37
- class-const AccessLevel::NoSql() line 38
- class-const AccessLevel::ReadsSqlData() line 39
- class-const AccessLevel::ModifiesSqlData() line 40
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
CharacteristicRuleTest::testCharacteristicLowersTheDataAccesscallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfACreatecallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfAnAltercallsAlterRoutineTest::testADeterministicCharacteristicIsRejectedcallsAlterRoutineTest::testDeriveStatementReadsTheKindTheNameAndTheCharacteristicscallsCharacteristicTest::providerImplementersAreTheFiveKindsOfCharacteristiccalls