Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

ConditionalSelect.md

98 lines1.6 KB

Class: ConditionalSelect

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

Extends

  • BaseExpression

Constructors

Constructor

new ConditionalSelect(branches, defaultValue?): ConditionalSelect;

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

Parameters

branches

ConditionalSelectBranch[]

defaultValue?

SelectValueExpression

Returns

ConditionalSelect

Overrides

BaseExpression.constructor

Properties

__returnType

readonly __returnType: any;

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

Internal

  • Type brand for TypeScript inference

Inherited from

BaseExpression.__returnType

branches

branches: ConditionalSelectBranch[];

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


defaultValue?

optional defaultValue: SelectValueExpression;

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


type

type: "conditionalSelect";

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

Overrides

BaseExpression.type