enum CopyStream: string
    implements Node
Public API: explicitly declared with @visibility public.

The client connection as the file of COPY, written STDIN or STDOUT.

PostgreSQL keeps no file name for either keyword: both mean the client connection, whichever the direction. The spelling is kept. Source: https://www.postgresql.org/docs/17/sql-copy.html.

Copying to the clientdoctest
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('COPY t TO STDOUT');
    $copy->statement->file // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyStream::Stdout

Cases§

case Stdin = 'STDIN'
case Stdout = 'STDOUT'

Methods§

public function render(Output $out): void

Writes the keyword.

Parameters

$outOutput
Calls 1

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 2
Type checks 1
Type declarations 4