final class ShowFunctionStatus
    implements Statement, Relation
    uses Snapshot
Public API: explicitly declared with @visibility public.

SHOW FUNCTION STATUS: the stored functions the account can see.

Rule: MYSQL-SHOW-FUNCTIONSTATUS-001. The rows and the WHERE condition are derived by MYSQL-SHOW-FACTS-001 from the layout of MYSQL-SHOW-ROWS-001; MySQL 8.1 added the Language column. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-function-status.html. Status: Implemented.

Reading the statementdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW FUNCTION STATUS WHERE Db = 'shop'");
    [$show->facts->scalar($show->statement->filter->condition->left)->resolution->slot->name?->value, $show->toString()] // => ['Db', "SHOW FUNCTION STATUS WHERE Db = 'shop'"]

Properties§

public ShowLike|ShowWhere|null $filter = null

Methods§

public function __construct(public ShowLike|ShowWhere|null $filter = null)

Parameters

$filterShowLike|ShowWhere|nullThe LIKE or WHERE clause
public function deriveStatement(Derivation $derivation): void

Derives the rows and the filter.

Parameters

$derivationDerivation
Calls 2
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Derives the result columns.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 3
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 1

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 2