classRelationReference
final class RelationReference
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Relation reference operations for PostgreSQL relation.
Methods§
public function referenceAt(
string $sql,
list<SqlToken> $tokens,
int $index,
): array{name: string, start: int, unqualifiedStart: int, end: int}|nullParameters
$sql | string | |
$tokens | list<SqlToken> | |
$index | int |
Returns
array{name: string, start: int, unqualifiedStart: int, end: int}|nullTest cases 1
Called from 1
Calls 2
- method-call RelationReference::identifierComponentAt() line 45
- class-const SqlTokenKind::Symbol() line 51
public function identifierComponentAt(
list<SqlToken> $tokens,
int $index,
): array{string, int, int, int, int}|nullParameters
$tokens | list<SqlToken> | |
$index | int |
Returns
array{string, int, int, int, int}|nullTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\RelationReference::referenceAt() packages/ztd-query-postgres/src/Sql/Relation/RelationReference.php:45
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\RelationReference::referenceAt() packages/ztd-query-postgres/src/Sql/Relation/RelationReference.php:54
Calls 2
- class-const SqlTokenKind::Word() line 84
- static-call PgSqlLexerProfile::create() line 87
public function tokens(string $sql): list<SqlToken>Parameters
$sql | string |
Returns
list<SqlToken>Test cases 1
Called from 4
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::referencesFromClause() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:22
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:121
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:17
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:69
Calls 2
- static-call SqlTokenStream::tokenize() line 106
- static-call PgSqlLexerProfile::create() line 106
Test cases 35§
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 31
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlCteShadowComposerTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsPgSqlTableSampleRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsSelectProjectionTestcallsUpsertProjectionTestcallsValueProjectionTestcallsInsertSelectRendererTestcallsInsertTransformerTestcallsMatchConditionsTestcallsRowActionsTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsPgSqlViewShadowRendererTestcallsPgSqlSchemaReflectorTestcallsPgSqlViewDefinitionParserTestcallsSchemaInitializerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsPgSqlMergeParserTestcallsPgSqlParserTestcallsFromClauseTestcallsPgSqlSelectRelationParserTestcallsPgSqlTableSampleParserTestcalls
Relations§
Instantiated in 6
- new ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::referencesFromClause() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:22
- new ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::referencesFromClause() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:51
- new ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:115
- new ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:121
- new ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:17
- new ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:69
Method calls 6
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::referencesFromClause() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:22
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::referencesFromClause() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:51
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:115
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\FromClause::parenthesizedReferences() packages/ztd-query-postgres/src/Sql/Relation/FromClause.php:121
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::fromClauses() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:17
- method-call ZtdQuery\Platform\Postgres\Sql\Relation\PgSqlSelectRelationParser::references() packages/ztd-query-postgres/src/Sql/Relation/PgSqlSelectRelationParser.php:69