SelectOperation.condition

Limits the query to only rows matching this condition. Maps to the WHERE clause in an SQL statement.

This method may only be called once on each query.

See ConditionBuilder to see how the callback-based overload is implemented. Basically the argument that is passed to the callback is a virtual type that mirrors all the DB-related types from the Model class, on which operations such as .equals or .like can be called to generate conditions.

Use the Condition.and(...), Condition.or(...) or Condition.not(...) methods to combine conditions into more complex ones. You can also choose to not use the builder object at all and integrate manually constructed

struct SelectOperation(T, TSelect, bool hasWhere = false, bool hasOffset = false, bool hasLimit = false)
@safe return @trusted
static if(!hasWhere)
SelectOperation!(T, TSelect, true, hasOffset, hasLimit)
condition

Meta