Defined in: packages/db/src/query/builder/types.ts:47
Context - The central state container for query builder operations
This interface tracks all the information needed to build and type-check queries:
Schema Management:
Query State:
Result Tracking:
The context evolves through the query builder chain:
baseSchema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:49
fromSourceName: string;Defined in: packages/db/src/query/builder/types.ts:55
optional fromSourceNames: readonly string[];Defined in: packages/db/src/query/builder/types.ts:57
optional hasJoins: boolean;Defined in: packages/db/src/query/builder/types.ts:61
optional hasResult: true;Defined in: packages/db/src/query/builder/types.ts:70
optional hasUnionFrom: true;Defined in: packages/db/src/query/builder/types.ts:59
optional joinTypes: Record<string, "inner" | "left" | "right" | "full" | "outer" | "cross">;Defined in: packages/db/src/query/builder/types.ts:63
optional refsSchema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:53
optional result: any;Defined in: packages/db/src/query/builder/types.ts:68
schema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:51
optional singleResult: boolean;Defined in: packages/db/src/query/builder/types.ts:72