final class SimpleSelectWithSelectOptAllClauseOptTargetListIntoClauseFromClauseWhereClauseGroupClauseHa_0d11e19c
    implements ExplainableStmtForm, PreparableStmtForm, RuleActionListForm, RuleActionMultiForm, RuleActionStmtForm, RuleActionStmtOrEmptyForm, SelectStmtForm, InsertRestForm, ParseToplevelForm, RoutineBodyStmtForm, SelectClauseForm, SelectNoParensForm, SimpleSelectForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public OptAllClauseForm $optAllClause
public OptTargetListForm $projections
public IntoClauseForm $intoClause
public GroupClauseForm $groupBy
public WindowClauseForm $windowClause
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptAllClauseForm $optAllClause,
    public OptTargetListForm $projections,
    public IntoClauseForm $intoClause,
    public FromClauseForm $from,
    public WhereClauseForm $where,
    public GroupClauseForm $groupBy,
    public HavingClauseForm $having,
    public WindowClauseForm $windowClause,
    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

Calls 3
public function write(Writer $writer): void
public function withOptAllClause(OptAllClauseForm $optAllClause): self

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

Parameters

$optAllClauseOptAllClauseForm

Returns

self
Calls 1
public function withProjections(OptTargetListForm $projections): self

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

Parameters

$projectionsOptTargetListForm

Returns

self
Calls 1
public function withIntoClause(IntoClauseForm $intoClause): self

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

Parameters

$intoClauseIntoClauseForm

Returns

self
Calls 1
public function withFrom(FromClauseForm $from): self

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

Parameters

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 withGroupBy(GroupClauseForm $groupBy): self

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

Parameters

Returns

self
Calls 1
public function withHaving(HavingClauseForm $having): self

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

Parameters

Returns

self
Calls 1
public function withWindowClause(WindowClauseForm $windowClause): self

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

Parameters

$windowClauseWindowClauseForm

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