mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
20 lines
372 B
Ruby
20 lines
372 B
Ruby
module Arel
|
|
module Nodes
|
|
class SelectStatement
|
|
attr_reader :cores
|
|
attr_accessor :limit, :orders, :lock
|
|
|
|
def initialize cores = [SelectCore.new]
|
|
@cores = cores
|
|
@orders = []
|
|
@limit = nil
|
|
@lock = nil
|
|
end
|
|
|
|
def initialize_copy other
|
|
super
|
|
@cores = @cores.clone
|
|
end
|
|
end
|
|
end
|
|
end
|