where method

ConjunctionBase where(
  1. String? whereCriteria, {
  2. dynamic parameterValue,
})

String whereCriteria, write raw query without 'where' keyword. Like this: 'field1 like 'test%' and field2 = 3'

Implementation

ConjunctionBase where(String? whereCriteria, {dynamic parameterValue}) {
  if (whereCriteria != null && whereCriteria != '') {
    final DbParameter param = DbParameter(columnName: parameterValue == null ? null : '', hasParameter: parameterValue != null);
    _addedBlocks = setCriteria(parameterValue ?? 0, parameters, param, '($whereCriteria)', _addedBlocks);
    _addedBlocks.needEndBlock![_blockIndex] = _addedBlocks.retVal;
  }
  return this;
}