enumCopyTextKind
enum CopyTextKind: string
Public API: explicitly declared with
@visibility public.Which option of the old COPY syntax a string sets: DELIMITER, NULL, QUOTE, ESCAPE or ENCODING.
The value is the keyword; each sets the generic option of the same name in lower case. Source: https://www.postgresql.org/docs/17/sql-copy.html#id-1.9.3.55.10.
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("COPY t FROM STDIN DELIMITER AS ';'");
$copy->statement->legacy[0]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyTextKind::DelimiterCases§
case Delimiter = 'DELIMITER'case Null = 'NULL'case Quote = 'QUOTE'case Escape = 'ESCAPE'case Encoding = 'ENCODING'Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:53
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:54
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:55
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:56
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:57