removeSelect method

Sqler removeSelect(
  1. QSelectField select
)

Removes a specific SELECT field from the query by comparing SQL output.

select The SELECT field to remove. Returns this to enable method chaining.

Example:

query.removeSelect(QSelect('name')); // Removes the name field from SELECT

Implementation

Sqler removeSelect(QSelectField select) {
  _select.removeWhere((e) => e.toSQL() == select.toSQL());
  return this;
}