aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/relations/utilities/externalization.rb
blob: a0230e90f302cc200152b380ce9506120826f57f (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.compiler.select_sql, self
    end

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