Class: Count

Inherits:
Column show all
Defined in:
lib/lilit_sql.rb

Instance Attribute Summary

Attributes inherited from Column

#name, #origin

Instance Method Summary collapse

Methods inherited from Column

#*, #<=, #==, #eq, #in, #state, #with_from

Constructor Details

#initializeCount

Returns a new instance of Count.



162
163
164
# File 'lib/lilit_sql.rb', line 162

def initialize
  super(nil)
end

Instance Method Details

#decl_sqlObject



170
171
172
# File 'lib/lilit_sql.rb', line 170

def decl_sql
  "count(*)"
end

#ref_sqlObject



166
167
168
# File 'lib/lilit_sql.rb', line 166

def ref_sql
  decl_sql
end