Method: Arel::Nodes::SelectCore#initialize

Defined in:
activerecord/lib/arel/nodes/select_core.rb

#initialize(relation = nil) ⇒ SelectCore

Returns a new instance of SelectCore.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'activerecord/lib/arel/nodes/select_core.rb', line 9

def initialize(relation = nil)
  super()
  @source = JoinSource.new(relation)

  # https://ronsavage.github.io/SQL/sql-92.bnf.html#set%20quantifier
  @set_quantifier  = nil
  @optimizer_hints = nil
  @projections     = []
  @wheres          = []
  @groups          = []
  @havings         = []
  @windows         = []
  @comment         = nil
end