UpdateOperation.condition

Limits the update 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 UpdateOperation(T : Model, bool hasWhere = false)
@safe return scope @trusted
static if(!hasWhere)
UpdateOperation!(T, true)
condition

Meta