UNPKG

rhombic

Version:

SQL parsing, lineage extraction and manipulation

20 lines 662 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupByVisitor = void 0; const SqlParser_1 = require("../SqlParser"); const getChildrenRange_1 = require("../utils/getChildrenRange"); const Visitor = SqlParser_1.parser.getBaseCstVisitorConstructorWithDefaults(); /** * Visitor to extract information about `GROUP BY` statement */ class GroupByVisitor extends Visitor { constructor() { super(); this.validateVisitor(); } groupBy(ctx) { this.groupByRange = getChildrenRange_1.getChildrenRange(ctx); } } exports.GroupByVisitor = GroupByVisitor; //# sourceMappingURL=GroupByVisitor.js.map