classTargetColumns
final class TargetColumns
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Target columns operations for PostgreSQL copy.
Methods§
public function relationParts(string $tableName): non-empty-list<string>Parameters
$tableName | string |
Returns
non-empty-list<string>Throws
ValueErrorTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::tableName() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:24
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::target() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:40
Calls 6
- static-call SqlTokenStream::tokenize() line 27
- static-call PgSqlLexerProfile::create() line 27
- new
ValueErrorline 29 - function-call
in_arrayline 31 - function-call
countline 34 - method-call TargetColumns::identifier() line 44
public function columns(?string $fields, TableDefinition $definition): list<string>Parameters
$fields | ?string | |
$definition | TableDefinition |
Returns
list<string>Throws
ValueErrorTest cases 1
Called from 1
Calls 7
- static-call SqlTokenStream::tokenize() line 67
- static-call PgSqlLexerProfile::create() line 67
- function-call
in_arrayline 68 - new
ValueErrorline 69 - function-call
countline 75 - method-call TargetColumns::identifier() line 78
- function-call
sprintfline 80
public function identifier(SqlToken $token, string $subject): stringIdentifier.
Parameters
$token | SqlToken | |
$subject | string |
Returns
stringThrows
ValueErrorTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\TargetColumns::relationParts() packages/ztd-query-postgres/src/Connection/Copy/TargetColumns.php:44
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\TargetColumns::columns() packages/ztd-query-postgres/src/Connection/Copy/TargetColumns.php:78
Calls 6
- static-call SqlTokenStream::tokenize() line 94
- static-call PgSqlLexerProfile::create() line 94
- new
ValueErrorline 96 - function-call
sprintfline 96 - class-const SqlTokenKind::Word() line 99
- function-call
strtolowerline 99
Test cases 5§
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 2
PgSqlCopySupportTestcallsPgSqlSessionFactoryTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::tableName() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:24
- new ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::target() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:35
- new ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::target() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:40
Method calls 3
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::tableName() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:24
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::target() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:35
- method-call ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport::target() packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:40