where method

Sqler where(
  1. Where where
)

Adds a WHERE condition to the query.

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

Multiple WHERE conditions are combined with AND.

Example:

query.where(WhereOne(QField('active'), QO.EQ, QVar(true))); // WHERE active = true

Implementation

Sqler where(Where where) {
  _where.add(where);
  return this;
}