Module: OracleSqlParser::Grammar::Select::Subquery7

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

Instance Method Summary collapse

Instance Method Details

#astObject



196
197
198
199
200
201
202
203
204
205
# File 'lib/oracle-sql-parser/grammar/select.rb', line 196

def ast
  OracleSqlParser::Ast::Subquery[
    :has_parenthesis => query.try(:left_parenthesis) ? true : nil,
    :query_block => query.try(:query_block).ast,
    :subqueries => query.try(:subqueries).ast,
    :subquery => query.try(:subquery).ast,
    :order_by_clause => order.try(:order_by_clause).ast,
    :row_limiting_clause => row_limit.try(:row_limiting_clause).ast,
  ]
end