classInsertWithInsertInsertLockOptionOptIgnoreInsert2InsertFieldSpecOptInsertUpdate_d0b84c1a
final class InsertWithInsertInsertLockOptionOptIgnoreInsert2InsertFieldSpecOptInsertUpdate_d0b84c1a
implements EvSqlStmtForm, EvSqlStmtInnerForm, ExplanableCommandForm, InsertForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm
uses Assertion
Public API: explicitly declared with
@visibility public.The insert SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\InsertWithInsertInsertLockOptionOptIgnoreInsert2InsertFieldSpecOptInsertUpdate_d0b84c1a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public InsertLockOptionForm $insertLockOptionpublic OptIgnoreForm $optIgnorepublic Insert2Form $insert2public InsertFieldSpecForm $insertFieldSpecpublic OptInsertUpdateForm $optInsertUpdatepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public InsertLockOptionForm $insertLockOption,
public OptIgnoreForm $optIgnore,
public Insert2Form $insert2,
public InsertFieldSpecForm $insertFieldSpec,
public OptInsertUpdateForm $optInsertUpdate,
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
$insertLockOption | InsertLockOptionForm | |
$optIgnore | OptIgnoreForm | |
$insert2 | Insert2Form | |
$insertFieldSpec | InsertFieldSpecForm | |
$optInsertUpdate | OptInsertUpdateForm | |
$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 InsertLockOptionForm::write() line 45
- method-call OptIgnoreForm::write() line 47
- method-call Insert2Form::write() line 49
- method-call InsertFieldSpecForm::write() line 51
- method-call OptInsertUpdateForm::write() line 53
public function withInsertLockOption(InsertLockOptionForm $insertLockOption): selfReturns a copy with a new insertLockOption, preserving every other field.
Parameters
$insertLockOption | InsertLockOptionForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptIgnore(OptIgnoreForm $optIgnore): selfReturns a copy with a new optIgnore, preserving every other field.
Parameters
$optIgnore | OptIgnoreForm |
Returns
selfCalls 1
- new
selfline 69
public function withInsert2(Insert2Form $insert2): selfReturns a copy with a new insert2, preserving every other field.
Parameters
$insert2 | Insert2Form |
Returns
selfCalls 1
- new
selfline 77
public function withInsertFieldSpec(InsertFieldSpecForm $insertFieldSpec): selfReturns a copy with a new insertFieldSpec, preserving every other field.
Parameters
$insertFieldSpec | InsertFieldSpecForm |
Returns
selfCalls 1
- new
selfline 85
public function withOptInsertUpdate(OptInsertUpdateForm $optInsertUpdate): selfReturns a copy with a new optInsertUpdate, preserving every other field.
Parameters
$optInsertUpdate | OptInsertUpdateForm |
Returns
selfCalls 1
- new
selfline 93