classCreateTableStmtWithCreateOptTemporaryTableSymOptIfNotExistsTableIdentLikeTableIdent_a1a5b49d
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.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\CreateTableStmtWithCreateOptTemporaryTableSymOptIfNotExistsTableIdentLikeTableIdent_a1a5b49d $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptTemporaryForm $optTemporarypublic OptIfNotExistsForm $optIfNotExistspublic TableIdentForm $tableIdentpublic TableIdentForm $tableIdent2public 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
$optTemporary | OptTemporaryForm | |
$optIfNotExists | OptIfNotExistsForm | |
$tableIdent | TableIdentForm | |
$tableIdent2 | TableIdentForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 40
- method-call Writer::append() line 41
- method-call OptTemporaryForm::write() line 43
- method-call OptIfNotExistsForm::write() line 47
- method-call TableIdentForm::write() line 49
public function withOptTemporary(OptTemporaryForm $optTemporary): selfReturns a copy with a new optTemporary, preserving every other field.
Parameters
$optTemporary | OptTemporaryForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptIfNotExists(OptIfNotExistsForm $optIfNotExists): selfReturns a copy with a new optIfNotExists, preserving every other field.
Parameters
$optIfNotExists | OptIfNotExistsForm |
Returns
selfCalls 1
- new
selfline 69
public function withTableIdent(TableIdentForm $tableIdent): selfReturns a copy with a new tableIdent, preserving every other field.
Parameters
$tableIdent | TableIdentForm |
Returns
selfCalls 1
- new
selfline 77
public function withTableIdent2(TableIdentForm $tableIdent2): selfReturns a copy with a new tableIdent2, preserving every other field.
Parameters
$tableIdent2 | TableIdentForm |
Returns
selfCalls 1
- new
selfline 85