RemoveOperation

This is the builder struct that's used for delete operations.

Don't construct this struct manually, use the db.remove or tx.remove method to create this struct.

Finishing methods you can call on this builder: - byCondition to delete all rows matching the condition. - single to delete a single instance, matched by primary key. - all to delete all rows in the table.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

ConditionBuilderCallback
alias ConditionBuilderCallback = Condition delegate(ConditionBuilder!T)

Argument to condition. Callback that takes in a ConditionBuilder!T and returns a Condition that can easily be created using that builder.

Functions

all
ulong all()

Deletes all entries in this model.

bulk
ulong bulk(T[] values)

Deletes the passed-in values by limiting the delete operation to the primary key of this instance.

byCondition
ulong byCondition(ConditionBuilderCallback callback)

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

single
bool single(T value)
bool single(P patch)

Deletes the passed-in value by limiting the delete operation to the primary key of this instance.

Meta