3#include <iron_query/condition.hpp>
4#include <iron_query/expr.hpp>
40 std::string pending_when_;
42 bool has_pending_when_{
false};
Transitional representation for CASE WHEN ... END.
Definition case_builder.hpp:13
CaseBuilder Else(Expr result) &&
Sets the ELSE result fallback branch.
CaseBuilder Then(Expr result) &&
Completes the pending branch as WHEN cond THEN result.
CaseBuilder()=default
Starts an empty CASE expression; call When to add branches.
CaseBuilder When(Condition cond) &&
Begins a new WHEN cond branch.
Expr End() const
Finalizes the expression as CASE ... [ELSE ...] END.
A boolean-valued SQL predicate, e.g. the result of a comparison, LIKE/IN/BETWEEN/IS [NOT] NULL,...
Definition condition.hpp:25
Arbitrary SQL expression.
Definition expr.hpp:46
CaseBuilder Case()
Handy fabric for CaseBuilder.