classObjectRule
final class ObjectRule
Lowers the SHOW statements of MySQL 8.0 and later about databases, tables and stored programs.
Rule: MYSQL-SHOW-OBJECT-LOWERING-001. Scope: show_databases_stmt, show_tables_stmt, show_triggers_stmt, show_events_stmt, show_table_status_stmt, show_open_tables_stmt, show_columns_stmt, show_keys_stmt, show_create_*_stmt (but USER), show_procedure_*_stmt, show_function_*_stmt; the server statements are lowered by MYSQL-SHOW-SERVER-LOWERING-001. Terminates: every part is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/show.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a node of a SHOW rule about schema objects.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 18
- new ClauseRule line 62
- new ShowDatabases line 65
- method-call ClauseRule::filter() line 65
- method-call Form::node() line 65
- new ShowTables line 67
- method-call ClauseRule::listing() line 67
- method-call ClauseRule::database() line 67
- new ShowTriggers line 69
- new ShowEvents line 71
- new ShowTableStatus line 73
- new ShowOpenTables line 75
- method-call ClauseRule::preposition() line 77
- new ShowColumns line 79
- method-call ObjectRule::table() line 79
- new ShowKeys line 84
- method-call ClauseRule::extended() line 84
- method-call ClauseRule::where() line 84
- method-call ObjectRule::definition() line 86
Lowers SHOW CREATE and the SHOW statements about stored programs.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 17
- new ClauseRule line 98
- new ShowCreateDatabase line 101
- method-call Form::node() line 101
- new ShowCreateTable line 103
- method-call ObjectRule::table() line 103
- new ShowCreateView line 105
- new ShowCreateProcedure line 107
- new ShowCreateFunction line 109
- new ShowCreateTrigger line 111
- new ShowCreateEvent line 113
- new ShowProcedureStatus line 115
- method-call ClauseRule::filter() line 115
- new ShowFunctionStatus line 117
- new ShowProcedureCode line 119
- new ShowFunctionCode line 121
- method-call ServerRule::statement() line 123
- new ServerRule line 123
public function table(Form $form, int $position): InspectedTableLowers the table name at a position into the inspected table.
Parameters
$form | Form | |
$position | int |
Returns
Called from 4
- method-call SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:79
- method-call SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:84
- method-call SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::definition() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:103
- method-call SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::definition() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:105
Calls 2
- new InspectedTable line 132
- method-call Form::node() line 132
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ObjectRuleTestcalls