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