toSQL method

  1. @override
String toSQL()
override

Generates SQL by combining conditions with the specified logic.

Returns the combined SQL string.

Implementation

@override
String toSQL() {
  var res = [];
  for (var condition in conditions) {
    res.add(condition.toSQL());
  }
  return res.join('  ${type == WhereType.AND ? 'AND' : 'OR'} ');
}