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.

Reading the kind of a string optiondoctest
$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::Delimiter

Cases§

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
Type declarations 1