classTableWildcard
final class TableWildcard
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.Every column of one table occurrence: t.* or db.t.*.
The node is a request to expand the columns of the occurrence the qualifier names. The statement that contains it derives the expansion. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html.
$star = new \SqlSemantics\Platform\MySql\Statement\Name\TableWildcard(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')));
[$star->table->schema?->value, $star->table->name->value] // => ['shop', 't']Properties§
public QualifiedName $tableMethods§
public function __construct(public QualifiedName $table)Parameters
$table | QualifiedName | The table occurrence, and its database when written |
Calls 1
- static-call Check::input() line 35
public function render(Output $out): voidWrites the qualifier and the star.
Parameters
$out | Output |
Test cases 2
Calls 2
- method-call Output::name() line 44
- class-const NameUse::Qualifier() line 44
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 2
Type checks 3
- instanceof SqlSemantics\Platform\MySql\Statement\Dml\Evaluation::__construct() packages/sql-semantics-mysql/src/Statement/Dml/Evaluation.php:54
- instanceof SqlSemantics\Platform\MySql\Statement\Dml\Insert\ColumnList::__construct() packages/sql-semantics-mysql/src/Statement/Dml/Insert/ColumnList.php:44
- instanceof SqlSemantics\Platform\MySql\Statement\Query\Select::__construct() packages/sql-semantics-mysql/src/Statement/Query/Select.php:125