@prisma-next/sql-relational-core 0.3.0-pr.93.5 → 0.3.0-pr.94.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/errors-BwxypN2Q.mjs +3 -0
  2. package/dist/errors-CLx1Ylq0.d.mts +2 -0
  3. package/dist/exports/ast.d.mts +123 -0
  4. package/dist/exports/ast.d.mts.map +1 -0
  5. package/dist/exports/ast.mjs +304 -0
  6. package/dist/exports/ast.mjs.map +1 -0
  7. package/dist/exports/errors.d.mts +2 -0
  8. package/dist/exports/errors.mjs +3 -0
  9. package/dist/exports/guards.d.mts +88 -0
  10. package/dist/exports/guards.d.mts.map +1 -0
  11. package/dist/exports/guards.mjs +3 -0
  12. package/dist/exports/operations-registry.d.mts +5 -0
  13. package/dist/exports/operations-registry.mjs +3 -0
  14. package/dist/exports/param.d.mts +5 -0
  15. package/dist/exports/param.mjs +3 -0
  16. package/dist/exports/plan.d.mts +2 -0
  17. package/dist/exports/plan.mjs +17 -0
  18. package/dist/exports/plan.mjs.map +1 -0
  19. package/dist/exports/query-lane-context.d.mts +2 -0
  20. package/dist/exports/query-lane-context.mjs +1 -0
  21. package/dist/exports/schema.d.mts +5 -0
  22. package/dist/exports/schema.mjs +4 -0
  23. package/dist/exports/types.d.mts +4 -0
  24. package/dist/exports/types.mjs +3 -0
  25. package/dist/guards-4T0IByJo.mjs +132 -0
  26. package/dist/guards-4T0IByJo.mjs.map +1 -0
  27. package/dist/index.d.mts +12 -0
  28. package/dist/index.mjs +12 -0
  29. package/dist/operations-registry-7R5KE2-5.mjs +152 -0
  30. package/dist/operations-registry-7R5KE2-5.mjs.map +1 -0
  31. package/dist/operations-registry-CIcn4f2P.d.mts +9 -0
  32. package/dist/operations-registry-CIcn4f2P.d.mts.map +1 -0
  33. package/dist/param-B4LzVPv2.d.mts +8 -0
  34. package/dist/param-B4LzVPv2.d.mts.map +1 -0
  35. package/dist/param-BFvNAaHR.mjs +14 -0
  36. package/dist/param-BFvNAaHR.mjs.map +1 -0
  37. package/dist/plan-9PvH-Tu3.d.mts +157 -0
  38. package/dist/plan-9PvH-Tu3.d.mts.map +1 -0
  39. package/dist/query-lane-context-wr_XXnB5.d.mts +143 -0
  40. package/dist/query-lane-context-wr_XXnB5.d.mts.map +1 -0
  41. package/dist/schema-BsY2EXAf.mjs +148 -0
  42. package/dist/schema-BsY2EXAf.mjs.map +1 -0
  43. package/dist/schema-Dse48uyP.d.mts +63 -0
  44. package/dist/schema-Dse48uyP.d.mts.map +1 -0
  45. package/dist/types-Bg2kUmUA.d.mts +359 -0
  46. package/dist/types-Bg2kUmUA.d.mts.map +1 -0
  47. package/dist/types-D_FRJvm0.mjs +18 -0
  48. package/dist/types-D_FRJvm0.mjs.map +1 -0
  49. package/package.json +28 -50
  50. package/src/ast/predicate.ts +3 -11
  51. package/src/ast/types.ts +23 -9
  52. package/src/exports/guards.ts +5 -0
  53. package/src/operations-registry.ts +112 -73
  54. package/src/schema.ts +40 -29
  55. package/src/types.ts +102 -52
  56. package/src/utils/guards.ts +88 -18
  57. package/dist/ast/adapter-types.d.ts +0 -28
  58. package/dist/ast/adapter-types.d.ts.map +0 -1
  59. package/dist/ast/codec-types.d.ts +0 -141
  60. package/dist/ast/codec-types.d.ts.map +0 -1
  61. package/dist/ast/common.d.ts +0 -7
  62. package/dist/ast/common.d.ts.map +0 -1
  63. package/dist/ast/delete.d.ts +0 -8
  64. package/dist/ast/delete.d.ts.map +0 -1
  65. package/dist/ast/driver-types.d.ts +0 -20
  66. package/dist/ast/driver-types.d.ts.map +0 -1
  67. package/dist/ast/insert.d.ts +0 -8
  68. package/dist/ast/insert.d.ts.map +0 -1
  69. package/dist/ast/join.d.ts +0 -6
  70. package/dist/ast/join.d.ts.map +0 -1
  71. package/dist/ast/order.d.ts +0 -6
  72. package/dist/ast/order.d.ts.map +0 -1
  73. package/dist/ast/predicate.d.ts +0 -4
  74. package/dist/ast/predicate.d.ts.map +0 -1
  75. package/dist/ast/select.d.ts +0 -18
  76. package/dist/ast/select.d.ts.map +0 -1
  77. package/dist/ast/types.d.ts +0 -118
  78. package/dist/ast/types.d.ts.map +0 -1
  79. package/dist/ast/update.d.ts +0 -9
  80. package/dist/ast/update.d.ts.map +0 -1
  81. package/dist/ast/util.d.ts +0 -2
  82. package/dist/ast/util.d.ts.map +0 -1
  83. package/dist/chunk-2F7DSEOU.js +0 -8
  84. package/dist/chunk-2F7DSEOU.js.map +0 -1
  85. package/dist/chunk-36WJWNHT.js +0 -1
  86. package/dist/chunk-36WJWNHT.js.map +0 -1
  87. package/dist/chunk-5N34PNVZ.js +0 -62
  88. package/dist/chunk-5N34PNVZ.js.map +0 -1
  89. package/dist/chunk-7I3EMQID.js +0 -16
  90. package/dist/chunk-7I3EMQID.js.map +0 -1
  91. package/dist/chunk-D4JLPIWO.js +0 -13
  92. package/dist/chunk-D4JLPIWO.js.map +0 -1
  93. package/dist/chunk-G52ENULI.js +0 -1
  94. package/dist/chunk-G52ENULI.js.map +0 -1
  95. package/dist/chunk-J6O2HVBM.js +0 -320
  96. package/dist/chunk-J6O2HVBM.js.map +0 -1
  97. package/dist/chunk-KYSP7L5C.js +0 -16
  98. package/dist/chunk-KYSP7L5C.js.map +0 -1
  99. package/dist/chunk-M23L3JHG.js +0 -159
  100. package/dist/chunk-M23L3JHG.js.map +0 -1
  101. package/dist/chunk-U7AXAUJA.js +0 -1
  102. package/dist/chunk-U7AXAUJA.js.map +0 -1
  103. package/dist/chunk-U7IAFPVU.js +0 -152
  104. package/dist/chunk-U7IAFPVU.js.map +0 -1
  105. package/dist/errors.d.ts +0 -2
  106. package/dist/errors.d.ts.map +0 -1
  107. package/dist/exports/ast.d.ts +0 -14
  108. package/dist/exports/ast.d.ts.map +0 -1
  109. package/dist/exports/ast.js +0 -46
  110. package/dist/exports/ast.js.map +0 -1
  111. package/dist/exports/errors.d.ts +0 -2
  112. package/dist/exports/errors.d.ts.map +0 -1
  113. package/dist/exports/errors.js +0 -9
  114. package/dist/exports/errors.js.map +0 -1
  115. package/dist/exports/guards.d.ts +0 -2
  116. package/dist/exports/guards.d.ts.map +0 -1
  117. package/dist/exports/guards.js +0 -21
  118. package/dist/exports/guards.js.map +0 -1
  119. package/dist/exports/operations-registry.d.ts +0 -2
  120. package/dist/exports/operations-registry.d.ts.map +0 -1
  121. package/dist/exports/operations-registry.js +0 -9
  122. package/dist/exports/operations-registry.js.map +0 -1
  123. package/dist/exports/param.d.ts +0 -3
  124. package/dist/exports/param.d.ts.map +0 -1
  125. package/dist/exports/param.js +0 -7
  126. package/dist/exports/param.js.map +0 -1
  127. package/dist/exports/plan.d.ts +0 -2
  128. package/dist/exports/plan.d.ts.map +0 -1
  129. package/dist/exports/plan.js +0 -7
  130. package/dist/exports/plan.js.map +0 -1
  131. package/dist/exports/query-lane-context.d.ts +0 -2
  132. package/dist/exports/query-lane-context.d.ts.map +0 -1
  133. package/dist/exports/query-lane-context.js +0 -2
  134. package/dist/exports/query-lane-context.js.map +0 -1
  135. package/dist/exports/schema.d.ts +0 -3
  136. package/dist/exports/schema.d.ts.map +0 -1
  137. package/dist/exports/schema.js +0 -14
  138. package/dist/exports/schema.js.map +0 -1
  139. package/dist/exports/types.d.ts +0 -2
  140. package/dist/exports/types.d.ts.map +0 -1
  141. package/dist/exports/types.js +0 -10
  142. package/dist/exports/types.js.map +0 -1
  143. package/dist/index.d.ts +0 -9
  144. package/dist/index.d.ts.map +0 -1
  145. package/dist/index.js +0 -81
  146. package/dist/index.js.map +0 -1
  147. package/dist/operations-registry.d.ts +0 -5
  148. package/dist/operations-registry.d.ts.map +0 -1
  149. package/dist/param.d.ts +0 -4
  150. package/dist/param.d.ts.map +0 -1
  151. package/dist/plan.d.ts +0 -23
  152. package/dist/plan.d.ts.map +0 -1
  153. package/dist/query-lane-context.d.ts +0 -16
  154. package/dist/query-lane-context.d.ts.map +0 -1
  155. package/dist/schema.d.ts +0 -63
  156. package/dist/schema.d.ts.map +0 -1
  157. package/dist/types.d.ts +0 -332
  158. package/dist/types.d.ts.map +0 -1
  159. package/dist/utils/guards.d.ts +0 -55
  160. package/dist/utils/guards.d.ts.map +0 -1
package/dist/schema.d.ts DELETED
@@ -1,63 +0,0 @@
1
- import type { ExtractCodecTypes, ExtractOperationTypes, SqlContract, SqlStorage, StorageColumn } from '@prisma-next/sql-contract/types';
2
- import type { TableRef } from './ast/types';
3
- import type { QueryLaneContext } from './query-lane-context';
4
- import type { AnyColumnBuilderBase, BinaryBuilder, CodecTypes as CodecTypesType, ColumnBuilder, ComputeColumnJsType, OperationTypeSignature, OperationTypes, OrderBuilder, ParamPlaceholder } from './types';
5
- type TableColumns<Table extends {
6
- columns: Record<string, StorageColumn>;
7
- }> = Table['columns'];
8
- type ColumnBuilders<Contract extends SqlContract<SqlStorage>, TableName extends string, Columns extends Record<string, StorageColumn>, CodecTypes extends CodecTypesType, Operations extends OperationTypes> = {
9
- readonly [K in keyof Columns]: ColumnBuilder<K & string, Columns[K], ComputeColumnJsType<Contract, TableName, K & string, Columns[K], CodecTypes>, Operations>;
10
- };
11
- export declare class ColumnBuilderImpl<ColumnName extends string, ColumnMeta extends StorageColumn, JsType = unknown> {
12
- readonly table: string;
13
- readonly column: ColumnName;
14
- private readonly storageColumn;
15
- readonly kind: "column";
16
- constructor(table: string, column: ColumnName, storageColumn: ColumnMeta);
17
- get columnMeta(): ColumnMeta;
18
- get __jsType(): JsType;
19
- private createBinaryBuilder;
20
- eq(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
21
- neq(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
22
- gt(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
23
- lt(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
24
- gte(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
25
- lte(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
26
- asc(): OrderBuilder<ColumnName, ColumnMeta, JsType>;
27
- desc(): OrderBuilder<ColumnName, ColumnMeta, JsType>;
28
- }
29
- export declare class TableBuilderImpl<Contract extends SqlContract<SqlStorage>, TableName extends string, Columns extends Record<string, StorageColumn>, CodecTypes extends CodecTypesType, Operations extends OperationTypes> implements TableRef {
30
- readonly kind: "table";
31
- readonly columns: ColumnBuilders<Contract, TableName, Columns, CodecTypes, Operations>;
32
- private readonly _name;
33
- constructor(name: TableName, columns: ColumnBuilders<Contract, TableName, Columns, CodecTypes, Operations>);
34
- get name(): string;
35
- }
36
- type ExtractSchemaTables<Contract extends SqlContract<SqlStorage>, CodecTypes extends CodecTypesType, Operations extends OperationTypes> = {
37
- readonly [TableName in keyof Contract['storage']['tables']]: TableBuilderImpl<Contract, TableName & string, TableColumns<Contract['storage']['tables'][TableName]>, CodecTypes, Operations> & TableRef;
38
- };
39
- export type SchemaHandle<Contract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>, CodecTypes extends CodecTypesType = CodecTypesType, Operations extends OperationTypes = Record<string, never>> = {
40
- readonly tables: ExtractSchemaTables<Contract, CodecTypes, Operations>;
41
- };
42
- type SchemaReturnType<Contract extends SqlContract<SqlStorage>> = SchemaHandle<Contract, ExtractCodecTypes<Contract>, ToOperationTypes<ExtractOperationTypes<Contract>>>;
43
- type NormalizeOperationTypes<T> = {
44
- [TypeId in keyof T]: {
45
- [Method in keyof T[TypeId]]: T[TypeId][Method] extends OperationTypeSignature ? T[TypeId][Method] : OperationTypeSignature;
46
- };
47
- };
48
- type ToOperationTypes<T> = T extends OperationTypes ? T : NormalizeOperationTypes<T>;
49
- /**
50
- * Creates a schema handle for building SQL queries.
51
- *
52
- * @param context - Query lane context containing contract, codec and operation registries
53
- * @returns A schema handle with typed table builders
54
- *
55
- * @example
56
- * ```typescript
57
- * const schemaHandle = schema<Contract>(context);
58
- * const userTable = schemaHandle.tables.user;
59
- * ```
60
- */
61
- export declare function schema<Contract extends SqlContract<SqlStorage>>(context: QueryLaneContext<Contract>): SchemaReturnType<Contract>;
62
- export type { ColumnBuilderImpl as Column, TableBuilderImpl as Table };
63
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,aAAa,EACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,UAAU,IAAI,cAAc,EAC5B,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAGjB,KAAK,YAAY,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAAE,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;AAE/F,KAAK,cAAc,CACjB,QAAQ,SAAS,WAAW,CAAC,UAAU,CAAC,EACxC,SAAS,SAAS,MAAM,EACxB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC7C,UAAU,SAAS,cAAc,EACjC,UAAU,SAAS,cAAc,IAC/B;IACF,QAAQ,EAAE,CAAC,IAAI,MAAM,OAAO,GAAG,aAAa,CAC1C,CAAC,GAAG,MAAM,EACV,OAAO,CAAC,CAAC,CAAC,EACV,mBAAmB,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EA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mB,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;CACxE,CAAC;AAEF,KAAK,gBAAgB,CAAC,QAAQ,SAAS,WAAW,CAAC,UAAU,CAAC,IAAI,YAAY,CAC5E,QAAQ,EACR,iBAAiB,CAAC,QAAQ,CAAC,EAC3B,gBAAgB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAClD,CAAC;AAEF,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAC/B,MAAM,IAAI,MAAM,CAAC,GAAG;SAClB,MAAM,IAAI,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,SAAS,sBAAsB,GACzE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GACjB,sBAAsB;KAC3B;CACF,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,cAAc,GAAG,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC;AAErF;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,QAAQ,SAAS,WAAW,CAAC,UAAU,CAAC,EAC7D,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAClC,gBAAgB,CAAC,QAAQ,CAAC,CAwC5B;AAED,YAAY,EAAE,iBAAiB,IAAI,MAAM,EAAE,gBAAgB,IAAI,KAAK,EAAE,CAAC"}
package/dist/types.d.ts DELETED
@@ -1,332 +0,0 @@
1
- import type { ResultType as CoreResultType, ExecutionPlan, PlanRefs } from '@prisma-next/contract/types';
2
- import type { ArgSpec, ReturnSpec } from '@prisma-next/operations';
3
- import type { SqlContract, SqlStorage, StorageColumn } from '@prisma-next/sql-contract/types';
4
- import type { SqlLoweringSpec } from '@prisma-next/sql-operations';
5
- import type { BinaryOp, ColumnRef, Direction, OperationExpr, ParamRef, QueryAst } from './ast/types';
6
- import type { SqlQueryPlan } from './plan';
7
- import type { QueryLaneContext } from './query-lane-context';
8
- export interface ParamPlaceholder {
9
- readonly kind: 'param-placeholder';
10
- readonly name: string;
11
- }
12
- export interface OrderBuilder<ColumnName extends string = string, ColumnMeta extends StorageColumn = StorageColumn, JsType = unknown> {
13
- readonly kind: 'order';
14
- readonly expr: ColumnBuilder<ColumnName, ColumnMeta, JsType> | OperationExpr;
15
- readonly dir: Direction;
16
- }
17
- /**
18
- * Creates an OrderBuilder for use in orderBy clauses.
19
- */
20
- export declare function createOrderBuilder(expr: AnyColumnBuilder | OperationExpr, dir: Direction): AnyOrderBuilder;
21
- /**
22
- * ColumnBuilder with optional operation methods based on the column's typeId.
23
- * When Operations is provided and the column's typeId matches, operation methods are included.
24
- */
25
- export type ColumnBuilder<ColumnName extends string = string, ColumnMeta extends StorageColumn = StorageColumn, JsType = unknown, Operations extends OperationTypes = Record<string, never>> = {
26
- readonly kind: 'column';
27
- readonly table: string;
28
- readonly column: ColumnName;
29
- readonly columnMeta: ColumnMeta;
30
- eq(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
31
- neq(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
32
- gt(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
33
- lt(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
34
- gte(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
35
- lte(value: ParamPlaceholder | AnyColumnBuilderBase): BinaryBuilder<ColumnName, ColumnMeta, JsType>;
36
- asc(): OrderBuilder<ColumnName, ColumnMeta, JsType>;
37
- desc(): OrderBuilder<ColumnName, ColumnMeta, JsType>;
38
- readonly __jsType: JsType;
39
- } & (ColumnMeta['codecId'] extends string ? ColumnMeta['codecId'] extends keyof Operations ? OperationMethods<OperationsForTypeId<ColumnMeta['codecId'] & string, Operations>, ColumnName, StorageColumn, JsType> : Record<string, never> : Record<string, never>);
40
- export interface BinaryBuilder<ColumnName extends string = string, ColumnMeta extends StorageColumn = StorageColumn, JsType = unknown> {
41
- readonly kind: 'binary';
42
- readonly op: BinaryOp;
43
- readonly left: ColumnBuilder<ColumnName, ColumnMeta, JsType> | OperationExpr;
44
- readonly right: ParamPlaceholder | AnyColumnBuilderBase;
45
- }
46
- export type AnyColumnBuilderBase = {
47
- readonly kind: 'column';
48
- readonly table: string;
49
- readonly column: string;
50
- readonly columnMeta: StorageColumn;
51
- eq(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
52
- neq(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
53
- gt(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
54
- lt(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
55
- gte(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
56
- lte(value: ParamPlaceholder | AnyColumnBuilderBase): AnyBinaryBuilder;
57
- asc(): AnyOrderBuilder;
58
- desc(): AnyOrderBuilder;
59
- readonly __jsType: unknown;
60
- readonly [key: string]: unknown;
61
- };
62
- export type AnyColumnBuilder = ColumnBuilder<string, StorageColumn, unknown, any> | AnyColumnBuilderBase;
63
- export type AnyBinaryBuilder = BinaryBuilder<string, StorageColumn, unknown>;
64
- export type AnyOrderBuilder = OrderBuilder<string, StorageColumn, unknown>;
65
- export declare function isColumnBuilder(value: unknown): value is AnyColumnBuilder;
66
- export interface JoinOnBuilder {
67
- eqCol(left: AnyColumnBuilder, right: AnyColumnBuilder): JoinOnPredicate;
68
- }
69
- export interface JoinOnPredicate {
70
- readonly kind: 'join-on';
71
- readonly left: AnyColumnBuilder;
72
- readonly right: AnyColumnBuilder;
73
- }
74
- export type Expr = ColumnRef | ParamRef;
75
- /**
76
- * Helper type to extract codec output type from CodecTypes.
77
- * Returns never if the codecId is not found in CodecTypes.
78
- */
79
- type ExtractCodecOutputType<CodecId extends string, CodecTypes extends Record<string, {
80
- readonly output: unknown;
81
- }>> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends {
82
- readonly output: infer Output;
83
- } ? Output : never : never;
84
- /**
85
- * Type-level operation signature.
86
- * Represents an operation at the type level, similar to OperationSignature at runtime.
87
- */
88
- export type OperationTypeSignature = {
89
- readonly args: ReadonlyArray<ArgSpec>;
90
- readonly returns: ReturnSpec;
91
- readonly lowering: SqlLoweringSpec;
92
- readonly capabilities?: ReadonlyArray<string>;
93
- };
94
- /**
95
- * Type-level operation registry.
96
- * Maps typeId → operations, where operations is a record of method name → operation signature.
97
- *
98
- * Example:
99
- * ```typescript
100
- * type MyOperations: OperationTypes = {
101
- * 'pg/vector@1': {
102
- * cosineDistance: {
103
- * args: [{ kind: 'typeId'; type: 'pg/vector@1' }];
104
- * returns: { kind: 'builtin'; type: 'number' };
105
- * lowering: { targetFamily: 'sql'; strategy: 'function'; template: '...' };
106
- * };
107
- * };
108
- * };
109
- * ```
110
- */
111
- export type OperationTypes = Record<string, Record<string, OperationTypeSignature>>;
112
- /**
113
- * CodecTypes represents a map of typeId to codec definitions.
114
- * Each codec definition must have an `output` property indicating the JavaScript type.
115
- *
116
- * Example:
117
- * ```typescript
118
- * type MyCodecTypes: CodecTypes = {
119
- * 'pg/int4@1': { output: number };
120
- * 'pg/text@1': { output: string };
121
- * };
122
- * ```
123
- */
124
- export type CodecTypes = Record<string, {
125
- readonly output: unknown;
126
- }>;
127
- /**
128
- * Extracts operations for a given typeId from the operation registry.
129
- * Returns an empty record if the typeId is not found.
130
- *
131
- * @example
132
- * ```typescript
133
- * type Ops = OperationsForTypeId<'pg/vector@1', MyOperations>;
134
- * // Ops = { cosineDistance: { ... }, l2Distance: { ... } }
135
- * ```
136
- */
137
- export type OperationsForTypeId<TypeId extends string, Operations extends OperationTypes> = Operations extends Record<string, never> ? Record<string, never> : TypeId extends keyof Operations ? Operations[TypeId] : Record<string, never>;
138
- /**
139
- * Maps operation signatures to method signatures on ColumnBuilder.
140
- * Each operation becomes a method that returns a ColumnBuilder or BinaryBuilder
141
- * based on the return type.
142
- */
143
- type OperationMethods<Ops extends Record<string, OperationTypeSignature>, ColumnName extends string, ColumnMeta extends StorageColumn, JsType> = {
144
- [K in keyof Ops]: Ops[K] extends OperationTypeSignature ? (...args: OperationArgs<Ops[K]['args']>) => OperationReturn<Ops[K]['returns'], ColumnName, ColumnMeta, JsType> : never;
145
- };
146
- /**
147
- * Maps operation argument specs to TypeScript argument types.
148
- * - typeId args: ColumnBuilder (accepts base columns or operation results)
149
- * - param args: ParamPlaceholder
150
- * - literal args: unknown (could be more specific in future)
151
- */
152
- type OperationArgs<Args extends ReadonlyArray<ArgSpec>> = Args extends readonly [
153
- infer First,
154
- ...infer Rest
155
- ] ? First extends ArgSpec ? [ArgToType<First>, ...(Rest extends ReadonlyArray<ArgSpec> ? OperationArgs<Rest> : [])] : [] : [];
156
- type ArgToType<Arg extends ArgSpec> = Arg extends {
157
- kind: 'typeId';
158
- } ? AnyColumnBuilder : Arg extends {
159
- kind: 'param';
160
- } ? ParamPlaceholder : Arg extends {
161
- kind: 'literal';
162
- } ? unknown : never;
163
- /**
164
- * Maps operation return spec to return type.
165
- * - builtin types: ColumnBuilder with appropriate JsType (matches runtime behavior)
166
- * - typeId types: ColumnBuilder (for now, could be more specific in future)
167
- */
168
- type OperationReturn<Returns extends ReturnSpec, ColumnName extends string, ColumnMeta extends StorageColumn, _JsType> = Returns extends {
169
- kind: 'builtin';
170
- type: infer T;
171
- } ? T extends 'number' ? ColumnBuilder<ColumnName, ColumnMeta, number> : T extends 'boolean' ? ColumnBuilder<ColumnName, ColumnMeta, boolean> : T extends 'string' ? ColumnBuilder<ColumnName, ColumnMeta, string> : ColumnBuilder<ColumnName, ColumnMeta, unknown> : Returns extends {
172
- kind: 'typeId';
173
- } ? AnyColumnBuilder : ColumnBuilder<ColumnName, ColumnMeta, unknown>;
174
- /**
175
- * Computes JavaScript type for a column at column creation time.
176
- *
177
- * Type inference:
178
- * - Read columnMeta.codecId as typeId string literal
179
- * - Look up CodecTypes[typeId].output
180
- * - Apply nullability: nullable ? Output | null : Output
181
- */
182
- type ColumnMetaTypeId<ColumnMeta> = ColumnMeta extends {
183
- codecId: infer CodecId extends string;
184
- } ? CodecId : ColumnMeta extends {
185
- type: infer TypeId extends string;
186
- } ? TypeId : never;
187
- export type ComputeColumnJsType<_Contract extends SqlContract<SqlStorage>, _TableName extends string, _ColumnName extends string, ColumnMeta extends StorageColumn, CodecTypes extends Record<string, {
188
- readonly output: unknown;
189
- }>> = ColumnMeta extends {
190
- nullable: infer Nullable;
191
- } ? ColumnMetaTypeId<ColumnMeta> extends infer TypeId ? TypeId extends string ? ExtractCodecOutputType<TypeId, CodecTypes> extends infer CodecOutput ? [CodecOutput] extends [never] ? unknown : Nullable extends true ? CodecOutput | null : CodecOutput : unknown : unknown : unknown : unknown;
192
- /**
193
- * Infers Row type from a projection object.
194
- * Maps Record<string, ColumnBuilder> to Record<string, JSType>
195
- *
196
- * Extracts the pre-computed JsType from each ColumnBuilder in the projection.
197
- */
198
- /**
199
- * Extracts the inferred JsType carried by a ColumnBuilder.
200
- */
201
- type ExtractJsTypeFromColumnBuilder<CB extends AnyColumnBuilder> = CB extends ColumnBuilder<infer _ColumnName extends string, infer _ColumnMeta extends StorageColumn, infer JsType, infer _Ops> ? JsType : never;
202
- export type InferProjectionRow<P extends Record<string, AnyColumnBuilder>> = {
203
- [K in keyof P]: ExtractJsTypeFromColumnBuilder<P[K]>;
204
- };
205
- /**
206
- * Nested projection type - allows recursive nesting of ColumnBuilder or nested objects.
207
- */
208
- export type NestedProjection = Record<string, AnyColumnBuilder | Record<string, AnyColumnBuilder | Record<string, AnyColumnBuilder | Record<string, AnyColumnBuilder | Record<string, AnyColumnBuilder>>>>>;
209
- /**
210
- * Helper type to extract include type from Includes map.
211
- * Returns the value type if K is a key of Includes, otherwise returns unknown.
212
- */
213
- type ExtractIncludeType<K extends string, Includes extends Record<string, unknown>> = K extends keyof Includes ? Includes[K] : unknown;
214
- /**
215
- * Infers Row type from a nested projection object.
216
- * Recursively maps Record<string, ColumnBuilder | boolean | NestedProjection> to nested object types.
217
- *
218
- * Extracts the pre-computed JsType from each ColumnBuilder at leaves.
219
- * When a value is `true`, it represents an include reference and infers `Array<ChildShape>`
220
- * by looking up the include alias in the Includes type map.
221
- */
222
- export type InferNestedProjectionRow<P extends Record<string, AnyColumnBuilder | boolean | NestedProjection>, CodecTypes extends Record<string, {
223
- readonly output: unknown;
224
- }> = Record<string, never>, Includes extends Record<string, unknown> = Record<string, never>> = {
225
- [K in keyof P]: P[K] extends AnyColumnBuilder ? ExtractJsTypeFromColumnBuilder<P[K]> : P[K] extends true ? Array<ExtractIncludeType<K & string, Includes>> : P[K] extends NestedProjection ? InferNestedProjectionRow<P[K], CodecTypes, Includes> : never;
226
- };
227
- /**
228
- * Infers Row type from a tuple of ColumnBuilders used in returning() clause.
229
- * Extracts column name and JsType from each ColumnBuilder and creates a Record.
230
- */
231
- export type InferReturningRow<Columns extends readonly AnyColumnBuilder[]> = Columns extends readonly [infer First, ...infer Rest] ? First extends ColumnBuilder<infer Name, infer _Meta, infer JsType, infer _Ops extends OperationTypes> ? Name extends string ? Rest extends readonly AnyColumnBuilder[] ? {
232
- [K in Name]: JsType;
233
- } & InferReturningRow<Rest> : {
234
- [K in Name]: JsType;
235
- } : never : never : Record<string, never>;
236
- /**
237
- * Utility type to check if a contract has the required capabilities for includeMany.
238
- * Requires both `lateral` and `jsonAgg` to be `true` in the contract's capabilities for the target.
239
- * Capabilities are nested by target: `{ [target]: { lateral: true, jsonAgg: true } }`
240
- */
241
- export type HasIncludeManyCapabilities<TContract extends SqlContract<SqlStorage>> = TContract extends {
242
- capabilities: infer C;
243
- target: infer T;
244
- } ? T extends string ? C extends Record<string, Record<string, boolean>> ? C extends {
245
- [K in T]: infer TargetCaps;
246
- } ? TargetCaps extends {
247
- lateral: true;
248
- jsonAgg: true;
249
- } ? true : false : false : false : false : false;
250
- /**
251
- * SQL-specific Plan type that refines the ast field to use QueryAst.
252
- * This is the type used by SQL query builders.
253
- */
254
- export type SqlPlan<Row = unknown> = ExecutionPlan<Row, QueryAst>;
255
- /**
256
- * Helper types for extracting contract structure.
257
- */
258
- export type TablesOf<TContract> = TContract extends {
259
- storage: {
260
- tables: infer U;
261
- };
262
- } ? U : never;
263
- export type TableKey<TContract> = Extract<keyof TablesOf<TContract>, string>;
264
- /**
265
- * Unique symbol for metadata property to avoid collisions with user-defined properties
266
- */
267
- export declare const META: unique symbol;
268
- /**
269
- * Extracts metadata from a type that has a META property
270
- */
271
- export type Meta<T extends {
272
- [META]: unknown;
273
- }> = T[typeof META];
274
- /**
275
- * Metadata interface for table definitions
276
- */
277
- export interface TableMetadata<Name extends string> {
278
- name: Name;
279
- }
280
- /**
281
- * Metadata interface for model definitions
282
- */
283
- export interface ModelMetadata<Name extends string> {
284
- name: Name;
285
- }
286
- /**
287
- * Base interface for table definitions with metadata
288
- * Used in contract.d.ts to define storage-level table types
289
- */
290
- export interface TableDef<Name extends string> {
291
- readonly [META]: TableMetadata<Name>;
292
- }
293
- /**
294
- * Base interface for model definitions with metadata
295
- * Used in contract.d.ts to define application-level model types
296
- */
297
- export interface ModelDef<Name extends string> {
298
- readonly [META]: ModelMetadata<Name>;
299
- }
300
- export type ColumnsOf<TContract, K extends TableKey<TContract>> = K extends keyof TablesOf<TContract> ? TablesOf<TContract>[K] extends {
301
- columns: infer C;
302
- } ? C : never : never;
303
- export interface RawTemplateOptions {
304
- readonly refs?: PlanRefs;
305
- readonly annotations?: Record<string, unknown>;
306
- readonly projection?: ReadonlyArray<string>;
307
- }
308
- export interface RawFunctionOptions extends RawTemplateOptions {
309
- readonly params: ReadonlyArray<unknown>;
310
- }
311
- export type RawTemplateFactory = (strings: TemplateStringsArray, ...values: readonly unknown[]) => ExecutionPlan;
312
- export interface RawFactory extends RawTemplateFactory {
313
- (text: string, options: RawFunctionOptions): ExecutionPlan;
314
- with(options: RawTemplateOptions): RawTemplateFactory;
315
- }
316
- export type { RuntimeError } from '@prisma-next/plan';
317
- export interface BuildParamsMap {
318
- readonly [name: string]: unknown;
319
- }
320
- export interface BuildOptions {
321
- readonly params?: BuildParamsMap;
322
- }
323
- export interface SqlBuilderOptions<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> {
324
- readonly context: QueryLaneContext<TContract>;
325
- }
326
- /**
327
- * SQL-specific ResultType that works with both Plan and SqlQueryPlan.
328
- * This extends the core ResultType to also handle SqlQueryPlan.
329
- * Example: `type Row = ResultType<typeof plan>`
330
- */
331
- export type ResultType<P> = P extends SqlQueryPlan<infer R> ? R : CoreResultType<P>;
332
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,aAAa,EACb,QAAQ,EACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACT,aAAa,EACb,QAAQ,EACR,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY,CAC3B,UAAU,SAAS,M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AAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB,CAChC,SAAS,SAAS,WAAW,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC;IAEnE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -1,55 +0,0 @@
1
- import type { StorageColumn } from '@prisma-next/sql-contract/types';
2
- import type { ColumnRef, LiteralExpr, OperationExpr, ParamRef } from '../ast/types';
3
- import type { AnyColumnBuilder, ParamPlaceholder } from '../types';
4
- /**
5
- * Helper to extract columnMeta from a ColumnBuilder.
6
- * Returns StorageColumn if present, undefined otherwise.
7
- * AnyColumnBuilder is a union that includes types with columnMeta property,
8
- * so we can safely access it after checking for existence.
9
- */
10
- export declare function getColumnMeta(expr: AnyColumnBuilder): StorageColumn | undefined;
11
- /**
12
- * Type predicate to check if a value is a ParamPlaceholder.
13
- */
14
- export declare function isParamPlaceholder(value: unknown): value is ParamPlaceholder;
15
- /**
16
- * Recursively extracts the base ColumnRef from an OperationExpr.
17
- * If the expression is already a ColumnRef, it is returned directly.
18
- */
19
- export declare function extractBaseColumnRef(expr: ColumnRef | OperationExpr): ColumnRef;
20
- /**
21
- * Recursively collects all ColumnRef nodes from an expression tree.
22
- * Handles nested OperationExpr structures by traversing both self and args.
23
- */
24
- export declare function collectColumnRefs(expr: ColumnRef | ParamRef | LiteralExpr | OperationExpr): ColumnRef[];
25
- /**
26
- * Type predicate to check if an expression is an OperationExpr.
27
- */
28
- export declare function isOperationExpr(expr: AnyColumnBuilder | OperationExpr): expr is OperationExpr;
29
- /**
30
- * Helper to extract table and column from a ColumnBuilder or OperationExpr.
31
- * For OperationExpr, recursively unwraps to find the base ColumnRef.
32
- */
33
- export declare function getColumnInfo(expr: AnyColumnBuilder | OperationExpr): {
34
- table: string;
35
- column: string;
36
- };
37
- /**
38
- * Type predicate to check if a value is a ColumnBuilder.
39
- */
40
- export declare function isColumnBuilder(value: unknown): value is AnyColumnBuilder;
41
- /**
42
- * Extracts and returns an OperationExpr from a builder.
43
- * Returns the OperationExpr if the builder is an OperationExpr or has an _operationExpr property,
44
- * otherwise returns undefined.
45
- *
46
- * @design-note: This function accesses the hidden `_operationExpr` property, which is a code smell.
47
- * The issue is that `executeOperation()` in relational-core returns a ColumnBuilder-shaped object
48
- * with a hidden `_operationExpr` property, creating coupling between lanes and relational-core
49
- * implementation details. A cleaner design would be to have operation results be a separate
50
- * type (e.g., `OperationResultBuilder`) that properly represents expression nodes rather than
51
- * pretending to be a ColumnBuilder. This would require refactoring the operation execution
52
- * system in relational-core to return proper expression types.
53
- */
54
- export declare function getOperationExpr(builder: AnyColumnBuilder | OperationExpr): OperationExpr | undefined;
55
- //# sourceMappingURL=guards.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/utils/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEnE;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,SAAS,CAQ/E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAS5E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,GAAG,aAAa,GAAG,SAAS,CAK/E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,aAAa,GACvD,SAAS,EAAE,CAYb;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,IAAI,aAAa,CAE7F;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAQA;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAOzE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,GAAG,aAAa,GACxC,aAAa,GAAG,SAAS,CAM3B"}