QBCase
Properties Summarized
Type | Name | Summary |
---|---|---|
Get query builder parent table clause, this may be a query or a join clause. | ||
Get query builder parent. |
Methods Summarized
Type | Name | Summary |
---|---|---|
Set the return value to use when none of the when-clauses conditions are met. | ||
Add a when-clause to the case searched expression. |
Properties Detailed
parent
Get query builder parent table clause, this may be a query or a join clause.
Type QBTableClause
Sample
root
Get query builder parent.
Type QBSelect
Sample
Methods Detailed
else(value)
Set the return value to use when none of the when-clauses conditions are met.
Parameters
Object value The value.
Returns: QBColumn
Sample
when(condition)
Add a when-clause to the case searched expression.
Parameters
QBCondition condition The condition.
Returns: QBCaseWhen
Sample
Last updated