classMaintainedTable
final class MaintainedTable
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One table a server administration statement names in its table list: the position its resolution is recorded at.
The statement that holds it records the resolution of the name as the relation fact of this node (MYSQL-SERVER-TABLES-001). Source: https://dev.mysql.com/doc/refman/8.4/en/table-maintenance-statements.html.
$table = new \SqlSemantics\Platform\MySql\Statement\Server\Maintenance\MaintainedTable(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'), new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('shop')));
$table->name->schema?->value // => 'shop'Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The table name with its optional database |
Calls 1
- static-call Check::input() line 35
public function render(Output $out): voidWrites the name.
Parameters
$out | Output |
Calls 3
- method-call Output::name() line 44
- class-const NameUse::Qualifier() line 44
- class-const NameUse::Relation() line 46
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
MaintainedTableTestcalls
Other tests reaching this symbol 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Server\Maintenance\FlushRule::tables() packages/sql-semantics-mysql/src/Lowering/Server/Maintenance/FlushRule.php:92
- new SqlSemantics\Platform\MySql\Lowering\Server\Maintenance\MaintenanceRule::tables() packages/sql-semantics-mysql/src/Lowering/Server/Maintenance/MaintenanceRule.php:128
Constant reads 2
- class-const SqlSemantics\Platform\MySql\Rules\Server\MaintainedTables::checked() packages/sql-semantics-mysql/src/Rules/Server/MaintainedTables.php:34
- class-const SqlSemantics\Platform\MySql\Statement\Server\Flush\FlushTables::__construct() packages/sql-semantics-mysql/src/Statement/Server/Flush/FlushTables.php:50