final class CreateTableStmtWithCreateOptTemporaryTableSymOptIfNotExistsTableIdentLikeTableIdent_a1a5b49d
    implements CreateTableStmtForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public OptTemporaryForm $optTemporary
public OptIfNotExistsForm $optIfNotExists
public TableIdentForm $tableIdent
public TableIdentForm $tableIdent2
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptTemporaryForm $optTemporary,
    public OptIfNotExistsForm $optIfNotExists,
    public TableIdentForm $tableIdent,
    public TableIdentForm $tableIdent2,
    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

$optTemporaryOptTemporaryForm
$optIfNotExistsOptIfNotExistsForm
$tableIdentTableIdentForm
$tableIdent2TableIdentForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 5
public function withOptTemporary(OptTemporaryForm $optTemporary): self

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

Parameters

$optTemporaryOptTemporaryForm

Returns

self
Calls 1
public function withOptIfNotExists(OptIfNotExistsForm $optIfNotExists): self

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

Parameters

$optIfNotExistsOptIfNotExistsForm

Returns

self
Calls 1
public function withTableIdent(TableIdentForm $tableIdent): self

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

Parameters

$tableIdentTableIdentForm

Returns

self
Calls 1
public function withTableIdent2(TableIdentForm $tableIdent2): self

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

Parameters

$tableIdent2TableIdentForm

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