classCopyTarget
final class CopyTarget
What a COPY statement is written against.
The relation as it was named, which may be qualified, and the columns the rows carry in the order they carry them.
Properties§
public non-empty-list<string> $relationpublic non-empty-list<string> $columnsMethods§
public function __construct(
public non-empty-list<string> $relation,
public non-empty-list<string> $columns,
)Parameters
$relation | non-empty-list<string> | |
$columns | non-empty-list<string> |
public function tableName(): stringTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 6
FakeCopySupport::insertSqlcallsFakeCopySupport::selectSqlcallsFakeCopySupport::targetcallsPgSqlCopySupportTest::testInsertSqlNumbersEveryRowAndPreservesIdentityOverridecallsTargetSqlTest::testRelationSqlcallsSessionTest::testParameterBindingCompilerResultColumnTypeResolverParameterBindingCompilerDelegatesCopyTargetsToTheConfiguredPlatformSupportcalls
Relations§
Instantiated in 1
Type declarations 8
- type ZtdQuery\Platform\CopySupport packages/ztd-query-core/src/Platform/CopySupport.php:34
- type ZtdQuery\Platform\CopySupport packages/ztd-query-core/src/Platform/CopySupport.php:42
- type ZtdQuery\Platform\CopySupport packages/ztd-query-core/src/Platform/CopySupport.php:52
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:273
- type ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:33
- type ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:46
- type ZtdQuery\Platform\Postgres\Connection\Copy\PgSqlCopySupport packages/ztd-query-postgres/src/Connection/Copy/PgSqlCopySupport.php:59
- type ZtdQuery\Platform\Postgres\Connection\Copy\TargetSql packages/ztd-query-postgres/src/Connection/Copy/TargetSql.php:27