restrictOnUpdate method

dynamic restrictOnUpdate()

Implementation

restrictOnUpdate() {
  _query += " ON UPDATE SET  restrict ";

  if (_query.contains("DELETE")) {
    query = query.contains(",") ? query.replaceAll(",", "") : query;
    return "$query $_query , ";
  }
  return this;
}