classUpdateClauseParser
final class UpdateClauseParser
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Extracts PostgreSQL UPDATE aliases and assignments.
Methods§
public function extractUpdateAlias(string $sql): ?stringExtract table alias from UPDATE statement.
Parameters
$sql | string |
Returns
?stringTest cases 1
Called from 1
Calls 4
- static-call PostgreSqlLexicalMasker::maskComments() line 21
- function-call
preg_matchline 22 - method-call IdentifierDecoder::unquoteIdentifier() line 23
- new IdentifierDecoder line 23
public function extractUpdateSets(string $sql): array<string, string>Extract SET assignments from UPDATE statement.
Parameters
$sql | string |
Returns
array<string, string> column => value expressionCalled from 1
Calls 6
- static-call SqlTokenStream::tokenize() line 36
- static-call PgSqlLexerProfile::create() line 36
- function-call
trimline 48 - function-call
preg_matchline 49 - method-call IdentifierDecoder::unquoteIdentifier() line 50
- new IdentifierDecoder line 50
Test cases 21§
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 19
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsSelectProjectionTestcallsUpsertProjectionTestcallsValueProjectionTestcallsInsertSelectRendererTestcallsInsertTransformerTestcallsPgSqlTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsPgSqlParserTestcallsConflictClauseTestcallsTableDefinitionClausesTestcalls