aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/relations/utilities/externalization.rb
blob: 7f937e84231c3f8c67e8ce7f5145c2f388e99c2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Arel
  class Externalization < Compound
    include Recursion::BaseCase

    def table_sql(formatter = Sql::TableReference.new(relation))
      formatter.select relation.select_sql, self
    end

    # REMOVEME
    def name
      relation.name + '_external'
    end
  end
end