RemoveOperation.byCondition

Deletes the rows matching this condition. Maps to the WHERE clause in an SQL statement.

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 RemoveOperation(T : Model)
@safe return @trusted
ulong
byCondition

Return Value

Type: ulong

DB-returned number of how many rows have been touched. May also include foreign rows deleted by referential actions and other things.

Bugs

currently does not support joins because the underlying library doesn't expose them yet.

Meta