Sha256: f9028a0e4da7e86edfc5b2ede29115a846dd04c7b3eb7a0e9a28b297c8745ec3
Contents?: true
Size: 532 Bytes
Versions: 21
Compression:
Stored size: 532 Bytes
Contents
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 def extract field Nodes::Extract.new [self], field end end end
Version data entries
21 entries across 16 versions & 5 rubygems