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

#==, #state, #with_from

Methods inherited from Expr

#*, #+, #<, #<=, #>, #>=, #and, #asc, #desc, #eq, #in, #minus, #ne, #not, #plus

Constructor Details

#initializeCount



302
303
304
# File 'lib/lilit_sql.rb', line 302

def initialize
  super(nil)
end

Instance Method Details

#decl_sqlObject



310
311
312
# File 'lib/lilit_sql.rb', line 310

def decl_sql
  'count(*)'
end

#ref_sqlObject



306
307
308
# File 'lib/lilit_sql.rb', line 306

def ref_sql
  decl_sql
end