removeFrom method

Sqler removeFrom(
  1. QField from
)

Removes a specific FROM table from the query by comparing SQL output.

from The table to remove from FROM clause. Returns this to enable method chaining.

Example:

query.removeFrom(QField('users')); // Removes users table from FROM

Implementation

Sqler removeFrom(QField from) {
  _from.removeWhere((e) => e.toSQL() == from.toSQL());
  return this;
}