blob: d1fbfd83d90d94249ffb1ba146b3f4e12d2aa374 (
plain) (
tree)
|
|
module Arel
module Expressions
def count distinct = false
Nodes::Count.new [self], distinct
end
def sum
Nodes::Sum.new [self], Nodes::SqlLiteral.new('sum_id')
end
def maximum
Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
end
def minimum
Nodes::Min.new [self], Nodes::SqlLiteral.new('min_id')
end
def average
Nodes::Avg.new [self], Nodes::SqlLiteral.new('avg_id')
end
end
end
|