Polyglot SQL API Documentation - v0.1.0
    Preparing search index...

    Type Alias Case

    Represent a CASE expression (both simple and searched forms).

    When operand is Some, this is a simple CASE (CASE x WHEN 1 THEN ...). When operand is None, this is a searched CASE (CASE WHEN x > 0 THEN ...). Each entry in whens is a (condition, result) pair.

    type Case = {
        else_: Expression | null;
        operand: Expression | null;
        whens: [Expression, Expression][];
    }
    Index

    Properties

    Properties

    else_: Expression | null

    Optional ELSE result.

    operand: Expression | null

    The operand for simple CASE, or None for searched CASE.

    Pairs of (WHEN condition, THEN result).