final class Create2aWithCreateFieldListOptCreateTableOptionsOptCreatePartitioningCreate3_27f326e1
    implements Create2aForm
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public CreateFieldListForm $createFieldList
public OptCreateTableOptionsForm $optCreateTableOptions
public OptCreatePartitioningForm $optCreatePartitioning
public Create3Form $create3
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public CreateFieldListForm $createFieldList,
    public OptCreateTableOptionsForm $optCreateTableOptions,
    public OptCreatePartitioningForm $optCreatePartitioning,
    public Create3Form $create3,
    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

$createFieldListCreateFieldListForm
$optCreateTableOptionsOptCreateTableOptionsForm
$optCreatePartitioningOptCreatePartitioningForm
$create3Create3Form
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 6
public function withCreateFieldList(CreateFieldListForm $createFieldList): self

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

Parameters

$createFieldListCreateFieldListForm

Returns

self
Calls 1
public function withOptCreateTableOptions(OptCreateTableOptionsForm $optCreateTableOptions): self

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

Parameters

$optCreateTableOptionsOptCreateTableOptionsForm

Returns

self
Calls 1
public function withOptCreatePartitioning(OptCreatePartitioningForm $optCreatePartitioning): self

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

Parameters

$optCreatePartitioningOptCreatePartitioningForm

Returns

self
Calls 1
public function withCreate3(Create3Form $create3): self

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

Parameters

$create3Create3Form

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