classTargetTableParser
final class TargetTableParser
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Extracts PostgreSQL DML target table names.
Methods§
public function extractInsertTable(string $sql): ?stringExtract table name from INSERT statement.
Parameters
$sql | string |
Returns
?stringCalled from 1
Calls 5
- static-call PostgreSqlLexicalMasker::maskComments() line 19
- function-call
preg_matchline 20 - method-call IdentifierDecoder::unquoteIdentifier() line 21
- new IdentifierDecoder line 21
- method-call IdentifierDecoder::stripSchemaPrefix() line 21
public function extractUpdateTable(string $sql): ?stringExtract table name from UPDATE statement.
Parameters
$sql | string |
Returns
?stringCalled from 1
Calls 5
- static-call PostgreSqlLexicalMasker::maskComments() line 32
- function-call
preg_matchline 33 - method-call IdentifierDecoder::unquoteIdentifier() line 34
- new IdentifierDecoder line 34
- method-call IdentifierDecoder::stripSchemaPrefix() line 34
public function extractDeleteTable(string $sql): ?stringExtract table name from DELETE statement.
Parameters
$sql | string |
Returns
?stringCalled from 1
Calls 5
- static-call PostgreSqlLexicalMasker::maskComments() line 45
- function-call
preg_matchline 46 - method-call IdentifierDecoder::unquoteIdentifier() line 47
- new IdentifierDecoder line 47
- method-call IdentifierDecoder::stripSchemaPrefix() line 47
Test cases 22§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 19
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsSelectProjectionTestcallsUpsertProjectionTestcallsValueProjectionTestcallsInsertSelectRendererTestcallsInsertTransformerTestcallsPgSqlTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsPgSqlParserTestcallsConflictClauseTestcallsTableDefinitionClausesTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractInsertTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:61
- new ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractUpdateTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:166
- new ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractDeleteTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:229
Method calls 3
- method-call ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractInsertTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:61
- method-call ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractUpdateTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:166
- method-call ZtdQuery\Platform\Postgres\Sql\PgSqlParser::extractDeleteTable() packages/ztd-query-postgres/src/Sql/PgSqlParser.php:229