final class IndexStmtWithCreateOptUniqueIndexOptConcurrentlyIfPNotExistsNameOnRelationExprAccessMeth_6a1d0de6
    implements IndexStmtForm, ParseToplevelForm, RoutineBodyStmtForm, SchemaStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public OptUniqueForm $optUnique
public OptConcurrentlyForm $optConcurrently
public NameForm $name
public RelationExprForm $relationExpr
public AccessMethodClauseForm $accessMethodClause
public IndexParamsForm $indexParams
public OptIncludeForm $optInclude
public OptUniqueNullTreatmentForm $optUniqueNullTreatment
public OptReloptionsForm $optReloptions
public OptTableSpaceForm $optTableSpace
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptUniqueForm $optUnique,
    public OptConcurrentlyForm $optConcurrently,
    public NameForm $name,
    public RelationExprForm $relationExpr,
    public AccessMethodClauseForm $accessMethodClause,
    public IndexParamsForm $indexParams,
    public OptIncludeForm $optInclude,
    public OptUniqueNullTreatmentForm $optUniqueNullTreatment,
    public OptReloptionsForm $optReloptions,
    public OptTableSpaceForm $optTableSpace,
    public WhereClauseForm $where,
    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

$optUniqueOptUniqueForm
$optConcurrentlyOptConcurrentlyForm
$nameNameForm
$relationExprRelationExprForm
$accessMethodClauseAccessMethodClauseForm
$indexParamsIndexParamsForm
$optIncludeOptIncludeForm
$optUniqueNullTreatmentOptUniqueNullTreatmentForm
$optReloptionsOptReloptionsForm
$optTableSpaceOptTableSpaceForm
$whereWhereClauseForm
$commentsComments
Calls 3
public function withOptUnique(OptUniqueForm $optUnique): self

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

Parameters

$optUniqueOptUniqueForm

Returns

self
Calls 1
public function withOptConcurrently(OptConcurrentlyForm $optConcurrently): self

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

Parameters

$optConcurrentlyOptConcurrentlyForm

Returns

self
Calls 1
public function withName(NameForm $name): self

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

Parameters

Returns

self
Calls 1
public function withRelationExpr(RelationExprForm $relationExpr): self

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

Parameters

$relationExprRelationExprForm

Returns

self
Calls 1
public function withAccessMethodClause(AccessMethodClauseForm $accessMethodClause): self

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

Parameters

$accessMethodClauseAccessMethodClauseForm

Returns

self
Calls 1
public function withIndexParams(IndexParamsForm $indexParams): self

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

Parameters

$indexParamsIndexParamsForm

Returns

self
Calls 1
public function withOptInclude(OptIncludeForm $optInclude): self

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

Parameters

$optIncludeOptIncludeForm

Returns

self
Calls 1
public function withOptUniqueNullTreatment(OptUniqueNullTreatmentForm $optUniqueNullTreatment): self

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

Parameters

$optUniqueNullTreatmentOptUniqueNullTreatmentForm

Returns

self
Calls 1
public function withOptReloptions(OptReloptionsForm $optReloptions): self

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

Parameters

$optReloptionsOptReloptionsForm

Returns

self
Calls 1
public function withOptTableSpace(OptTableSpaceForm $optTableSpace): self

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

Parameters

$optTableSpaceOptTableSpaceForm

Returns

self
Calls 1
public function withWhere(WhereClauseForm $where): self

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

Parameters

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