toSQL<T extends SqlType> method

  1. @override
String toSQL<T extends SqlType>()
override

Generates SQL by combining conditions with the specified logic.

Returns the combined SQL string.

Implementation

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