Method: Sequel::MySQL::DatasetMethods#calc_found_rows

Defined in:
lib/sequel/adapters/shared/mysql.rb

#calc_found_rowsObject

Sets up the select methods to use SQL_CALC_FOUND_ROWS option.

dataset.calc_found_rows.limit(10)
# SELECT SQL_CALC_FOUND_ROWS * FROM table LIMIT 10

761
762
763
# File 'lib/sequel/adapters/shared/mysql.rb', line 761

def calc_found_rows
  clone(:calc_found_rows => true)
end