Class: Arel::Count

Inherits:
Expression show all
Defined in:
lib/arel/algebra/expression.rb

Constant Summary

Constants inherited from Attribute

Attribute::PREDICATES, Attribute::Predications

Instance Attribute Summary

Attributes inherited from Expression

#attribute

Attributes inherited from Attribute

#alias, #ancestor, #hash, #history, #name, #relation

Instance Method Summary collapse

Methods inherited from Expression

#aggregation?, #as, #bind, #initialize, #to_attribute, #to_sql

Methods inherited from Attribute

#/, #==, #aggregation?, #as, #bind, #christener, #column, #descends_from?, #engine, #eq, #eq_all, #eq_any, #eval, #find_correlate_in, #format, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #in_all, #in_any, #initialize, #join?, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #named?, #not_eq, #not_eq_all, #not_eq_any, #not_in, #not_in_all, #not_in_any, #not_matches, #not_matches_all, #not_matches_any, #original_attribute, #original_relation, #root, #to_attribute, #to_sql

Methods included from Attribute::Types

#type_cast, #type_cast_to_numeric, #typecast_error

Methods included from Attribute::Orderings

#asc, #desc

Methods included from Attribute::Expressions

#average, #count, #maximum, #minimum, #sum

Constructor Details

This class inherits a constructor from Arel::Expression

Instance Method Details

#function_sqlObject



33
# File 'lib/arel/algebra/expression.rb', line 33

def function_sql; 'COUNT' end