classCreateWithCreateUserOptIfNotExistsClearPrivilegesGrantListRequireClauseConnectOptions_85d2fc69
final class CreateWithCreateUserOptIfNotExistsClearPrivilegesGrantListRequireClauseConnectOptions_85d2fc69
implements CreateForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The create SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\CreateWithCreateUserOptIfNotExistsClearPrivilegesGrantListRequireClauseConnectOptions_85d2fc69 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public string $userpublic OptIfNotExistsForm $optIfNotExistspublic ClearPrivilegesForm $clearPrivilegespublic GrantListForm $grantListpublic RequireClauseForm $requireClausepublic ConnectOptionsForm $connectOptionspublic OptAccountLockPasswordExpireOptionsForm $optAccountLockPasswordExpireOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public string $user,
public OptIfNotExistsForm $optIfNotExists,
public ClearPrivilegesForm $clearPrivileges,
public GrantListForm $grantList,
public RequireClauseForm $requireClause,
public ConnectOptionsForm $connectOptions,
public OptAccountLockPasswordExpireOptionsForm $optAccountLockPasswordExpireOptions,
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
$user | string | |
$optIfNotExists | OptIfNotExistsForm | |
$clearPrivileges | ClearPrivilegesForm | |
$grantList | GrantListForm | |
$requireClause | RequireClauseForm | |
$connectOptions | ConnectOptionsForm | |
$optAccountLockPasswordExpireOptions | OptAccountLockPasswordExpireOptionsForm | |
$comments | Comments |
Calls 5
- new Comments line 30
- method-call CreateWithCreateUserOptIfNotExistsClearPrivilegesGrantListRequireClauseConnectOptions_85d2fc69::assertMatchesPattern() line 32
- class-const Contracts::SPELLINGS() line 32
- method-call CreateWithCreateUserOptIfNotExistsClearPrivilegesGrantListRequireClauseConnectOptions_85d2fc69::assert() line 33
- static-call Contracts::contains() line 33
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 8
- method-call Writer::comments() line 46
- method-call Writer::append() line 47
- method-call OptIfNotExistsForm::write() line 51
- method-call ClearPrivilegesForm::write() line 53
- method-call GrantListForm::write() line 55
- method-call RequireClauseForm::write() line 57
- method-call ConnectOptionsForm::write() line 59
- method-call OptAccountLockPasswordExpireOptionsForm::write() line 61
public function withUser(string $user): selfReturns a copy with a new user, preserving every other field.
Parameters
$user | string |
Returns
selfCalls 1
- new
selfline 69
public function withOptIfNotExists(OptIfNotExistsForm $optIfNotExists): selfReturns a copy with a new optIfNotExists, preserving every other field.
Parameters
$optIfNotExists | OptIfNotExistsForm |
Returns
selfCalls 1
- new
selfline 77
public function withClearPrivileges(ClearPrivilegesForm $clearPrivileges): selfReturns a copy with a new clearPrivileges, preserving every other field.
Parameters
$clearPrivileges | ClearPrivilegesForm |
Returns
selfCalls 1
- new
selfline 85
public function withGrantList(GrantListForm $grantList): selfReturns a copy with a new grantList, preserving every other field.
Parameters
$grantList | GrantListForm |
Returns
selfCalls 1
- new
selfline 93
public function withRequireClause(RequireClauseForm $requireClause): selfReturns a copy with a new requireClause, preserving every other field.
Parameters
$requireClause | RequireClauseForm |
Returns
selfCalls 1
- new
selfline 101
public function withConnectOptions(ConnectOptionsForm $connectOptions): selfReturns a copy with a new connectOptions, preserving every other field.
Parameters
$connectOptions | ConnectOptionsForm |
Returns
selfCalls 1
- new
selfline 109
public function withOptAccountLockPasswordExpireOptions(OptAccountLockPasswordExpireOptionsForm $optAccountLockPasswordExpireOptions): selfReturns a copy with a new optAccountLockPasswordExpireOptions, preserving every other field.
Parameters
$optAccountLockPasswordExpireOptions | OptAccountLockPasswordExpireOptionsForm |
Returns
selfCalls 1
- new
selfline 117