whereDateBetween method

Query whereDateBetween(
  1. dynamic columnName,
  2. dynamic startValue,
  3. dynamic endValue
)

Implementation

Query whereDateBetween(columnName, startValue, endValue) {
  if (!_lastQuery.contains('WHERE')) {
    _lastQuery += ' WHERE ';
  } else {
    _lastQuery += ' AND ';
  }

  _lastQuery += ' $columnName BETWEEN ${checkIntType(startValue)} AND ${checkIntType(endValue)}';

  return this;
}