Module: OracleSqlParser::Grammar::Insert::SingleTableInsert2

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

Instance Method Summary collapse

Instance Method Details

#astObject



111
112
113
114
115
116
117
118
119
# File 'lib/oracle-sql-parser/grammar/insert.rb', line 111

def ast
  insert_into_ast = insert_into_clause.ast
  OracleSqlParser::Ast::InsertStatement[
    :insert => insert_into_ast.table,
    :alias => insert_into_ast.alias,
    :columns => insert_into_ast.column,
    :values => values.ast
  ]
end

#valuesObject



121
122
123
# File 'lib/oracle-sql-parser/grammar/insert.rb', line 121

def values
  t.elements.first
end