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.

Reading the security context of a routinedoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER PROCEDURE p SQL SECURITY INVOKER');
    $alter->statement->characteristics[0]->context->value // => 'INVOKER'

Properties§

public SecurityContext $context

Methods§

public function __construct(public SecurityContext $context)

Parameters

$contextSecurityContextWhose privileges the routine runs with
public function render(Output $out): void

Writes SQL SECURITY and the context keyword.

Parameters

$outOutput
Test cases 1
Calls 1

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