ConditionBuilder

This is the type of the variable that is passed into the condition callback at runtime on the SelectOperation struct. It automatically mirrors all DORM fields that are defined on the passed-in T Model class.

Fields can be accessed with the same name they were defined in the Model class. Embedded structs will only use the deepest variable name, e.g. a nested field of name userCommon.username will only need to be accessed using username. Duplicate / shadowing members is not implemented and will be unable to use the condition builder on them.

If any boolean types are defined in the model, they can be quickly checked to be false using the not.booleanFieldName helper. See NotConditionBuilder for this.

When mistyping names, an expressive error message is printed as compile time output, showing all possible members for convenience.

Members

Functions

not
void not()

Helper to quickly create field == false conditions for boolean fields.

Mixins

__anonymous
mixin DynamicMissingMemberErrorHelper!"condition field"
Undocumented in source.

Variables

not
NotConditionBuilder!T not;

Helper to quickly create field == false conditions for boolean fields.

Mixed In Members

From mixin DynamicMissingMemberErrorHelper!"condition field"

opDispatch
auto opDispatch()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta