fork method

SelectQuery fork ()

Reproduce a partial query to use in a loop or other dynamic pattern.

Implementation

SelectQuery fork() {
  var q = SelectQuery(table);
  q.importSubstitutionValues(substitutionValues);
  q._selectClause = _selectClause.clone();
  q._orderByClause = _orderByClause.clone();
  q._groupByClause = _groupByClause?.clone();
  q._limitClause = _limitClause?.clone();
  q._offsetClause = _offsetClause?.clone();
  return q;
}