Skip to content

SubqueryRef

Defined in: packages/contracts/src/predicate.ts:63

The inner half of an IN test: the set of project values over table’s rows matching where. where may itself contain subquery leaves. Single column only — the engine has no composite (a, b) IN (…). Subqueries must stay uncorrelated: the inner where references the inner table’s columns only, never the outer row’s.

TValue extends PredicateValue = PredicateValue

readonly optional __value?: TValue

Defined in: packages/contracts/src/predicate.ts:72

Phantom: the projected column’s value type, carried so p.in can require the OUTER column to be comparable with what the subquery actually projects. Never serialized — it is a type-level marker only, which is why it is optional and never read.


project: string

Defined in: packages/contracts/src/predicate.ts:65


table: string

Defined in: packages/contracts/src/predicate.ts:64


optional where?: Predicate

Defined in: packages/contracts/src/predicate.ts:66