classIdentifierReferences
final class IdentifierReferences
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Identifier References.
Methods§
public function __construct(private SqlLexerProfile $lexerProfile)Configure the dependencies used by this operation.
Parameters
$lexerProfile | SqlLexerProfile |
public function referencesIdentifier(string $sql, string $identifier): boolReferences Identifier for the supplied MySQL input.
Parameters
$sql | string | |
$identifier | string |
Returns
boolTest cases 1
Called from 2
- method-call ZtdQuery\Platform\MySql\Rewrite\Cte\MySqlCteShadowComposer::compose() packages/ztd-query-mysql/src/Rewrite/Cte/MySqlCteShadowComposer.php:42
- method-call ZtdQuery\Platform\MySql\Sql\Cte\IdentifierReferences::referencesAnyIdentifier() packages/ztd-query-mysql/src/Sql/Cte/IdentifierReferences.php:44
Calls 4
- static-call SqlTokenStream::tokenize() line 28
- method-call HeaderParser::identifierName() line 29
- new HeaderParser line 29
- function-call
strcasecmpline 30
public function referencesAnyIdentifier(string $sql, list<string> $identifiers): boolParameters
$sql | string | |
$identifiers | list<string> |
Returns
boolCalled from 1
Calls 1
- method-call IdentifierReferences::referencesIdentifier() line 44
Private surface 1§
Implementation details, listed for orientation only.
private SqlLexerProfile $lexerProfileTest cases 15§
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 13
MySqlSessionFactoryTestcallsTableContextTestcallsMySqlCteShadowComposerTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMySqlTransformerTestcallsReplaceTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsMySqlMutationResolverTestcalls
Relations§
Instantiated in 2
Method calls 2
- method-call ZtdQuery\Platform\MySql\Rewrite\Cte\MySqlCteShadowComposer::compose() packages/ztd-query-mysql/src/Rewrite/Cte/MySqlCteShadowComposer.php:42
- method-call ZtdQuery\Platform\MySql\Rewrite\Cte\MySqlCteShadowComposer::carryPrefix() packages/ztd-query-mysql/src/Rewrite/Cte/MySqlCteShadowComposer.php:113