Skip to main content

ConditionalSelect

Defined in: packages/db/src/query/ir.ts:245

Extends

  • BaseExpression

Constructors

Constructor

new ConditionalSelect(branches, defaultValue?): ConditionalSelect;

Defined in: packages/db/src/query/ir.ts:247

Parameters

branches

ConditionalSelectBranch[]

defaultValue?

SelectValueExpression

Returns

ConditionalSelect

Overrides

BaseExpression.constructor

Properties

__returnType

readonly __returnType: any;

Defined in: packages/db/src/query/ir.ts:79

Internal

  • Type brand for TypeScript inference

Inherited from

BaseExpression.__returnType

branches

branches: ConditionalSelectBranch[];

Defined in: packages/db/src/query/ir.ts:248


defaultValue?

optional defaultValue: SelectValueExpression;

Defined in: packages/db/src/query/ir.ts:249


type

type: "conditionalSelect";

Defined in: packages/db/src/query/ir.ts:246

Overrides

BaseExpression.type