@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
13 lines • 640 B
TypeScript
import type { ExprValue } from '../types.js';
import { CaseNode } from '../ast/case.js';
/**
* Create a new conditional CASE statement. If three arguments are provided,
* acts like a ternary conditional (if, then, else). If no arguments are
* provided, the chained `when` and `else` methods can be used to to complete
* a conditional statement with WHEN/THEN and ELSE expressions.
* @param when A conditional WHEN expression.
* @param then A THEN value expression.
* @param other An ELSE expression.
*/
export declare function cond(when?: ExprValue, then?: ExprValue, other?: ExprValue): CaseNode;
//# sourceMappingURL=case.d.ts.map