optional<RS> method
Only apply a part of the query if enabled
is true.
Implementation
QueryBuilder<OBJ, OBJ, RS> optional<RS>(
bool enabled, QueryOption<OBJ, S, RS> option) {
if (enabled) {
return option(this);
} else {
return castInternal();
}
}