classTargetTable
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.
$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§
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 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TargetTableTestcalls