where

Appends a condition to the query's WHERE clause

// …FROM mountain WHERE height > ?…
Query qMountainsGreaterThan = table("mountain").qb.where("height", '>');

// …FROM mountain WHERE height > ?…
// Pre-sets the value `8000` for the dynamic paramter.
Query qMountainsGreaterThan = table("mountain").qb.where("height", '>', 8000);

// …FROM people WHERE ago > ? AND age < ?…
// Pre-sets the values 60 and 100 for the dynamic paramters.
Query qOver60butNot100yet = table("people").qb
    .where("age", '>', 60)
    .where("age", ComparisonOperator.lessThan, 100)
;

// …FROM people WHERE name = ? OR name = ?…
Query qNameAorB = table("people").qb
    .where   ("name", '=')
    .where!or("name", '=')              // explicit !or as !and is the default
;

ditto

  1. Query where(Query q, Column column, TComparisonOperator op)
  2. Query where(Query q, string column, TComparisonOperator op)
  3. Query where(Query q, Column column, TComparisonOperator op, T value)
    @safe pure @trusted
    where
    (
    LogicalOperator logicalJunction = and
    TComparisonOperator
    T
    )
    (,,
    TComparisonOperator op
    ,)
  4. Query where(Query q, string column, TComparisonOperator op, T value)

Meta