classStarTarget
final class StarTarget
implements Target
uses Snapshot
Public API: explicitly declared with
@visibility public.A select-list *: every column of the FROM items.
Mirrors PostgreSQL's ResTarget whose value is a bare A_Star. The fields follow PG-STAR-001. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT * FROM t');
[$query->statement->targets[0] instanceof \SqlSemantics\Platform\PostgreSql\Statement\Query\StarTarget, $query->facts->output->projection[0] instanceof \SqlSemantics\Platform\PostgreSql\Model\Statement\Shape\OpenStar] // => [true, true]Methods§
public function project(Derivation $derivation, Environment $environment, int $position): arrayExpands the star over the FROM items of the level.
Parameters
$derivation | Derivation | |
$environment | Environment | |
$position | int |
Returns
arrayCalls 2
- method-call StarExpansion::all() line 34
- new StarExpansion line 34
public function render(Output $out): voidTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
StarTargetTestcalls
Other tests reaching this symbol 6
SelectRuleTest::testTargetsLowersTheStarcallsCommonTableFactsTest::testOrderDerivesReferencedTablesFirstcallsCommonTableFactsTest::testRecursiveFormReportsAQueryWithoutUnioncallsCommonTableFactsTest::testShapeAddsTheSearchAndCycleColumnscallsTargetNamesTest::testFirstIsNullForALeadingStarcallsTableShapesTest::testInputReportsASampleOfACommonTablecalls