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.

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

Properties§

public InsertLockOptionForm $insertLockOption
public OptIgnoreForm $optIgnore
public Insert2Form $insert2
public InsertFieldSpecForm $insertFieldSpec
public OptInsertUpdateForm $optInsertUpdate
public 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

$insertLockOptionInsertLockOptionForm
$optIgnoreOptIgnoreForm
$insert2Insert2Form
$insertFieldSpecInsertFieldSpecForm
$optInsertUpdateOptInsertUpdateForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 7
public function withInsertLockOption(InsertLockOptionForm $insertLockOption): self

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

Parameters

$insertLockOptionInsertLockOptionForm

Returns

self
Calls 1
public function withOptIgnore(OptIgnoreForm $optIgnore): self

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

Parameters

$optIgnoreOptIgnoreForm

Returns

self
Calls 1
public function withInsert2(Insert2Form $insert2): self

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

Parameters

$insert2Insert2Form

Returns

self
Calls 1
public function withInsertFieldSpec(InsertFieldSpecForm $insertFieldSpec): self

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

Parameters

$insertFieldSpecInsertFieldSpecForm

Returns

self
Calls 1
public function withOptInsertUpdate(OptInsertUpdateForm $optInsertUpdate): self

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

Parameters

$optInsertUpdateOptInsertUpdateForm

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