final class CopyStmtWithCopyPreparableStmtToOptProgramCopyFileNameOptWithCopyOptions_7c72f99a
    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\CopyStmtWithCopyPreparableStmtToOptProgramCopyFileNameOptWithCopyOptions_7c72f99a $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public PreparableStmtForm $preparableStmt
public OptProgramForm $optProgram
public CopyFileNameForm $copyFileName
public OptWithForm $optWith
public CopyOptionsForm $copyOptions
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public PreparableStmtForm $preparableStmt,
    public OptProgramForm $optProgram,
    public CopyFileNameForm $copyFileName,
    public OptWithForm $optWith,
    public CopyOptionsForm $copyOptions,
    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

$preparableStmtPreparableStmtForm
$optProgramOptProgramForm
$copyFileNameCopyFileNameForm
$optWithOptWithForm
$copyOptionsCopyOptionsForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 7
public function withPreparableStmt(PreparableStmtForm $preparableStmt): self

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

Parameters

$preparableStmtPreparableStmtForm

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 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 withComments(Comments $comments): self

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

Parameters

$commentsComments

Returns

self
Calls 1