classStar
final class Star
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The result column *: every column of every input relation.
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
$table = $semantics->analyze('CREATE TABLE t (a INTEGER, b TEXT)');
$query = $semantics->analyze('SELECT * FROM t', [$table]);
[$query->statement->columns[0] instanceof \SqlSemantics\Platform\Sqlite\Statement\Query\Star, count($query->fields())] // => [true, 2]Methods§
public function render(Output $out): voidTest cases 35§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 33
MutationRuleTest::testDeleteLowersTheTargetThePredicateTheReturningAndTheWithClausecallsResultRuleTest::testColumnsLowersExpressionsStarsAndTableStarsInWrittenOrdercallsResultRuleTest::testKeywordTellsWhetherAsIntroducesTheAliascallsDerivationTest::testTableResolvesTheNearestCommonTableBeforeTheContextcallsDerivationTest::testTargetRecordsATableUseThatIsNoRelationAndItsDiagnosticcallsCommonBindingTest::testABindingTiesANameToItsDefinitionAndShapecallsEnvironmentTest::testCommonTableComparesNamesAsTheContextSayscallsEnvironmentTest::testCommonTableFindsTheNearestBindingWithLaterOnesShadowingEarlierOnescallsClosedListTest::testOfAcceptsAListThatReachesTheMinimumcallsClosedListTest::testOfAcceptsAnEmptyListWithoutAMinimumcallsClosedListTest::testOfAnswersTheItemsInOrderWhenEachIsOfAnAdmittedClasscallsInsertFactsTest::testDeriveBindsTheWithClauseAndReturnsTheTargetRowcallsMutationScopeTest::testReturningIsNullWithoutColumnsAndProjectsTheTargetOtherwisecallsProjectionTest::testItemsReportsAStarWithoutInputAndAQualifierThatNamesNoRelationcallsDeleteTest::testRenderWritesWithTargetWhereAndReturningcallsInsertDefaultsTest::testRenderWritesDefaultValuesAndReturningcallsListedColumnTest::testRenderWritesANewlyBuiltNamecallsSelectTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryGroupByTermcallsSelectTest::testRenderRefusesAnIntegerConstantAsAnOrdinaryOrderByTermcallsSelectTest::testRenderWritesANewlyBuiltSelectioncallsCommonTableTest::testRenderWritesANewlyBuiltTablecallsWithQueryTest::testRenderWritesANewlyBuiltQuerycallsDerivedQueryTest::testRenderRefusesToLeaveOutAsWithoutAnAliascallsDerivedQueryTest::testRenderWritesTheQueryInParenthesesWithItsAliascallsIndexChoiceTest::testRenderWritesIndexedByWithTheIndexNamecallsJoinChainTest::testRenderWritesTheFirstTermItsConstraintAndEachStepcallsJoinOnTest::testRenderWritesOnBeforeTheConditioncallsJoinStepTest::testRenderWritesOperatorRelationAndConstraintcallsJoinUsingTest::testRenderWritesTheColumnsInParenthesescallsNestedInputTest::testRenderWritesParenthesesAndTheAliascallsTableCallTest::testRenderWritesSchemaNameArgumentsAndAliascallsTableInputTest::testRenderWritesSchemaAliasAndIndexChoicecallsCreateTriggerTest::testRejectsAStepWithAReturningClausecalls
Relations§
Instantiated in 1
Constant reads 6
- class-const SqlSemantics\Platform\Sqlite\Statement\Mutation\Delete::__construct() packages/sql-semantics-sqlite/src/Statement/Mutation/Delete.php:53
- class-const SqlSemantics\Platform\Sqlite\Statement\Mutation\InsertDefaults::__construct() packages/sql-semantics-sqlite/src/Statement/Mutation/InsertDefaults.php:49
- class-const SqlSemantics\Platform\Sqlite\Statement\Mutation\InsertRows::__construct() packages/sql-semantics-sqlite/src/Statement/Mutation/InsertRows.php:62
- class-const SqlSemantics\Platform\Sqlite\Statement\Mutation\InsertSelect::__construct() packages/sql-semantics-sqlite/src/Statement/Mutation/InsertSelect.php:68
- class-const SqlSemantics\Platform\Sqlite\Statement\Mutation\Update::__construct() packages/sql-semantics-sqlite/src/Statement/Mutation/Update.php:77
- class-const SqlSemantics\Platform\Sqlite\Statement\Query\Select::__construct() packages/sql-semantics-sqlite/src/Statement/Query/Select.php:89