Class: GroupByClause
Defined in: lang-sql/src/ast/select.ts:127
A GROUP BY clause with its mode and grouping expressions.
Implements
Constructors
Constructor
new GroupByClause(
items,type):GroupByClause
Defined in: lang-sql/src/ast/select.ts:130
Parameters
| Parameter | Type | Description |
|---|---|---|
items | ASTNode[] | ASTNode[][] | Grouping expressions; a flat list for BASIC, ROLLUP, and CUBE, or a list of lists for GROUPING SETS. |
type | string | - |
Returns
GroupByClause
Properties
items
Defined in: lang-sql/src/ast/select.ts:132
Grouping expressions; a flat list for BASIC, ROLLUP, and CUBE, or a list of lists for GROUPING SETS.
type
type:
GroupByType
Defined in: lang-sql/src/ast/select.ts:129
The grouping mode.
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-sql/src/ast/select.ts:138
Dispatches this node to the matching method on visitor.
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | SQLVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret