classShowTriggers
final class ShowTriggers
implements Statement, Relation
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW TRIGGERS: the triggers of a database.
Rule: MYSQL-SHOW-TRIGGERS-001. FULL is accepted and returns the same columns. The rows and the WHERE condition are derived by MYSQL-SHOW-FACTS-001 from the layout of MYSQL-SHOW-ROWS-001. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-triggers.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW FULL TRIGGERS IN shop WHERE `Table` = 'orders'");
[$show->statement->full, $show->toString()] // => [true, "SHOW FULL TRIGGERS FROM shop WHERE `Table` = 'orders'"]Properties§
public bool $full = falsepublic ?Name $database = nullMethods§
public function deriveStatement(Derivation $derivation): voidDerives the rows and the filter.
Parameters
$derivation | Derivation |
Calls 2
- method-call ShowFacts::derive() line 53
- new ShowFacts line 53
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the result columns.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 3
- method-call ShowFacts::fact() line 61
- new ShowFacts line 61
- class-const Report::Triggers() line 61
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 69
- class-const NameUse::Qualifier() line 75
- method-call Output::node() line 77
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
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyObjectRule::schema() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:126
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:69