classShowFunctionStatus
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.
$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§
Methods§
public function deriveStatement(Derivation $derivation): voidDerives the rows and the filter.
Parameters
$derivation | Derivation |
Calls 2
- method-call ShowFacts::derive() line 49
- new ShowFacts line 49
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the result columns.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 3
- method-call ShowFacts::fact() line 57
- new ShowFacts line 57
- class-const Report::RoutineStatus() line 57
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyObjectRule::server() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:198
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::definition() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:117