classSqlSecurity
final class SqlSecurity
implements Characteristic
uses Snapshot
Public API: explicitly declared with
@visibility public.The SQL SECURITY characteristic of a stored routine.
Source: https://dev.mysql.com/doc/refman/8.4/en/stored-objects-security.html.
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER PROCEDURE p SQL SECURITY INVOKER');
$alter->statement->characteristics[0]->context->value // => 'INVOKER'Properties§
public SecurityContext $contextMethods§
public function __construct(public SecurityContext $context)Parameters
$context | SecurityContext | Whose privileges the routine runs with |
public function render(Output $out): voidWrites SQL SECURITY and the context keyword.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 36
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::testCharacteristicLowersTheSecurityContextcallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfACreatecallsCharacteristicRuleTest::testCharacteristicsKeepTheWrittenOrderOfAnAltercallsAlterRoutineTest::testDeriveStatementReadsTheKindTheNameAndTheCharacteristicscallsAlterRoutineTest::testRenderWritesAConstructedAlterationcallsCharacteristicTest::providerImplementersAreTheFiveKindsOfCharacteristiccalls