removeWhere method

Sqler removeWhere(
  1. Where where
)

Removes a specific WHERE condition from the query by comparing SQL output.

where The WHERE condition to remove. Returns this to enable method chaining.

Example:

query.removeWhere(WhereOne(QField('active'), QO.EQ, QVar(true))); // Removes this WHERE condition

Implementation

Sqler removeWhere(Where where) {
  _where.removeWhere((e) => e.toSQL() == where.toSQL());
  return this;
}