module Arel::Expressions - arel-4.0.2 Documentation

# module Arel::Expressions

### Public Instance Methods

average() click to toggle source

    # File lib/arel/expressions.rb, line 19
    def average
      Nodes::Avg.new [self], Nodes::SqlLiteral.new('avg_id')
    end

count(distinct = false) click to toggle source

    # File lib/arel/expressions.rb, line 3
    def count distinct = false
      Nodes::Count.new [self], distinct
    end

extract(field) click to toggle source

    # File lib/arel/expressions.rb, line 23
    def extract field
      Nodes::Extract.new [self], field
    end

maximum() click to toggle source

    # File lib/arel/expressions.rb, line 11
    def maximum
      Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
    end

minimum() click to toggle source

    # File lib/arel/expressions.rb, line 15
    def minimum
      Nodes::Min.new [self], Nodes::SqlLiteral.new('min_id')
    end

sum() click to toggle source

    # File lib/arel/expressions.rb, line 7
    def sum
      Nodes::Sum.new [self], Nodes::SqlLiteral.new('sum_id')
    end