Method: Wings::Model::SQLite.count
- Defined in:
- lib/wings/sqlite_model.rb
.count ⇒ Object
49 50 51 52 53 54 |
# File 'lib/wings/sqlite_model.rb', line 49 def self.count sql = <<SQL SELECT COUNT(*) FROM #{table}; SQL db.execute(sql)[0][0] end |