enumCopyStream
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.
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('COPY t TO STDOUT');
$copy->statement->file // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyStream::StdoutCases§
case Stdin = 'STDIN'case Stdout = 'STDOUT'Methods§
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CopyStreamTestcalls
Relations§
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyRule::file() packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyRule.php:120
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyRule::file() packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyRule.php:121
Type checks 1
Type declarations 4
- type SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyRule.php:114
- type SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CopyFacts packages/sql-semantics-postgres/src/Rules/Manipulation/CopyFacts.php:192
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyQuery packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyQuery.php:56
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyTable packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyTable.php:77