enum CopyDirection: string
Public API: explicitly declared with @visibility public.

Whether COPY reads rows into the table (FROM) or writes the rows of the table out (TO).

Mirrors the is_from flag of PostgreSQL's CopyStmt; the value is the keyword. Source: https://www.postgresql.org/docs/17/sql-copy.html.

Reading the direction of COPYdoctest
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('COPY t FROM STDIN');
    $copy->statement->direction // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyDirection::From

Cases§

case From = 'FROM'
case To = 'TO'

Test cases 2§

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 1

Relations§

Constant reads 4
Type declarations 2