classStar
final class Star
implements SelectItem
uses Snapshot
Public API: explicitly declared with
@visibility public.The unqualified * of a select list: every column of every table of the FROM clause.
MySQL accepts it only as the first item of the list. The selection expands it (MYSQL-STAR-001). Source: https://dev.mysql.com/doc/refman/8.4/en/select.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT * FROM t');
$query->statement->items[0] instanceof \SqlSemantics\Platform\MySql\Statement\Query\Star // => trueMethods§
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Instantiated in 1
Type checks 3
- instanceof SqlSemantics\Platform\MySql\Rules\Query\Projection::items() packages/sql-semantics-mysql/src/Rules/Query/Projection.php:62
- instanceof SqlSemantics\Platform\MySql\Statement\Dml\Evaluation::__construct() packages/sql-semantics-mysql/src/Statement/Dml/Evaluation.php:54
- instanceof SqlSemantics\Platform\MySql\Statement\Query\Select::__construct() packages/sql-semantics-mysql/src/Statement/Query/Select.php:125