class Arel::Visitors::ToSql

Constants

ARRAY_CLOSING
ARRAY_CONCAT
ARRAY_OPENING

Private Instance Methods

visit_Arel_Nodes_ArrayConcat(o, *a) click to toggle source
# File lib/arel/nodes/postgresql.rb, line 33
def visit_Arel_Nodes_ArrayConcat o, *a
  "#{visit o.left, *a} #{ARRAY_CONCAT} #{visit o.right, *a}"
end
visit_Arel_Nodes_PostgresArray(o, *a) click to toggle source
# File lib/arel/nodes/postgresql.rb, line 29
def visit_Arel_Nodes_PostgresArray o, *a
  "#{ARRAY_OPENING}#{visit o.values, *a}#{ARRAY_CLOSING}"
end
visit_Arel_Nodes_UnionDistinct(o, *a) click to toggle source
# File lib/arel/nodes/postgresql.rb, line 37
def visit_Arel_Nodes_UnionDistinct o, *a
  "( #{visit o.left, *a} UNION DISTINCT #{visit o.right, *a} )"
end