where method

Query where(
  1. dynamic column,
  2. dynamic operator,
  3. dynamic value
)

Implementation

Query where(column, operator, value) {
  if (!_lastQuery.contains('WHERE')) {
    _lastQuery += ' WHERE ';
  } else {
    _lastQuery += ' AND ';
  }

  _lastQuery += (column) + ' ' + (operator ?? '=') + ' ' + (value == null ? 'NULL' : checkIntType(value));
  return this;
}