Skip to main content

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​

ParameterTypeDescription
itemsASTNode[] | ASTNode[][]Grouping expressions; a flat list for BASIC, ROLLUP, and CUBE, or a list of lists for GROUPING SETS.
typestring-

Returns​

GroupByClause

Properties​

items​

items: ASTNode[] | ASTNode[][]

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​

ParameterType
visitorSQLVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept