final class TargetTable
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One table a DROP TABLE removes: 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. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-table.html.

Holding a table name with its databasedoctest
$target = new \SqlSemantics\Platform\MySql\Statement\Alter\TargetTable(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')));
    $target->name->schema?->value // => 'shop'

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe table name with its optional database
Calls 1
public function render(Output $out): void

Writes the name.

Parameters

$outOutput
Calls 3

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Constant reads 1