enumCopyDirection
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.
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('COPY t FROM STDIN');
$copy->statement->direction // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyDirection::FromCases§
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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyRule::direction() packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyRule.php:87
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyRule::direction() packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyRule.php:88
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CopyFacts::table() packages/sql-semantics-postgres/src/Rules/Manipulation/CopyFacts.php:59
- class-const SqlSemantics\Platform\PostgreSql\Rules\Manipulation\CopyFacts::kind() packages/sql-semantics-postgres/src/Rules/Manipulation/CopyFacts.php:81