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

ConditionalSelect.md

96 lines1.6 KB

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

Extends

  • BaseExpression

Constructors

Constructor

new ConditionalSelect(branches, defaultValue?): ConditionalSelect;

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

Parameters

branches

ConditionalSelectBranch[]

defaultValue?

SelectValueExpression

Returns

ConditionalSelect

Overrides

BaseExpression.constructor

Properties

__returnType

readonly __returnType: any;

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

Internal

  • Type brand for TypeScript inference

Inherited from

BaseExpression.__returnType

branches

branches: ConditionalSelectBranch[];

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


defaultValue?

optional defaultValue: SelectValueExpression;

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


type

type: "conditionalSelect";

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

Overrides

BaseExpression.type