Module: OracleSqlParser::Grammar::Select::RowLimit::Fetch5

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

Instance Method Summary collapse

Instance Method Details

#astObject



220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/oracle-sql-parser/grammar/select/row_limit.rb', line 220

def ast
  OracleSqlParser::Ast::Fetch[
    fetch: fetch_keyword.ast,
    first: first.ast,
    rowcount: rowcount.try(:rowcount).ast,
    percentage: rowcount.try(:percentage).ast,
    percentage_keyword: rowcount.try(:percentage_keyword).ast,
    rows: rows.ast,
    only: only.try(:only_keyword).ast,
    with: only.try(:with_keyword).ast,
    ties: only.try(:ties_keyword).ast,
  ]
end