Method: Sip::DBBase#rowcount

Defined in:
lib/sip/databases/dbbase.rb

#rowcount(table) ⇒ Object



23
24
25
# File 'lib/sip/databases/dbbase.rb', line 23

def rowcount(table)
  query('SELECT count(1) FROM #{table}').first.first.to_i
end