classFromClause
final class FromClause
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
From clause operations for PostgreSQL relation.
Methods§
public function referencesFromClause(string $clause): list<array{name: string, start: int, unqualifiedStart: int, end: int}>Parameters
$clause | string |
Returns
list<array{name: string, start: int, unqualifiedStart: int, end: int}>Test cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:131
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:88
Calls 6
- method-call RelationReference::tokens() line 22
- new RelationReference line 22
- class-const SqlTokenKind::Symbol() line 34
- function-call
array_mergeline 46 - method-call FromClause::parenthesizedReferences() line 46
- method-call RelationReference::referenceAt() line 51
Returns
intTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:37
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:86
Calls 2
- method-call FromClause::matchesKeywordSequence() line 83
- function-call
strlenline 89
public function matchesKeywordSequence(
list<SqlToken> $tokens,
int $index,
non-empty-list<string> $keywords,
): boolpublic function parenthesizedReferences(
string $clause,
list<SqlToken> $tokens,
int $index,
SqlToken $token,
): list<array{name: string, start: int, unqualifiedStart: int, end: int}>Recurses into joined relations while leaving subquery scopes to their own parser.
Returns
list<array{name: string, start: int, unqualifiedStart: int, end: int}>Test cases 1
Called from 1
Calls 6
- method-call RelationReference::closingToken() line 115
- new RelationReference line 115
- method-call SqlToken::endOffset() line 119
- function-call
substrline 120 - method-call RelationReference::tokens() line 121
- method-call FromClause::referencesFromClause() line 131
Test cases 34§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 30
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlCteShadowComposerTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsPgSqlTableSampleRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsSelectProjectionTestcallsUpsertProjectionTestcallsValueProjectionTestcallsInsertSelectRendererTestcallsInsertTransformerTestcallsMatchConditionsTestcallsRowActionsTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsPgSqlViewShadowRendererTestcallsPgSqlSchemaReflectorTestcallsPgSqlViewDefinitionParserTestcallsSchemaInitializerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsPgSqlMergeParserTestcallsPgSqlParserTestcallsPgSqlSelectRelationParserTestcallsPgSqlTableSampleParserTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:37
- new ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:86
- new ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:88
Method calls 3
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:37
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:86
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:88