limit method

DBHelper limit(
  1. int count, [
  2. int offset = 0
])

Implementation

DBHelper limit(int count, [int offset = 0]) {
  if (_query.contains("SELECT")) {
    if (!_query.contains("LIMIT")) {
      _query += " LIMIT  $count  OFFSET $offset ";
    }
  } else {
    _query += "SELECT * FROM $table LIMIT  $count  OFFSET $offset ";
  }

  return this;
}