final class CopyStmtWithCopyOptBinaryQualifiedNameOptColumnListCopyFromOptProgramCopyFileNameCopyDe_2b21c137
    implements CopyStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

The CopyStmt SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CopyStmtWithCopyOptBinaryQualifiedNameOptColumnListCopyFromOptProgramCopyFileNameCopyDe_2b21c137 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public OptBinaryForm $optBinary
public QualifiedNameForm $qualifiedName
public OptColumnListForm $optColumnList
public CopyFromForm $copyFrom
public OptProgramForm $optProgram
public CopyFileNameForm $copyFileName
public CopyDelimiterForm $copyDelimiter
public OptWithForm $optWith
public CopyOptionsForm $copyOptions
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptBinaryForm $optBinary,
    public QualifiedNameForm $qualifiedName,
    public OptColumnListForm $optColumnList,
    public CopyFromForm $copyFrom,
    public OptProgramForm $optProgram,
    public CopyFileNameForm $copyFileName,
    public CopyDelimiterForm $copyDelimiter,
    public OptWithForm $optWith,
    public CopyOptionsForm $copyOptions,
    public WhereClauseForm $where,
    public Comments $comments = new \SqlSemantics\Statement\Comments(),
)

Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.

Parameters

$optBinaryOptBinaryForm
$qualifiedNameQualifiedNameForm
$optColumnListOptColumnListForm
$copyFromCopyFromForm
$optProgramOptProgramForm
$copyFileNameCopyFileNameForm
$copyDelimiterCopyDelimiterForm
$optWithOptWithForm
$copyOptionsCopyOptionsForm
$whereWhereClauseForm
$commentsComments
Calls 3
public function write(Writer $writer): void
public function withOptBinary(OptBinaryForm $optBinary): self

Returns a copy with a new optBinary, preserving every other field.

Parameters

$optBinaryOptBinaryForm

Returns

self
Calls 1
public function withQualifiedName(QualifiedNameForm $qualifiedName): self

Returns a copy with a new qualifiedName, preserving every other field.

Parameters

$qualifiedNameQualifiedNameForm

Returns

self
Calls 1
public function withOptColumnList(OptColumnListForm $optColumnList): self

Returns a copy with a new optColumnList, preserving every other field.

Parameters

$optColumnListOptColumnListForm

Returns

self
Calls 1
public function withCopyFrom(CopyFromForm $copyFrom): self

Returns a copy with a new copyFrom, preserving every other field.

Parameters

$copyFromCopyFromForm

Returns

self
Calls 1
public function withOptProgram(OptProgramForm $optProgram): self

Returns a copy with a new optProgram, preserving every other field.

Parameters

$optProgramOptProgramForm

Returns

self
Calls 1
public function withCopyFileName(CopyFileNameForm $copyFileName): self

Returns a copy with a new copyFileName, preserving every other field.

Parameters

$copyFileNameCopyFileNameForm

Returns

self
Calls 1
public function withCopyDelimiter(CopyDelimiterForm $copyDelimiter): self

Returns a copy with a new copyDelimiter, preserving every other field.

Parameters

$copyDelimiterCopyDelimiterForm

Returns

self
Calls 1
public function withOptWith(OptWithForm $optWith): self

Returns a copy with a new optWith, preserving every other field.

Parameters

$optWithOptWithForm

Returns

self
Calls 1
public function withCopyOptions(CopyOptionsForm $copyOptions): self

Returns a copy with a new copyOptions, preserving every other field.

Parameters

$copyOptionsCopyOptionsForm

Returns

self
Calls 1
public function withWhere(WhereClauseForm $where): self

Returns a copy with a new where, preserving every other field.

Parameters

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1