Defined in: packages/db/src/query/builder/types.ts:43
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;baseSchema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:45
fromSourceName: string;fromSourceName: string;Defined in: packages/db/src/query/builder/types.ts:51
optional fromSourceNames: readonly string[];optional fromSourceNames: readonly string[];Defined in: packages/db/src/query/builder/types.ts:53
optional hasJoins: boolean;optional hasJoins: boolean;Defined in: packages/db/src/query/builder/types.ts:57
optional hasResult: true;optional hasResult: true;Defined in: packages/db/src/query/builder/types.ts:66
optional hasUnionFrom: true;optional hasUnionFrom: true;Defined in: packages/db/src/query/builder/types.ts:55
optional joinTypes: Record<string, "inner" | "left" | "right" | "full" | "outer" | "cross">;optional joinTypes: Record<string, "inner" | "left" | "right" | "full" | "outer" | "cross">;Defined in: packages/db/src/query/builder/types.ts:59
optional refsSchema: ContextSchema;optional refsSchema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:49
optional result: any;optional result: any;Defined in: packages/db/src/query/builder/types.ts:64
schema: ContextSchema;schema: ContextSchema;Defined in: packages/db/src/query/builder/types.ts:47
optional singleResult: boolean;optional singleResult: boolean;Defined in: packages/db/src/query/builder/types.ts:68