Module: OracleSqlParser::Grammar::Select::Group::GroupByClause3

Defined in:
lib/oracle-sql-parser/grammar/select/group.rb

Instance Method Summary collapse

Instance Method Details

#astObject



64
65
66
67
68
69
70
71
# File 'lib/oracle-sql-parser/grammar/select/group.rb', line 64

def ast
  OracleSqlParser::Ast::GroupByClause[
    :targets => OracleSqlParser::Ast::Array[
      target.ast, *more_targets.map(&:ast)
    ],
    :having => h.try(:condition).ast
  ]
end

#more_targetsObject



73
74
75
# File 'lib/oracle-sql-parser/grammar/select/group.rb', line 73

def more_targets
  t.elements.map{|e| e.more_target}
end