final class CopyRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers COPY.

Rule: PG-COPY-LOWER-001. Scope: CopyStmt, copy_from, copy_file_name, copy_delimiter, opt_using, opt_program, opt_binary; the options follow PG-COPY-OPTION-LOWER-001. Constructors: CopyTable, CopyQuery, CopyDirection, CopyStream. USING before DELIMITERS and WITH before the options are noise words. Source: https://www.postgresql.org/docs/17/sql-copy.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function direction(Node $direction): CopyDirection
public function delimiters(Node $clause): ?StringConstant

Lowers copy_delimiter: the string of DELIMITERS, or null.

Parameters

$clauseNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

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§

Instantiated in 1
Method calls 1