Class: OracleSqlParser::Ast::InsertValuesClause

Inherits:
Array show all
Defined in:
lib/oracle-sql-parser/ast/insert_values_clause.rb

Instance Method Summary collapse

Methods inherited from Array

[], #[], #each, #initialize, #inspect, #map_ast!, #remove_nil_values!

Methods inherited from Base

#==, [], #ast, #deep_dup, deep_dup, find_different_value, #initialize, #initialize_copy, #inspect, #map_ast, #map_ast!, #remove_nil_values!

Methods included from Util::Parameterizable

#to_parameterized, #to_parameternized

Constructor Details

This class inherits a constructor from OracleSqlParser::Ast::Array

Instance Method Details

#to_sqlObject



3
4
5
# File 'lib/oracle-sql-parser/ast/insert_values_clause.rb', line 3

def to_sql
  "values(#{@ast.map(&:to_sql).join(',')})"
end