final class ReplaceWithReplaceReplaceLockOptionInsert2InsertFieldSpec_d77d1c9e
    implements EvSqlStmtForm, EvSqlStmtInnerForm, ExplanableCommandForm, ReplaceForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public ReplaceLockOptionForm $replaceLockOption
public Insert2Form $insert2
public InsertFieldSpecForm $insertFieldSpec
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public ReplaceLockOptionForm $replaceLockOption,
    public Insert2Form $insert2,
    public InsertFieldSpecForm $insertFieldSpec,
    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

$replaceLockOptionReplaceLockOptionForm
$insert2Insert2Form
$insertFieldSpecInsertFieldSpecForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 5
public function withReplaceLockOption(ReplaceLockOptionForm $replaceLockOption): self

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

Parameters

$replaceLockOptionReplaceLockOptionForm

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

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

Parameters

$commentsComments

Returns

self
Calls 1