classCteReferences
final class CteReferences
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Detects identifier dependencies between CTE declarations.
Methods§
public function referencesIdentifier(string $sql, string $identifier): boolDetects identifier dependencies between CTE declarations.
Parameters
$sql | string | |
$identifier | string |
Returns
boolCalled from 2
Calls 5
- static-call SqlTokenStream::tokenize() line 22
- static-call SqliteLexerProfile::create() line 22
- method-call CteHeaderParser::identifierName() line 23
- new CteHeaderParser line 23
- function-call
strcasecmpline 24
public function referencesAnyIdentifier(string $sql, list<string> $identifiers): boolParameters
$sql | string | |
$identifiers | list<string> |
Returns
boolTest cases 1
Called from 1
Calls 1
- method-call CteReferences::referencesIdentifier() line 38
Test cases 13§
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 11
ReferencedTableLookupTestcallsCteDependenciesTestcallsSqliteCteShadowComposerTestcallsSqliteRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsSelectTransformerTestcallsSqliteTransformerTestcallsUpdateTransformerTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 2
Method calls 2
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Cte\CteDependencies::required() packages/ztd-query-sqlite/src/Rewrite/Cte/CteDependencies.php:30
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Cte\SqliteCteShadowComposer::carryPrefix() packages/ztd-query-sqlite/src/Rewrite/Cte/SqliteCteShadowComposer.php:88