Class: Bmg::Sql::Processor::Star

Inherits:
Bmg::Sql::Processor show all
Defined in:
lib/bmg/sql/processor/star.rb

Constant Summary

Constants inherited from Bmg::Sql::Processor

UnexpectedError

Instance Attribute Summary

Attributes inherited from Bmg::Sql::Processor

#builder

Instance Method Summary collapse

Methods inherited from Bmg::Sql::Processor

#initialize, #on_set_operator, #on_with_exp

Constructor Details

This class inherits a constructor from Bmg::Sql::Processor

Instance Method Details

#on_select_exp(sexpr) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/bmg/sql/processor/star.rb', line 6

def on_select_exp(sexpr)
  if sexpr.from_clause
    sexpr.with_update(:select_list, builder.select_star)
  else
    sexpr
  end
end