classCopyStmtWithCopyPreparableStmtToOptProgramCopyFileNameOptWithCopyOptions_7c72f99a
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.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CopyStmtWithCopyPreparableStmtToOptProgramCopyFileNameOptWithCopyOptions_7c72f99a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public PreparableStmtForm $preparableStmtpublic OptProgramForm $optProgrampublic CopyFileNameForm $copyFileNamepublic OptWithForm $optWithpublic CopyOptionsForm $copyOptionspublic 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
$preparableStmt | PreparableStmtForm | |
$optProgram | OptProgramForm | |
$copyFileName | CopyFileNameForm | |
$optWith | OptWithForm | |
$copyOptions | CopyOptionsForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call PreparableStmtForm::write() line 47
- method-call OptProgramForm::write() line 53
- method-call CopyFileNameForm::write() line 55
- method-call OptWithForm::write() line 57
- method-call CopyOptionsForm::write() line 59
public function withPreparableStmt(PreparableStmtForm $preparableStmt): selfReturns a copy with a new preparableStmt, preserving every other field.
Parameters
$preparableStmt | PreparableStmtForm |
Returns
selfCalls 1
- new
selfline 67
public function withOptProgram(OptProgramForm $optProgram): selfReturns a copy with a new optProgram, preserving every other field.
Parameters
$optProgram | OptProgramForm |
Returns
selfCalls 1
- new
selfline 75
public function withCopyFileName(CopyFileNameForm $copyFileName): selfReturns a copy with a new copyFileName, preserving every other field.
Parameters
$copyFileName | CopyFileNameForm |
Returns
selfCalls 1
- new
selfline 83
public function withOptWith(OptWithForm $optWith): selfReturns a copy with a new optWith, preserving every other field.
Parameters
$optWith | OptWithForm |
Returns
selfCalls 1
- new
selfline 91
public function withCopyOptions(CopyOptionsForm $copyOptions): selfReturns a copy with a new copyOptions, preserving every other field.
Parameters
$copyOptions | CopyOptionsForm |
Returns
selfCalls 1
- new
selfline 99