@prisma/orm-family-sql 8.0.0-rc.18-dev.16 → 8.0.0-rc.18-dev.18

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 (281) hide show
  1. package/dist/{aggregate-descriptor-registry-DrJ1vHEo.mjs → aggregate-descriptor-registry-Dd7Uj7DJ.mjs} +3 -3
  2. package/dist/{aggregate-descriptor-registry-DrJ1vHEo.mjs.map → aggregate-descriptor-registry-Dd7Uj7DJ.mjs.map} +1 -1
  3. package/dist/{ast-BDwGvnKK.mjs → ast-CBO3PEJF.mjs} +73 -47
  4. package/dist/ast-CBO3PEJF.mjs.map +1 -0
  5. package/dist/{ast-BoM9T1b2.d.mts → ast-Dzsat0Zb.d.mts} +27 -26
  6. package/dist/ast-Dzsat0Zb.d.mts.map +1 -0
  7. package/dist/{attribute-specs-D7EhHD08.d.mts → attribute-specs-2I2xuKEa.d.mts} +4 -3
  8. package/dist/attribute-specs-2I2xuKEa.d.mts.map +1 -0
  9. package/dist/{authored-check-naming-CO3GA46Y.mjs → authored-check-naming-CIX7Bbyh.mjs} +3 -3
  10. package/dist/{authored-check-naming-CO3GA46Y.mjs.map → authored-check-naming-CIX7Bbyh.mjs.map} +1 -1
  11. package/dist/{authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts → authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts} +2 -2
  12. package/dist/{authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts.map → authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts.map} +1 -1
  13. package/dist/{authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs → authoring-type-constructors-0Iv2zdwS-MFIpJ4fA.mjs} +2 -2
  14. package/dist/{authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs.map → authoring-type-constructors-0Iv2zdwS-MFIpJ4fA.mjs.map} +1 -1
  15. package/dist/builder.d.mts +3 -3
  16. package/dist/builder__runtime.d.mts +7 -7
  17. package/dist/builder__runtime.mjs +2 -2
  18. package/dist/builder__types.d.mts +5 -5
  19. package/dist/{codec-descriptor-registry-Bg9OjQf_.mjs → codec-descriptor-registry-4kw8FPpo.mjs} +2 -2
  20. package/dist/{codec-descriptor-registry-Bg9OjQf_.mjs.map → codec-descriptor-registry-4kw8FPpo.mjs.map} +1 -1
  21. package/dist/{collection-methods-BnR4UjcW-C_55W2m0.d.mts → collection-methods-B-tM7OPZ-v8HK9Txa.d.mts} +3 -3
  22. package/dist/{collection-methods-BnR4UjcW-C_55W2m0.d.mts.map → collection-methods-B-tM7OPZ-v8HK9Txa.d.mts.map} +1 -1
  23. package/dist/collection-methods-DQAFcGEB.d.mts +1 -0
  24. package/dist/{config-types-ni1nb_HA.mjs → config-types-ComQZUlA.mjs} +2 -2
  25. package/dist/{config-types-ni1nb_HA.mjs.map → config-types-ComQZUlA.mjs.map} +1 -1
  26. package/dist/{contract-builder-CH0AIjsv.d.mts → contract-builder-De_fyZGT.d.mts} +6 -6
  27. package/dist/{contract-builder-CH0AIjsv.d.mts.map → contract-builder-De_fyZGT.d.mts.map} +1 -1
  28. package/dist/{contract-builder-CiYVj56_.mjs → contract-builder-fQ3gkIR5.mjs} +5 -5
  29. package/dist/{contract-builder-CiYVj56_.mjs.map → contract-builder-fQ3gkIR5.mjs.map} +1 -1
  30. package/dist/contract-emitter.mjs +1 -1
  31. package/dist/contract-prisma7__provider.d.mts +12 -6
  32. package/dist/contract-prisma7__provider.d.mts.map +1 -1
  33. package/dist/contract-prisma7__provider.mjs +48 -43
  34. package/dist/contract-prisma7__provider.mjs.map +1 -1
  35. package/dist/contract-psl.d.mts +2 -2
  36. package/dist/contract-psl.d.mts.map +1 -1
  37. package/dist/contract-psl.mjs +1 -1
  38. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  39. package/dist/contract-psl__attribute-specs.mjs +1 -1
  40. package/dist/contract-psl__provider.mjs +2 -2
  41. package/dist/contract-psl__provider.mjs.map +1 -1
  42. package/dist/contract-ts.d.mts +2 -2
  43. package/dist/contract-ts.mjs +4 -4
  44. package/dist/contract-ts__config-types.mjs +1 -1
  45. package/dist/contract-ts__contract-builder.d.mts +2 -2
  46. package/dist/contract-ts__contract-builder.mjs +3 -3
  47. package/dist/contract.d.mts +6 -6
  48. package/dist/contract.mjs +15 -15
  49. package/dist/contract__authored-check-naming.mjs +1 -1
  50. package/dist/contract__data-type-support.d.mts +2 -2
  51. package/dist/contract__data-type-support.mjs +2 -2
  52. package/dist/contract__data-type.d.mts +2 -2
  53. package/dist/contract__data-type.mjs +3 -3
  54. package/dist/contract__entity-kinds.mjs +1 -1
  55. package/dist/contract__factories.mjs +1 -1
  56. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  57. package/dist/contract__foreign-key-materialization.mjs +2 -2
  58. package/dist/contract__index-naming.mjs +1 -1
  59. package/dist/contract__sql-expression.d.mts +2 -2
  60. package/dist/contract__sql-expression.mjs +2 -2
  61. package/dist/contract__types.mjs +3 -3
  62. package/dist/contract__validators.d.mts +1 -1
  63. package/dist/contract__validators.mjs +2 -2
  64. package/dist/{control-DXqMl_gd.mjs → control-ClahTAD-.mjs} +246 -40
  65. package/dist/control-ClahTAD-.mjs.map +1 -0
  66. package/dist/{control-adapter-CkFfBVei-DGf1LihO.d.mts → control-adapter-BCopdpsT-DIHCWbq_.d.mts} +9 -26
  67. package/dist/control-adapter-BCopdpsT-DIHCWbq_.d.mts.map +1 -0
  68. package/dist/control-adapter-BsSf5pqM.d.mts +1 -0
  69. package/dist/{control-CPg4LwJV.d.mts → control-mpACqp72.d.mts} +72 -39
  70. package/dist/control-mpACqp72.d.mts.map +1 -0
  71. package/dist/{data-type-CYsho6Yd.d.mts → data-type-B8N33s-_.d.mts} +14 -7
  72. package/dist/data-type-B8N33s-_.d.mts.map +1 -0
  73. package/dist/{numeral-text-Cqu87pVe-DJCqBaSC.mjs → data-type-DKk8Unnz.mjs} +2 -2
  74. package/dist/data-type-DKk8Unnz.mjs.map +1 -0
  75. package/dist/{data-type-support-CfhpAKLX.mjs → data-type-support-C5-XxxeB.mjs} +11 -24
  76. package/dist/data-type-support-C5-XxxeB.mjs.map +1 -0
  77. package/dist/{data-type-support-4TcZuD7d.d.mts → data-type-support-CBcYhSkD.d.mts} +12 -16
  78. package/dist/data-type-support-CBcYhSkD.d.mts.map +1 -0
  79. package/dist/{db-BmrN9nRS-CzyybGKR.d.mts → db-BmrN9nRS-xynLbnAy.d.mts} +10 -10
  80. package/dist/{db-BmrN9nRS-CzyybGKR.d.mts.map → db-BmrN9nRS-xynLbnAy.d.mts.map} +1 -1
  81. package/dist/{ddl-types-DtKZjNtN-DWQeO79o.d.mts → ddl-types-CoP6yAw9-BDp3W_5g.d.mts} +4 -4
  82. package/dist/{ddl-types-DtKZjNtN-DWQeO79o.d.mts.map → ddl-types-CoP6yAw9-BDp3W_5g.d.mts.map} +1 -1
  83. package/dist/{default-mapping-B8_APB1M-CWcTmSQW.d.mts → default-mapping-CEISdj2g-DF1LzGBR.d.mts} +7 -5
  84. package/dist/default-mapping-CEISdj2g-DF1LzGBR.d.mts.map +1 -0
  85. package/dist/{derived-checks-Cgx_VgS3-CmFqNFgU.mjs → derived-checks-CrvMQTJF-DlxFFtNM.mjs} +18 -18
  86. package/dist/derived-checks-CrvMQTJF-DlxFFtNM.mjs.map +1 -0
  87. package/dist/{diff-CVVGktZG.d.mts → diff-Bd9ILpZL.d.mts} +20 -7
  88. package/dist/diff-Bd9ILpZL.d.mts.map +1 -0
  89. package/dist/diff-DZ82XaGR.mjs +21 -0
  90. package/dist/diff-DZ82XaGR.mjs.map +1 -0
  91. package/dist/{dist-Cg2lL1hR.mjs → dist-DAHIT4AS.mjs} +2 -2
  92. package/dist/{dist-Cg2lL1hR.mjs.map → dist-DAHIT4AS.mjs.map} +1 -1
  93. package/dist/{entity-kinds-CQ_jwgYv-HA5t2SE0.mjs → entity-kinds-CQ_jwgYv-DoOBWwvX.mjs} +3 -3
  94. package/dist/{entity-kinds-CQ_jwgYv-HA5t2SE0.mjs.map → entity-kinds-CQ_jwgYv-DoOBWwvX.mjs.map} +1 -1
  95. package/dist/exports-DVsHk8HP-DrH_2a-H.mjs +2371 -0
  96. package/dist/exports-DVsHk8HP-DrH_2a-H.mjs.map +1 -0
  97. package/dist/{expression-Ck1wys3N-Cdc7eUQS.d.mts → expression-BzrfOiPC-3NqR8UzK.d.mts} +4 -4
  98. package/dist/{expression-Ck1wys3N-Cdc7eUQS.d.mts.map → expression-BzrfOiPC-3NqR8UzK.d.mts.map} +1 -1
  99. package/dist/expression-CeerCjQG.d.mts +2 -0
  100. package/dist/{expression-CNBCbbzU-DOXKUxQs.d.mts → expression-sOY1120I-DOykEQlw.d.mts} +4 -4
  101. package/dist/expression-sOY1120I-DOykEQlw.d.mts.map +1 -0
  102. package/dist/{factories-vDQ3S5gW.mjs → factories-DkD3nMYt.mjs} +3 -3
  103. package/dist/{factories-vDQ3S5gW.mjs.map → factories-DkD3nMYt.mjs.map} +1 -1
  104. package/dist/family.d.mts +14 -14
  105. package/dist/family.mjs +8 -8
  106. package/dist/family__control-adapter.d.mts +2 -2
  107. package/dist/family__control.d.mts +5 -5
  108. package/dist/family__control.mjs +4 -4
  109. package/dist/family__diff.d.mts +1 -2
  110. package/dist/family__diff.mjs +2 -2
  111. package/dist/family__ir.d.mts +1 -1
  112. package/dist/family__ir.mjs +1 -1
  113. package/dist/family__migration.d.mts +1 -1
  114. package/dist/family__pack.d.mts +1 -1
  115. package/dist/family__pack.mjs +2 -2
  116. package/dist/family__psl-build.d.mts +2 -2
  117. package/dist/family__psl-build.mjs +1 -1
  118. package/dist/family__psl-infer.d.mts +1 -1
  119. package/dist/family__psl-infer.mjs +1 -1
  120. package/dist/{foreign-key-materialization-DJ6uhBba.d.mts → foreign-key-materialization-DCaDnUs-.d.mts} +3 -3
  121. package/dist/{foreign-key-materialization-DJ6uhBba.d.mts.map → foreign-key-materialization-DCaDnUs-.d.mts.map} +1 -1
  122. package/dist/{foreign-key-materialization-DibQ9Hjg.mjs → foreign-key-materialization-DfNPQL9G.mjs} +4 -4
  123. package/dist/{foreign-key-materialization-DibQ9Hjg.mjs.map → foreign-key-materialization-DfNPQL9G.mjs.map} +1 -1
  124. package/dist/{functions-DSwXxsTg.d.mts → functions-Cp8soSAv.d.mts} +3 -3
  125. package/dist/{functions-DSwXxsTg.d.mts.map → functions-Cp8soSAv.d.mts.map} +1 -1
  126. package/dist/{index-C8jUgdUh.d.mts → index-BxlXOVeT.d.mts} +30 -23
  127. package/dist/{index-C8jUgdUh.d.mts.map → index-BxlXOVeT.d.mts.map} +1 -1
  128. package/dist/{index-equivalence-DswCiq5l-DlC2yTK1.mjs → index-equivalence-DswCiq5l-BsphajRC.mjs} +2 -2
  129. package/dist/{index-equivalence-DswCiq5l-DlC2yTK1.mjs.map → index-equivalence-DswCiq5l-BsphajRC.mjs.map} +1 -1
  130. package/dist/{index-naming-BOcJT1B3-CeEoP8t3.mjs → index-naming-BOcJT1B3-18gQUduD.mjs} +2 -2
  131. package/dist/{index-naming-BOcJT1B3-CeEoP8t3.mjs.map → index-naming-BOcJT1B3-18gQUduD.mjs.map} +1 -1
  132. package/dist/index-reference-CWppFpUV.d.mts +1 -0
  133. package/dist/{index-reference-DJX-CNsb-D5uoBnH_.d.mts → index-reference-DJaQLZA3-DxmYkkX-.d.mts} +3 -3
  134. package/dist/{index-reference-DJX-CNsb-D5uoBnH_.d.mts.map → index-reference-DJaQLZA3-DxmYkkX-.d.mts.map} +1 -1
  135. package/dist/{interpreter-CvmBTYyI-DNl-jr2E.mjs → interpreter-CFj2aTEP-BHL3TOqk.mjs} +13 -11
  136. package/dist/interpreter-CFj2aTEP-BHL3TOqk.mjs.map +1 -0
  137. package/dist/{ir-D0Vpm5O9.d.mts → ir-DgNo535E.d.mts} +4 -2
  138. package/dist/ir-DgNo535E.d.mts.map +1 -0
  139. package/dist/ir-I-xciGUH.mjs.map +1 -1
  140. package/dist/middleware-IqWk9Eff.d.mts +1 -0
  141. package/dist/{middleware-YsFLC19Y-5mJZCBWq.d.mts → middleware-oCT0RWkt-AFlRNCOD.d.mts} +3 -3
  142. package/dist/{middleware-YsFLC19Y-5mJZCBWq.d.mts.map → middleware-oCT0RWkt-AFlRNCOD.d.mts.map} +1 -1
  143. package/dist/{migration-ESRa6312.d.mts → migration-lg_VgP_F.d.mts} +2 -2
  144. package/dist/{migration-ESRa6312.d.mts.map → migration-lg_VgP_F.d.mts.map} +1 -1
  145. package/dist/{naming-CT8tRisJ-DLHKo0Hm.mjs → naming-bM5qm5PY-DdginUhA.mjs} +2 -2
  146. package/dist/{naming-CT8tRisJ-DLHKo0Hm.mjs.map → naming-bM5qm5PY-DdginUhA.mjs.map} +1 -1
  147. package/dist/{opaque-sql-BWxbqe5a-GGKfyakq.mjs → opaque-sql-Dset3kln-BzzXoO94.mjs} +3 -3
  148. package/dist/opaque-sql-Dset3kln-BzzXoO94.mjs.map +1 -0
  149. package/dist/orm-client.d.mts +28 -60
  150. package/dist/orm-client.d.mts.map +1 -1
  151. package/dist/orm-client.mjs +564 -233
  152. package/dist/orm-client.mjs.map +1 -1
  153. package/dist/{pack-BtGENS4_.d.mts → pack-CyjyMUN0.d.mts} +3 -3
  154. package/dist/{pack-BtGENS4_.d.mts.map → pack-CyjyMUN0.d.mts.map} +1 -1
  155. package/dist/plan-BZpZafiQ.d.mts +2 -0
  156. package/dist/{plan-cGEaSXHv-yuz43WrR.d.mts → plan-Cbed2eDu-BZM3geSm.d.mts} +3 -3
  157. package/dist/plan-Cbed2eDu-BZM3geSm.d.mts.map +1 -0
  158. package/dist/{psl-build-PXVtl8gM.d.mts → psl-build-BHQfP1_C.d.mts} +5 -5
  159. package/dist/{psl-build-PXVtl8gM.d.mts.map → psl-build-BHQfP1_C.d.mts.map} +1 -1
  160. package/dist/{psl-build-8bx9WTUt.mjs → psl-build-BsJ6eChh.mjs} +118 -84
  161. package/dist/psl-build-BsJ6eChh.mjs.map +1 -0
  162. package/dist/{psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts → psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts} +2 -2
  163. package/dist/{psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts.map → psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts.map} +1 -1
  164. package/dist/{psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs → psl-field-resolution-o9sXqIlE-BJnlxQ4z.mjs} +76 -66
  165. package/dist/psl-field-resolution-o9sXqIlE-BJnlxQ4z.mjs.map +1 -0
  166. package/dist/{psl-infer-g040TwAr.d.mts → psl-infer-B6iemK9i.d.mts} +4 -4
  167. package/dist/{psl-infer-g040TwAr.d.mts.map → psl-infer-B6iemK9i.d.mts.map} +1 -1
  168. package/dist/{psl-infer-CG0_wra6.mjs → psl-infer-HPi_YMeE.mjs} +2 -2
  169. package/dist/{psl-infer-CG0_wra6.mjs.map → psl-infer-HPi_YMeE.mjs.map} +1 -1
  170. package/dist/{query-lane-context-C42-u9L1-BSJoP83K.d.mts → query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts} +5 -5
  171. package/dist/{query-lane-context-C42-u9L1-BSJoP83K.d.mts.map → query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts.map} +1 -1
  172. package/dist/query-lane-context-Dpep1Fzy.d.mts +1 -0
  173. package/dist/relational-core.d.mts +12 -12
  174. package/dist/relational-core.mjs +2 -2
  175. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  176. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  177. package/dist/relational-core__ast.d.mts +3 -3
  178. package/dist/relational-core__ast.mjs +2 -2
  179. package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
  180. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  181. package/dist/relational-core__collection-methods.d.mts +2 -2
  182. package/dist/relational-core__contract-free.d.mts +3 -3
  183. package/dist/relational-core__contract-free.mjs +2 -2
  184. package/dist/relational-core__contract-free.mjs.map +1 -1
  185. package/dist/relational-core__expression.d.mts +3 -3
  186. package/dist/relational-core__functions.d.mts +1 -1
  187. package/dist/relational-core__index-reference.d.mts +2 -2
  188. package/dist/relational-core__middleware.d.mts +2 -2
  189. package/dist/relational-core__plan.d.mts +3 -3
  190. package/dist/relational-core__query-lane-context.d.mts +2 -2
  191. package/dist/relational-core__types.d.mts +2 -2
  192. package/dist/runtime.d.mts +5 -5
  193. package/dist/runtime.mjs +1 -2289
  194. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  195. package/dist/{schema-differ-CqWOkoW9-uVU2SdFf.d.mts → schema-differ-DmP74bB8-BGA6fzOv.d.mts} +4 -4
  196. package/dist/{schema-differ-CqWOkoW9-uVU2SdFf.d.mts.map → schema-differ-DmP74bB8-BGA6fzOv.d.mts.map} +1 -1
  197. package/dist/schema-ir.d.mts +2 -2
  198. package/dist/schema-ir.mjs +2 -2
  199. package/dist/schema-ir__naming.mjs +1 -1
  200. package/dist/schema-ir__types.d.mts +3 -3
  201. package/dist/schema-ir__types.mjs +2 -2
  202. package/dist/{schema-verify-DIfHSB4I-wt28gB9e.mjs → schema-verify-BwRdzbHb-B9vFrm3T.mjs} +22 -6
  203. package/dist/schema-verify-BwRdzbHb-B9vFrm3T.mjs.map +1 -0
  204. package/dist/{serialized-index-52COq1yV-D8zJP-Xl.mjs → serialized-index-52COq1yV-CUJ2F65u.mjs} +3 -3
  205. package/dist/{serialized-index-52COq1yV-D8zJP-Xl.mjs.map → serialized-index-52COq1yV-CUJ2F65u.mjs.map} +1 -1
  206. package/dist/{sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs → sql-contract-serializer-sMY3prTx-C8IEwSsf.mjs} +12 -7
  207. package/dist/sql-contract-serializer-sMY3prTx-C8IEwSsf.mjs.map +1 -0
  208. package/dist/{data-type-DU0mtme5.mjs → sql-data-type-Dabuwxet-BljsNjBu.mjs} +32 -13
  209. package/dist/sql-data-type-Dabuwxet-BljsNjBu.mjs.map +1 -0
  210. package/dist/{sql-execution-plan-C7XauPPu-BgBp89vP.d.mts → sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts} +3 -3
  211. package/dist/sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts.map +1 -0
  212. package/dist/{sql-expression-BWrjmY6M.d.mts → sql-expression-BAtH-2UU.d.mts} +6 -6
  213. package/dist/sql-expression-BAtH-2UU.d.mts.map +1 -0
  214. package/dist/{sql-expression-DSRILiU2.mjs → sql-expression-BJCuy-WI.mjs} +15 -9
  215. package/dist/sql-expression-BJCuy-WI.mjs.map +1 -0
  216. package/dist/{storage-table-DN36E2yE-Bm5eKeGw.mjs → storage-table-DN36E2yE-0ncS821l.mjs} +2 -2
  217. package/dist/{storage-table-DN36E2yE-Bm5eKeGw.mjs.map → storage-table-DN36E2yE-0ncS821l.mjs.map} +1 -1
  218. package/dist/{transaction-state-DR3nKTmH-D5eFB250.d.mts → transaction-state-DR3nKTmH-n_12DsnU.d.mts} +9 -9
  219. package/dist/{transaction-state-DR3nKTmH-D5eFB250.d.mts.map → transaction-state-DR3nKTmH-n_12DsnU.d.mts.map} +1 -1
  220. package/dist/types-BLyhYk6B.d.mts +1 -0
  221. package/dist/{types-DvhckjSz-Cm0Oodhr.mjs → types-CaVn_xxe-D9WdU3Iy.mjs} +81 -157
  222. package/dist/types-CaVn_xxe-D9WdU3Iy.mjs.map +1 -0
  223. package/dist/{types-Cl4MLNrS-BXDsTb9U.d.mts → types-Cv5t6_Ly-CcBWTpfM.d.mts} +6 -6
  224. package/dist/{types-Cl4MLNrS-BXDsTb9U.d.mts.map → types-Cv5t6_Ly-CcBWTpfM.d.mts.map} +1 -1
  225. package/dist/{types-Sh5HuaZE-BwZNUDEi.d.mts → types-DVaVM20q-B-QcMIOa.d.mts} +9 -20
  226. package/dist/types-DVaVM20q-B-QcMIOa.d.mts.map +1 -0
  227. package/dist/{types-CzxOObSY-Cq3t_HCe.d.mts → types-DaYtBAYT-B22gkh5z.d.mts} +5 -5
  228. package/dist/{types-CzxOObSY-Cq3t_HCe.d.mts.map → types-DaYtBAYT-B22gkh5z.d.mts.map} +1 -1
  229. package/dist/{types-GS3fwvoX.mjs → types-M_FeBD9w.mjs} +2 -2
  230. package/dist/{types-GS3fwvoX.mjs.map → types-M_FeBD9w.mjs.map} +1 -1
  231. package/dist/types-_7TbRpPw.d.mts +1 -0
  232. package/dist/{types-C-z8HyiZ-1Nhw0pHj.d.mts → types-c1iIhJep-DdMj6TNl.d.mts} +49 -51
  233. package/dist/types-c1iIhJep-DdMj6TNl.d.mts.map +1 -0
  234. package/dist/{validators-DlpO67uZ.mjs → validators-Bvfk0aN7.mjs} +14 -11
  235. package/dist/validators-Bvfk0aN7.mjs.map +1 -0
  236. package/dist/{validators-R-Wsy5Rr.d.mts → validators-CTZ-hU2l.d.mts} +4 -1
  237. package/dist/validators-CTZ-hU2l.d.mts.map +1 -0
  238. package/package.json +18 -18
  239. package/dist/ast-BDwGvnKK.mjs.map +0 -1
  240. package/dist/ast-BoM9T1b2.d.mts.map +0 -1
  241. package/dist/attribute-specs-D7EhHD08.d.mts.map +0 -1
  242. package/dist/collection-methods-CyUXbXVw.d.mts +0 -1
  243. package/dist/control-CPg4LwJV.d.mts.map +0 -1
  244. package/dist/control-DXqMl_gd.mjs.map +0 -1
  245. package/dist/control-adapter-CkFfBVei-DGf1LihO.d.mts.map +0 -1
  246. package/dist/control-adapter-DDjgBMy3.d.mts +0 -1
  247. package/dist/data-type-CYsho6Yd.d.mts.map +0 -1
  248. package/dist/data-type-DU0mtme5.mjs.map +0 -1
  249. package/dist/data-type-support-4TcZuD7d.d.mts.map +0 -1
  250. package/dist/data-type-support-CfhpAKLX.mjs.map +0 -1
  251. package/dist/default-mapping-B8_APB1M-CWcTmSQW.d.mts.map +0 -1
  252. package/dist/derived-checks-Cgx_VgS3-CmFqNFgU.mjs.map +0 -1
  253. package/dist/diff-B16bL_IR.mjs +0 -13
  254. package/dist/diff-B16bL_IR.mjs.map +0 -1
  255. package/dist/diff-CVVGktZG.d.mts.map +0 -1
  256. package/dist/expression-CNBCbbzU-DOXKUxQs.d.mts.map +0 -1
  257. package/dist/expression-DUYovBa6.d.mts +0 -2
  258. package/dist/index-reference-DGQdSRjQ.d.mts +0 -1
  259. package/dist/interpreter-CvmBTYyI-DNl-jr2E.mjs.map +0 -1
  260. package/dist/ir-D0Vpm5O9.d.mts.map +0 -1
  261. package/dist/middleware-Bp-R5o9E.d.mts +0 -1
  262. package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs.map +0 -1
  263. package/dist/opaque-sql-BWxbqe5a-GGKfyakq.mjs.map +0 -1
  264. package/dist/plan-DdpaNNu1.d.mts +0 -2
  265. package/dist/plan-cGEaSXHv-yuz43WrR.d.mts.map +0 -1
  266. package/dist/psl-build-8bx9WTUt.mjs.map +0 -1
  267. package/dist/psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs.map +0 -1
  268. package/dist/query-lane-context-C4xq68Mr.d.mts +0 -1
  269. package/dist/runtime.mjs.map +0 -1
  270. package/dist/schema-verify-DIfHSB4I-wt28gB9e.mjs.map +0 -1
  271. package/dist/sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs.map +0 -1
  272. package/dist/sql-execution-plan-C7XauPPu-BgBp89vP.d.mts.map +0 -1
  273. package/dist/sql-expression-BWrjmY6M.d.mts.map +0 -1
  274. package/dist/sql-expression-DSRILiU2.mjs.map +0 -1
  275. package/dist/types-BSBsW0qR.d.mts +0 -1
  276. package/dist/types-C-z8HyiZ-1Nhw0pHj.d.mts.map +0 -1
  277. package/dist/types-CJK7FBdw.d.mts +0 -1
  278. package/dist/types-DvhckjSz-Cm0Oodhr.mjs.map +0 -1
  279. package/dist/types-Sh5HuaZE-BwZNUDEi.d.mts.map +0 -1
  280. package/dist/validators-DlpO67uZ.mjs.map +0 -1
  281. package/dist/validators-R-Wsy5Rr.d.mts.map +0 -1
@@ -3,15 +3,15 @@ import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
3
3
  import { m as ExtractFieldOutputTypes } from "./types-Dqf87mfA-BOElvimQ.mjs";
4
4
  import "./types-DMfBh16_.mjs";
5
5
  import { t as SqlLoweringSpec } from "./index-BXFiad5j.mjs";
6
- import { Ct as ParamRef, O as ColumnRef } from "./types-Sh5HuaZE-BwZNUDEi.mjs";
6
+ import { Ct as ParamRef, O as ColumnRef } from "./types-DVaVM20q-B-QcMIOa.mjs";
7
7
  import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
8
- import { n as SqlQueryPlan } from "./plan-cGEaSXHv-yuz43WrR.mjs";
9
- import { t as SqlExecutionPlan } from "./sql-execution-plan-C7XauPPu-BgBp89vP.mjs";
10
- import { n as ExecutionContext } from "./query-lane-context-C42-u9L1-BSJoP83K.mjs";
8
+ import { n as SqlQueryPlan } from "./plan-Cbed2eDu-BZM3geSm.mjs";
9
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-Bc_eneSz.mjs";
10
+ import { n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
11
11
  import { Contract } from "@prisma/orm-framework/contract/types";
12
12
  import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
13
13
  import { ParamSpec } from "@prisma/orm-framework/operations";
14
- //#region ../../../2-sql/4-lanes/relational-core/dist/types-Cl4MLNrS.d.mts
14
+ //#region ../../../2-sql/4-lanes/relational-core/dist/types-Cv5t6_Ly.d.mts
15
15
  //#region src/runtime-scope.d.ts
16
16
  /**
17
17
  * The plan shape accepted by the SQL ORM client and SQL runtime: either a
@@ -236,4 +236,4 @@ interface SqlBuilderOptions<TContract extends Contract<SqlStorage> = Contract<Sq
236
236
  }
237
237
  //#endregion
238
238
  export { TablesOf as S, SqlOrmPlan as _, ColumnsOf as a, TableKey as b, META as c, ModelMetadata as d, OperationTypeSignature as f, SqlBuilderOptions as g, RuntimeScope as h, ColumnResolutionContract as i, Meta as l, OperationsForTypeId as m, BuildParamsMap as n, ComputeColumnJsType as o, OperationTypes as p, CodecTypes as r, Expr as s, BuildOptions as t, ModelDef as u, SqlPlan as v, TableMetadata as x, TableDef as y };
239
- //# sourceMappingURL=types-Cl4MLNrS-BXDsTb9U.d.mts.map
239
+ //# sourceMappingURL=types-Cv5t6_Ly-CcBWTpfM.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-Cl4MLNrS-BXDsTb9U.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-Cl4MLNrS.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAgBK,WAAW,iBAAiB,iBAAiB,OAAO,aAAa;;;;;;;;UAQ5D;EACR,MAAM,KAAK,MAAM,WAAW,MAAM,UAAU,wBAAwB,oBAAoB;EACxF,QAAQ,MAAM,YAAY,UAAU,wBAAwB,QAAQ;;;;KAIjE,OAAO,YAAY;;;;;;;;;;KAUnB;WACM;aACE,YAAY,SAAS;eACnB,QAAQ,SAAS;;;WAGrB;aACE,YAAY,SAAS;eACnB,SAAS,SAAS,eAAe,SAAS;;;;KAIpD,gBAAgB,kBAAkB,0BAA0B,uBAAuB,kCAAkC;WAC/G,cAAc,eAAe;IACpC;KACC,oBAAoB,kBAAkB,0BAA0B,qBAAqB,4BAA4B,gBAAgB,WAAW,qBAAqB,eAAe,8BAA8B,WAAW,kBAAkB,OAAO;WAC5O;aACE,OAAO;;IAEhB,mBAAmB;KAClB,qBAAqB,kBAAkB,0BAA0B,qBAAqB,0BAA0B,6BAA6B,oBAAoB,WAAW,MAAM,0BAA0B,4BAA4B,gBAAgB,WAAW,qBAAqB,eAAe,2BAA2B,kBAAkB,sBAAsB,uBAAuB,OAAO;WAClY;aACE,cAAc,eAAe;;OAEnC,WAAW,kBAAkB,OAAO;WAChC,QAAQ;IACf,mBAAmB;;KAElB,uBAAuB,kBAAkB,0BAA0B,qBAAqB,0BAA0B,6BAA6B,mCAAmC;WAC5K;aACE,aAAa,eAAe;;IAErC,wBAAwB,SAAS,OAAO;WACjC,eA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Y,cAAc,2BAA2B,qBAAqB,WAAW,MAAM,WAAW,0BAA0B,QAAQ,uBAAuB,oBAAoB,WAAW,MAAM,WAAW,YAAY,cAAc;;;;;;KAMhmB,QAAQ,iBAAiB,iBAAiB;;;;KAI1C,SAAS,aAAa;EACzB;IACE,cAAc;;IAEd;KACC,SAAS,aAAa,cAAc,SAAS;;;;cAIpC;;;;KAIT,KAAK;GACP;KACE,SAAS;;;;UAIJ,cAAc;EACtB,MAAM;;;;;UAKE,cAAc;EACtB,MAAM;;;;;;UAME,SAAS;YACP,OAAO,cAAc;;;;;;UAMvB,SAAS;YACP,OAAO,cAAc;;KAE5B,UAAU,WAAW,UAAU,SAAS,cAAc,gBAAgB,SAAS,aAAa,SAAS,WAAW;EACnH,eAAe;IACb;UACM;YACE;;UAEF;WACC,SAAS;;UAEV,kBAAkB,kBAAkB,SAAS,cAAc,SAAS;WACnE,SAAS,iBAAiB"}
@@ -1,7 +1,7 @@
1
1
  import { t as SqlLoweringSpec } from "./index-BXFiad5j.mjs";
2
- import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecDescriptorTemplate, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1 } from "@prisma/orm-framework/components/codec";
2
+ import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecDescriptorTemplate, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1, DataTypeValue } from "@prisma/orm-framework/components/codec";
3
3
  import { ParamSpec } from "@prisma/orm-framework/operations";
4
- //#region ../../../2-sql/4-lanes/relational-core/dist/types-Sh5HuaZE.d.mts
4
+ //#region ../../../2-sql/4-lanes/relational-core/dist/types-DVaVM20q.d.mts
5
5
  //#region src/ast/codec-types.d.ts
6
6
  declare function frozenCodecRef(codec: CodecRef): CodecRef;
7
7
  /**
@@ -39,13 +39,13 @@ interface SqlCodecInstanceContext extends CodecInstanceContext {
39
39
  /**
40
40
  * SQL codec — extends the framework codec base by narrowing the per-call context to the SQL-family {@link SqlCodecCallContext} (adds `column?: SqlColumnRef`). TypeScript treats method-syntax declarations bivariantly, so the SQL narrowing is structurally compatible with the framework {@link BaseCodec} super-interface.
41
41
  *
42
- * Codec-id-keyed static metadata (`traits`, `paramsSchema`, `renderOutputType`) lives on the unified {@link import('@prisma/orm-framework/components/codec').CodecDescriptor} — the codec instance itself only carries `id` plus the four conversion methods.
42
+ * Codec-id-keyed static metadata (`traits`, `paramsSchema`, `renderOutputType`) lives on the unified {@link import('@prisma/orm-framework/components/codec').CodecDescriptor} — the codec instance itself carries `id`, its data type and the four conversion methods.
43
43
  *
44
44
  * See `Codec` in `@internal/framework-components/codec` for the codec contract that this interface extends.
45
45
  */
46
46
  interface Codec$1<Id extends string = string, TTraits extends readonly CodecTrait[] = readonly CodecTrait[], TWire = unknown, TInput = unknown> extends Codec<Id, TTraits, TWire, TInput> {
47
- encode(value: TInput, ctx: SqlCodecCallContext): Promise<TWire>;
48
- decode(wire: TWire, ctx: SqlCodecCallContext): Promise<TInput>;
47
+ toWire(value: TInput, ctx: SqlCodecCallContext): Promise<TWire>;
48
+ fromWire(wire: TWire, ctx: SqlCodecCallContext): Promise<TInput>;
49
49
  }
50
50
  /**
51
51
  * Contract-bound codec registry.
@@ -79,22 +79,11 @@ type DescriptorResolvedCodec<D> = D extends CodecDescriptor<infer _P> ? ReturnTy
79
79
  type DescriptorCodecId<D> = D extends AnyCodecDescriptor$1 ? D['codecId'] : never;
80
80
  type DescriptorCodecInput<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, infer In> ? In : never;
81
81
  /**
82
- * Resolve the JSON type for a descriptor `D` — what the codec's `encodeJson`
83
- * produces, and therefore what a `contract.json` holds for a value of this
84
- * codec.
82
+ * Resolve the JSON type for a descriptor `D`: the JSON of the value the codec's `toDataTypeValue` returns, and therefore what a `contract.json` holds for a value of this codec.
85
83
  *
86
- * This is a distinct channel from {@link DescriptorCodecInput} because the two
87
- * diverge wherever a codec's canonical JSON is not the value it hands the
88
- * application — a wide integer carried as a decimal string, say. Reading the
89
- * application type where the JSON type is meant produces a contract type that
90
- * describes a value the file cannot contain.
91
- *
92
- * The type is read off the codec's declared `encodeJson` return, so a codec that
93
- * narrows that return (`encodeJson(value: bigint): string`) publishes its JSON
94
- * type without a new type parameter, and one that does not stays at the
95
- * `JsonValue` the base signature promises.
84
+ * This is a distinct channel from {@link DescriptorCodecInput} because the two diverge wherever the stored form is not the value the codec hands the application, such as a wide integer stored as decimal text. A codec that narrows its return (`toDataTypeValue(value: bigint): DataTypeValue<string>`) publishes its JSON type this way, and one that does not stays at `JsonValue`.
96
85
  */
97
- type DescriptorCodecJson<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, unknown> ? ReturnType<DescriptorResolvedCodec<D>['encodeJson']> : never;
86
+ type DescriptorCodecJson<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, unknown> ? ReturnType<DescriptorResolvedCodec<D>['toDataTypeValue']> extends DataTypeValue<infer J> ? J : never : never;
98
87
  /**
99
88
  * Resolve the trait union for a descriptor `D`.
100
89
  *
@@ -899,4 +888,4 @@ interface LoweredStatement {
899
888
  }
900
889
  //#endregion
901
890
  export { InsertValue as $, queryAstKinds as $t, DefaultValueExpr as A, RawQueryResult as At, EqColJoinOn as B, ToWhereExpr as Bt, CodecCallContext$1 as C, ParamRef as Ct, CodecTrait$1 as D, RawExpr as Dt, CodecRef$1 as E, ProjectionItem as Et, DescriptorCodecJson as F, SqlCodecInstanceContext as Ft, ExpressionSource as G, aggregateFnNames as Gt, ExprVisitor as H, WhereArg as Ht, DescriptorCodecTraits as I, SqlColumnRef as It, FunctionSource as J, isAggregateFn as Jt, ExtractCodecTypes as K, checkLimitOffset as Kt, Direction as L, SubqueryExpr as Lt, DerivedTableSource as M, SelectAst as Mt, DescriptorCodecId as N, SelectAstOptions as Nt, ColumnRef as O, RawQueryAst as Ot, DescriptorCodecInput as P, SqlCodecCallContext as Pt, InsertOnConflict as Q, isWhereExpr as Qt, DoNothingConflictAction as R, TableRef as Rt, Codec$1 as S, OrderByNulls as St, CodecJsonValueProjection as T, ProjectionExpr as Tt, ExpressionFolder as U, WindowFn as Ut, ExistsExpr as V, UpdateAst as Vt, ExpressionRewriter as W, WindowFuncExpr as Wt, IdentifierRef as X, isOrderByNulls as Xt, FunctionSourceAlias as Y, isOrderByDirection as Yt, InsertAst as Z, isQueryAst as Zt, BinaryExpr as _, NotExpr as _t, AndExpr as a, JsonObjectExpr as at, CaseExpr as b, OrExpr as bt, AnyExpression as c, ListExpression as ct, AnyInsertValue as d, LockWaitPolicy as dt, whereExprKinds as en, JoinAst as et, AnyJsonValueProjection as f, LockingClause as ft, AstRewriter as g, NativeJsonValueProjection as gt, AnyQueryAst as h, LoweredStatement as ht, AggregateOpFn as i, JsonObjectEntry as it, DeleteAst as j, RawSqlLiteral as jt, ContractCodecRegistry as k, RawQueryColumn as kt, AnyFromSource as l, LiteralExpr as lt, AnyParamRef as m, LoweredParam as mt, AggregateExpr as n, JsonArrayAggExpr as nt, AnyCodecDescriptor$1 as o, JsonValueProjectionVisitor as ot, AnyOperationArg as p, LockingClauseOptions as pt, FunctionCallExpr as q, frozenCodecRef as qt, AggregateFn as r, JsonDocumentProjection as rt, AnyCodecDescriptorTemplate as s, LimitOffsetValue as st, AggregateCountFn as t, JoinOnExpr as tt, AnyInsertOnConflictAction as u, LockStrength as ut, BinaryOp as v, NullCheckExpr as vt, CodecDescriptor$1 as w, PreparedParamRef as wt, CastExpr as x, OrderByItem as xt, CaseBranch as y, OperationExpr as yt, DoUpdateSetConflictAction as z, TableSource as zt };
902
- //# sourceMappingURL=types-Sh5HuaZE-BwZNUDEi.d.mts.map
891
+ //# sourceMappingURL=types-DVaVM20q-B-QcMIOa.d.mts.map
@@ -0,0 +1 @@
1
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;;;;;;;KAgBZ;WACM;WACA;;WAEA;WACA;;UAED;WACC;WACA,iBAAiB;WACjB,cAAc"}
@@ -3,15 +3,15 @@ import { f as StorageTypeInstance, l as SqlStorage } from "./sql-storage-tZhB8nS
3
3
  import { j as SqlControlDriverInstance } from "./types-Dqf87mfA-BOElvimQ.mjs";
4
4
  import "./types-DMfBh16_.mjs";
5
5
  import { r as SqlOperationDescriptors } from "./index-BXFiad5j.mjs";
6
- import { b as SqlSchemaIRNode } from "./types-C-z8HyiZ-1Nhw0pHj.mjs";
7
- import "./types-CJK7FBdw.mjs";
8
- import { r as SqlControlAdapter } from "./control-adapter-CkFfBVei-DGf1LihO.mjs";
6
+ import { b as SqlSchemaIRNode } from "./types-c1iIhJep-DdMj6TNl.mjs";
7
+ import "./types-BLyhYk6B.mjs";
8
+ import { r as SqlControlAdapter } from "./control-adapter-BCopdpsT-DIHCWbq_.mjs";
9
9
  import { Contract } from "@prisma/orm-framework/contract/types";
10
10
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
11
11
  import { Result } from "@prisma/orm-framework/utils/result";
12
12
  import { ContractSpace, ControlAdapterDescriptor, ControlExtensionDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerPerSpaceSuccessValue, MigrationRunnerResult, OpFactoryCall, OperationContext, PlanOrigin, ResolvedMigrationStatement, SchemaDiffIssue, SchemaOwnership } from "@prisma/orm-framework/components/control";
13
13
  import { AggregateMigrationEdgeRef } from "@prisma/orm-toolchain/migration-tools/aggregate";
14
- //#region ../../../2-sql/9-family/dist/types-CzxOObSY.d.mts
14
+ //#region ../../../2-sql/9-family/dist/types-DaYtBAYT.d.mts
15
15
  //#region src/core/migrations/types.d.ts
16
16
  type AnyRecord = Readonly<Record<string, unknown>>;
17
17
  interface StorageTypePlanResult<TTargetDetails> {
@@ -408,4 +408,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
408
408
  }
409
409
  //#endregion
410
410
  export { StorageTypePlanResult as A, SqlPlanTargetDetails as C, SqlPlannerFailureResult as D, SqlPlannerConflictLocation as E, SqlPlannerResult as O, SqlMigrationRunnerSuccessValue as S, SqlPlannerConflictKind as T, SqlMigrationRunnerErrorCode as _, FieldEventContext as a, SqlMigrationRunnerFailure as b, SqlControlExtensionDescriptor as c, SqlMigrationPlanOperation as d, SqlMigrationPlanOperationStep as f, SqlMigrationRunner as g, SqlMigrationPlannerPlanOptions as h, FieldEvent as i, SqlPlannerSuccessResult as k, SqlMigrationPlan as l, SqlMigrationPlanner as m, CodecControlHooks as n, ResolveIdentityValueInput as o, SqlMigrationPlanOperationTarget as p, CreateSqlMigrationPlanOptions as r, SqlControlAdapterDescriptor as s, AnyRecord as t, SqlMigrationPlanContractInfo as u, SqlMigrationRunnerExecuteCallbacks as v, SqlPlannerConflict as w, SqlMigrationRunnerResult as x, SqlMigrationRunnerExecuteOptions as y };
411
- //# sourceMappingURL=types-CzxOObSY-Cq3t_HCe.d.mts.map
411
+ //# sourceMappingURL=types-DaYtBAYT-B22gkh5z.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-CzxOObSY-Cq3t_HCe.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-CzxOObSY.d.mts"],"mappings":";;;;;;;;;;;;;;;KAUK,YAAY,SAAS;UAChB,sBAAsB;WACrB,qBAAqB,0BAA0B;;;;;;;;;UAShD;;WAEC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;KAgBnB;;;;;;;;;;;;;UAaK;WACC;WACA;WACA;WACA,aAAa;WACb,WAAW;WACX,aAAa;WACb,WAAW;;UAEZ,kBAAkB;;;;;;;;;EAS1B,sBAAsB;aACX;aACA,cAAc;aACd,UAAU,SAAS;aACnB,QAAQ;aACR;aACA,QAAQ;QACb,sBAAsB;EAC5B,cAAc;aACH;aACA,cAAc;aACd,QAAQ;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WAOlB,qBAAqB,cAAc;;;;;WAKnC,yBAAyB;;KAE/B;UACK,kCAAkC;WACjC,MAAM;WACN,OAAO;;UAER,uCAAuC;KAC5C,2BAA2B,OAAO,gCAAgC;UAC7D,mBAAmB;;;;;;;;;;;;;;EAc3B,QAAQ;aACG,QAAQ;aACR,iBAAiB,cAAc,iCAAiC;MACvE,QAAQ;;;;;;;;;;;EAWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
@@ -1,4 +1,4 @@
1
- import { o as SqlNode } from "./storage-table-DN36E2yE-Bm5eKeGw.mjs";
1
+ import { o as SqlNode } from "./storage-table-DN36E2yE-0ncS821l.mjs";
2
2
  import { NamespaceBase, freezeNode, isPlainRecord } from "@prisma/orm-framework/components/ir";
3
3
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
4
4
  import { RelationKeys } from "@prisma/orm-framework/components/runtime";
@@ -116,4 +116,4 @@ function applyFkDefaults(fk, overrideDefaults) {
116
116
  //#endregion
117
117
  export { SqlNamespaceBase as a, isMaterializedSqlNamespace as c, resolvedTypeParams as d, toStorageTypeInstance as f, RelationKeys as i, isSqlAuthoringContributions as l, DEFAULT_FK_CONSTRAINT as n, SqlStorage as o, DEFAULT_FK_INDEX as r, applyFkDefaults as s, CODEC_INSTANCE_KIND as t, isStorageTypeInstance as u };
118
118
 
119
- //# sourceMappingURL=types-GS3fwvoX.mjs.map
119
+ //# sourceMappingURL=types-M_FeBD9w.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-GS3fwvoX.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.mjs"],"sourcesContent":["import { a as ForeignKey, c as CheckConstraint, i as PrimaryKey, l as SqlNode, n as UniqueConstraint, o as ForeignKeyReference, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-DN36E2yE.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-52COq1yV.mjs\";\nimport { NamespaceBase, freezeNode, isPlainRecord } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { RelationKeys } from \"@internal/framework-components/runtime\";\n//#region src/ir/storage-type-instance.ts\n/**\n* Sentinel kind for the legacy codec-triple shape persisted under\n* `SqlStorage.types`. Plain JSON-clean object literals carry this\n* discriminator so the polymorphic slot dispatch can route them down\n* the codec path while target-specific IR class instances (e.g. the\n* Postgres enum class) keep their own narrower `kind` literal.\n*/\nconst CODEC_INSTANCE_KIND = \"codec-instance\";\n/**\n* Stamp the codec-instance `kind` discriminator on a caller-supplied\n* codec triple. Idempotent: input that already carries the discriminator\n* passes through unchanged. Missing `typeParams` is normalised to `{}`.\n*/\nfunction toStorageTypeInstance(input) {\n\treturn {\n\t\tkind: CODEC_INSTANCE_KIND,\n\t\tcodecId: input.codecId,\n\t\tdataType: input.dataType,\n\t\ttypeParams: input.typeParams ?? {}\n\t};\n}\n/**\n* The type parameters of a type written with its own parameters or by the name of a named type: its own, or else the named type's. Empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.\n*/\nfunction resolvedTypeParams(type, namedTypes) {\n\tconst typeParams = type.typeParams ?? (type.typeRef === void 0 ? void 0 : namedTypes?.[type.typeRef]?.typeParams);\n\treturn typeParams !== void 0 && Object.keys(typeParams).length > 0 ? typeParams : void 0;\n}\n/**\n* Type-guard for codec-typed entries on the polymorphic\n* `SqlStorage.types` slot. Distinguishes `StorageTypeInstance` from\n* any class-instance kinds a target pack contributes.\n*/\nfunction isStorageTypeInstance(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn value.kind === CODEC_INSTANCE_KIND;\n}\n//#endregion\n//#region src/ir/sql-storage.ts\n/**\n* Narrows framework `AuthoringContributions` to the SQL-family shape by testing\n* for the SQL-specific `createNamespace` capability.\n*/\nfunction isSqlAuthoringContributions(authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"createNamespace\")) return false;\n\treturn typeof Reflect.get(authoring, \"createNamespace\") === \"function\";\n}\n/**\n* Abstract SQL family namespace base class. Target concretions (`PostgresSchema`,\n* `SqliteDatabase`, …) extend this — it is never instantiated directly.\n* `entries` is the open ADR 224 dictionary: `entries[entityKind][entityName]`\n* addresses any entity.\n*/\nvar SqlNamespaceBase = class extends NamespaceBase {};\n/**\n* Realm-safe guard for hydrated `SqlNamespaceBase` concretions. Checks\n* `qualifyTable` structurally instead of `instanceof NamespaceBase`, so it\n* survives duplicate-module boundaries (e.g. dist e2e where the target and\n* the family carry separate copies of `@internal/framework-components`).\n*\n* Every concrete `SqlNamespaceBase` subclass (`PostgresSchema`, `SqliteDatabase`,\n* `TestSqlNamespace`, …) implements `qualifyTable`. Raw `SqlNamespaceInput`\n* objects (`{ id, entries }`) do not.\n*/\nfunction isMaterializedSqlNamespace(x) {\n\tif (typeof x !== \"object\" || x === null || !(\"qualifyTable\" in x)) return false;\n\treturn typeof x.qualifyTable === \"function\";\n}\nvar SqlStorage = class extends SqlNode {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tif (input.types !== void 0) this.types = Object.freeze(Object.fromEntries(Object.entries(input.types).map(([name, ti]) => [name, normaliseTypeEntry(name, ti)])));\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Strict polymorphic-slot dispatch for `SqlStorage.types` entries.\n* Every entry must carry a `kind: 'codec-instance'` discriminator or\n* be an already-constructed `StorageTypeInstance`. Untagged or\n* unrecognised inputs throw a diagnostic naming the entry and its\n* `kind`, so format drift surfaces loudly at the deserializer\n* boundary instead of slipping past the seam and corrupting\n* downstream IR walks.\n*\n* Codec-triple authors that have an untagged shape on hand can call\n* `toStorageTypeInstance(...)` (which stamps the `'codec-instance'`\n* discriminator) before constructing `SqlStorage`. On-disk reads\n* cross `familyInstance.deserializeContract` first; the structural\n* arktype schema rejects untagged entries earlier, so this throw\n* only fires for in-memory authoring bugs.\n*/\nfunction normaliseTypeEntry(name, entry) {\n\tif (isStorageTypeInstance(entry)) {\n\t\tif (\"typeParams\" in entry) return entry;\n\t\treturn toStorageTypeInstance(entry);\n\t}\n\tconst rawKind = isPlainRecord(entry) && \"kind\" in entry ? entry.kind : void 0;\n\tconst kindDescription = rawKind === void 0 ? \"missing `kind` discriminator\" : `unrecognised \\`kind\\` discriminator ${JSON.stringify(rawKind)}`;\n\tthrow new InternalError(`storage.types[${JSON.stringify(name)}] has ${kindDescription}; expected ${JSON.stringify(\"codec-instance\")}. Untagged codec triples should be wrapped with toStorageTypeInstance(...) before construction.`);\n}\n//#endregion\n//#region src/types.ts\nconst DEFAULT_FK_CONSTRAINT = true;\nconst DEFAULT_FK_INDEX = true;\nfunction applyFkDefaults(fk, overrideDefaults) {\n\treturn {\n\t\tconstraint: fk.constraint ?? overrideDefaults?.constraint ?? true,\n\t\tindex: fk.index ?? overrideDefaults?.index ?? true\n\t};\n}\n//#endregion\nexport { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };\n\n//# sourceMappingURL=types.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,MAAM,sBAAsB;;;;;;AAM5B,SAAS,sBAAsB,OAAO;CACrC,OAAO;EACN,MAAM;EACN,SAAS,MAAM;EACf,UAAU,MAAM;EAChB,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;;;;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U,QAAQ,MAAM,OAAO,KAAK;CAC5E,MAAM,kBAAkB,YAAY,KAAK,IAAI,iCAAiC,uCAAuC,KAAK,UAAU,OAAO;CAC3I,MAAM,IAAI,cAAc,iBAAiB,KAAK,UAAU,IAAI,EAAE,QAAQ,gBAAgB,aAAa,KAAK,UAAU,gBAAgB,EAAE,gGAAgG;AACrO;AAGA,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AACzB,SAAS,gBAAgB,IAAI,kBAAkB;CAC9C,OAAO;EACN,YAAY,GAAG,cAAc,kBAAkB,cAAc;EAC7D,OAAO,GAAG,SAAS,kBAAkB,SAAS;CAC/C;AACD"}
1
+ {"version":3,"file":"types-M_FeBD9w.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.mjs"],"sourcesContent":["import { a as ForeignKey, c as CheckConstraint, i as PrimaryKey, l as SqlNode, n as UniqueConstraint, o as ForeignKeyReference, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-DN36E2yE.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-52COq1yV.mjs\";\nimport { NamespaceBase, freezeNode, isPlainRecord } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { RelationKeys } from \"@internal/framework-components/runtime\";\n//#region src/ir/storage-type-instance.ts\n/**\n* Sentinel kind for the legacy codec-triple shape persisted under\n* `SqlStorage.types`. Plain JSON-clean object literals carry this\n* discriminator so the polymorphic slot dispatch can route them down\n* the codec path while target-specific IR class instances (e.g. the\n* Postgres enum class) keep their own narrower `kind` literal.\n*/\nconst CODEC_INSTANCE_KIND = \"codec-instance\";\n/**\n* Stamp the codec-instance `kind` discriminator on a caller-supplied\n* codec triple. Idempotent: input that already carries the discriminator\n* passes through unchanged. Missing `typeParams` is normalised to `{}`.\n*/\nfunction toStorageTypeInstance(input) {\n\treturn {\n\t\tkind: CODEC_INSTANCE_KIND,\n\t\tcodecId: input.codecId,\n\t\tdataType: input.dataType,\n\t\ttypeParams: input.typeParams ?? {}\n\t};\n}\n/**\n* The type parameters of a type written with its own parameters or by the name of a named type: its own, or else the named type's. Empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.\n*/\nfunction resolvedTypeParams(type, namedTypes) {\n\tconst typeParams = type.typeParams ?? (type.typeRef === void 0 ? void 0 : namedTypes?.[type.typeRef]?.typeParams);\n\treturn typeParams !== void 0 && Object.keys(typeParams).length > 0 ? typeParams : void 0;\n}\n/**\n* Type-guard for codec-typed entries on the polymorphic\n* `SqlStorage.types` slot. Distinguishes `StorageTypeInstance` from\n* any class-instance kinds a target pack contributes.\n*/\nfunction isStorageTypeInstance(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn value.kind === CODEC_INSTANCE_KIND;\n}\n//#endregion\n//#region src/ir/sql-storage.ts\n/**\n* Narrows framework `AuthoringContributions` to the SQL-family shape by testing\n* for the SQL-specific `createNamespace` capability.\n*/\nfunction isSqlAuthoringContributions(authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"createNamespace\")) return false;\n\treturn typeof Reflect.get(authoring, \"createNamespace\") === \"function\";\n}\n/**\n* Abstract SQL family namespace base class. Target concretions (`PostgresSchema`,\n* `SqliteDatabase`, …) extend this — it is never instantiated directly.\n* `entries` is the open ADR 224 dictionary: `entries[entityKind][entityName]`\n* addresses any entity.\n*/\nvar SqlNamespaceBase = class extends NamespaceBase {};\n/**\n* Realm-safe guard for hydrated `SqlNamespaceBase` concretions. Checks\n* `qualifyTable` structurally instead of `instanceof NamespaceBase`, so it\n* survives duplicate-module boundaries (e.g. dist e2e where the target and\n* the family carry separate copies of `@internal/framework-components`).\n*\n* Every concrete `SqlNamespaceBase` subclass (`PostgresSchema`, `SqliteDatabase`,\n* `TestSqlNamespace`, …) implements `qualifyTable`. Raw `SqlNamespaceInput`\n* objects (`{ id, entries }`) do not.\n*/\nfunction isMaterializedSqlNamespace(x) {\n\tif (typeof x !== \"object\" || x === null || !(\"qualifyTable\" in x)) return false;\n\treturn typeof x.qualifyTable === \"function\";\n}\nvar SqlStorage = class extends SqlNode {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tif (input.types !== void 0) this.types = Object.freeze(Object.fromEntries(Object.entries(input.types).map(([name, ti]) => [name, normaliseTypeEntry(name, ti)])));\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Strict polymorphic-slot dispatch for `SqlStorage.types` entries.\n* Every entry must carry a `kind: 'codec-instance'` discriminator or\n* be an already-constructed `StorageTypeInstance`. Untagged or\n* unrecognised inputs throw a diagnostic naming the entry and its\n* `kind`, so format drift surfaces loudly at the deserializer\n* boundary instead of slipping past the seam and corrupting\n* downstream IR walks.\n*\n* Codec-triple authors that have an untagged shape on hand can call\n* `toStorageTypeInstance(...)` (which stamps the `'codec-instance'`\n* discriminator) before constructing `SqlStorage`. On-disk reads\n* cross `familyInstance.deserializeContract` first; the structural\n* arktype schema rejects untagged entries earlier, so this throw\n* only fires for in-memory authoring bugs.\n*/\nfunction normaliseTypeEntry(name, entry) {\n\tif (isStorageTypeInstance(entry)) {\n\t\tif (\"typeParams\" in entry) return entry;\n\t\treturn toStorageTypeInstance(entry);\n\t}\n\tconst rawKind = isPlainRecord(entry) && \"kind\" in entry ? entry.kind : void 0;\n\tconst kindDescription = rawKind === void 0 ? \"missing `kind` discriminator\" : `unrecognised \\`kind\\` discriminator ${JSON.stringify(rawKind)}`;\n\tthrow new InternalError(`storage.types[${JSON.stringify(name)}] has ${kindDescription}; expected ${JSON.stringify(\"codec-instance\")}. Untagged codec triples should be wrapped with toStorageTypeInstance(...) before construction.`);\n}\n//#endregion\n//#region src/types.ts\nconst DEFAULT_FK_CONSTRAINT = true;\nconst DEFAULT_FK_INDEX = true;\nfunction applyFkDefaults(fk, overrideDefaults) {\n\treturn {\n\t\tconstraint: fk.constraint ?? overrideDefaults?.constraint ?? true,\n\t\tindex: fk.index ?? overrideDefaults?.index ?? true\n\t};\n}\n//#endregion\nexport { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };\n\n//# sourceMappingURL=types.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,MAAM,sBAAsB;;;;;;AAM5B,SAAS,sBAAsB,OAAO;CACrC,OAAO;EACN,MAAM;EACN,SAAS,MAAM;EACf,UAAU,MAAM;EAChB,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;;;;AAIA,SAAS,mBAAmB,MAAM,YAAY;CAC7C,MAAM,aAAa,KAAK,eAAe,KAAK,YAAY,KAAK,IAAI,KAAK,IAAI,aAAa,KAAK,QAAQ,EAAE;CACtG,OAAO,eAAe,KAAK,KAAK,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,IAAI,aAAa,KAAK;AACxF;;;;;;AAMA,SAAS,sBAAsB,OAAO;CACrC,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,OAAO,MAAM,SAAS;AACvB;;;;;AAOA,SAAS,4BAA4B,WAAW;CAC/C,IAAI,cAAc,KAAK,KAAK,CAAC,OAAO,OAAO,WAAW,iBAAiB,GAAG,OAAO;CACjF,OAAO,OAAO,QAAQ,IAAI,WAAW,iBAAiB,MAAM;AAC7D;;;;;;;AAOA,IAAI,mBAAmB,cAAc,cAAc,CAAC;;;;;;;;;;;AAWpD,SAAS,2BAA2B,GAAG;CACtC,IAAI,OAAO,MAAM,YAAY,MAAM,QAAQ,EAAE,kBAAkB,IAAI,OAAO;CAC1E,OAAO,OAAO,EAAE,iBAAiB;AAClC;AACA,IAAI,aAAa,cAAc,QAAQ;CACtC;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,KAAK,cAAc,MAAM;EACzB,KAAK,aAAa,OAAO,OAAO,MAAM,UAAU;EAChD,IAAI,MAAM,UAAU,KAAK,GAAG,KAAK,QAAQ,OAAO,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,MAAM,mBAAmB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;EAChK,WAAW,IAAI;CAChB;AACD;;;;;;;;;;;;;;;;;AAiBA,SAAS,mBAAmB,MAAM,OAAO;CACxC,IAAI,sBAAsB,KAAK,GAAG;EACjC,IAAI,gBAAgB,OAAO,OAAO;EAClC,OAAO,sBAAsB,KAAK;CACnC;CACA,MAAM,UAAU,cAAc,KAAK,KAAK,UAAU,QAAQ,MAAM,OAAO,KAAK;CAC5E,MAAM,kBAAkB,YAAY,KAAK,IAAI,iCAAiC,uCAAuC,KAAK,UAAU,OAAO;CAC3I,MAAM,IAAI,cAAc,iBAAiB,KAAK,UAAU,IAAI,EAAE,QAAQ,gBAAgB,aAAa,KAAK,UAAU,gBAAgB,EAAE,gGAAgG;AACrO;AAGA,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AACzB,SAAS,gBAAgB,IAAI,kBAAkB;CAC9C,OAAO;EACN,YAAY,GAAG,cAAc,kBAAkB,cAAc;EAC7D,OAAO,GAAG,SAAS,kBAAkB,SAAS;CAC/C;AACD"}
@@ -0,0 +1 @@
1
+ import "./types-Cv5t6_Ly-CcBWTpfM.mjs";
@@ -1,27 +1,9 @@
1
1
  import { r as SqlObjectNaming } from "./naming-BcD36g9T-DFyaudUa.mjs";
2
2
  import { IRNodeBase } from "@prisma/orm-framework/components/ir";
3
- import { CodecRef, DataType, ToCanonicalForm } from "@prisma/orm-framework/components/codec";
4
- import { ColumnDefault, ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
3
+ import { CodecRef, DataType, DataTypeValue } from "@prisma/orm-framework/components/codec";
4
+ import { ColumnDefault } from "@prisma/orm-framework/contract/types";
5
5
  import { DiffSubjectGranularity, DiffableNode, SchemaNodeRef } from "@prisma/orm-framework/components/control";
6
- //#region ../../../2-sql/1-core/schema-ir/dist/types-C-z8HyiZ.d.mts
7
- //#region src/ir/default-in-canonical-form.d.ts
8
- interface DefaultInCanonicalForm {
9
- readonly value: ColumnDefaultLiteralInputValue;
10
- /** The canonical form's message for the value, or the first list element, it refuses. */
11
- readonly refusal: string | undefined;
12
- }
13
- /**
14
- * A literal default in the canonical form of the column's values (ADR 254), element by element for
15
- * a list column. A `Date` is read as its ISO text first. A value the form refuses is kept as it is,
16
- * with the form's message.
17
- */
18
- declare function defaultInCanonicalForm(value: ColumnDefaultLiteralInputValue, toCanonicalForm: ToCanonicalForm | undefined, list: boolean): DefaultInCanonicalForm;
19
- /**
20
- * The refusal of a contract's literal default that the canonical form of its column's values does
21
- * not take, which a contract emitted by an earlier version can carry, with what to do about it.
22
- */
23
- declare function contractDefaultRefusal(columnDefault: ColumnDefault | undefined, toCanonicalForm: ToCanonicalForm | undefined, list: boolean): string | undefined;
24
- //#endregion
6
+ //#region ../../../2-sql/1-core/schema-ir/dist/types-c1iIhJep.d.mts
25
7
  //#region src/ir/sql-schema-ir-node.d.ts
26
8
  /**
27
9
  * SQL Schema IR node base. Carries the family-level
@@ -193,19 +175,28 @@ declare class SqlCheckConstraintIR extends SqlSchemaIRNode implements DiffableNo
193
175
  isEqualTo(other: DiffableNode): boolean;
194
176
  }
195
177
  //#endregion
178
+ //#region src/ir/sql-default-value.d.ts
179
+ /**
180
+ * A literal default as a value of its column's data type: one value, or for a list column its elements, with `null` for an element that is SQL NULL. ADR 254.
181
+ */
182
+ type SqlDefaultValue = DataTypeValue | readonly (DataTypeValue | null)[];
183
+ /** Whether two defaults are one value: the same type, parameters and value, element by element for a list. */
184
+ declare function sqlDefaultValuesEqual(a: SqlDefaultValue, b: SqlDefaultValue): boolean;
185
+ //#endregion
196
186
  //#region src/ir/sql-column-default-ir.d.ts
197
187
  interface SqlColumnDefaultIRInput {
198
- /** Structured resolved default (contract-declared or normalizer-parsed). */
188
+ /** Structured default: the contract's, or what introspection read from the database. */
199
189
  readonly resolved?: ColumnDefault;
200
190
  /** Raw database default expression, when known (introspected side). */
201
191
  readonly raw?: string;
202
192
  /** See {@link import('./sql-column-ir').SqlColumnIRInput.authoredDefault}. */
203
193
  readonly authored?: ColumnDefault;
204
- /**
205
- * Native-type context for temporal literal normalization — the owning
206
- * column's resolved native type.
207
- */
208
- readonly nativeTypeContext?: string;
194
+ /** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultValue}. */
195
+ readonly value?: SqlDefaultValue;
196
+ /** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultUnreadable}. */
197
+ readonly unreadable?: string;
198
+ /** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultExpressionValue}. */
199
+ readonly expressionValue?: SqlDefaultValue;
209
200
  /**
210
201
  * The owning column's array-ness, threaded through so the planner's
211
202
  * set-default op-builder can render an array-literal default (e.g.
@@ -221,8 +212,6 @@ interface SqlColumnDefaultIRInput {
221
212
  readonly codecRef?: CodecRef;
222
213
  /** See {@link import('./sql-column-ir').SqlColumnIRInput.codecBaseNativeType}. */
223
214
  readonly codecBaseNativeType?: string;
224
- /** See {@link import('./sql-column-ir').SqlColumnIRInput.toCanonicalForm}. */
225
- readonly toCanonicalForm?: ToCanonicalForm;
226
215
  }
227
216
  /**
228
217
  * Schema-diff node for a column's default value. The default is the one
@@ -243,33 +232,34 @@ declare class SqlColumnDefaultIR extends SqlSchemaIRNode implements DiffableNode
243
232
  readonly raw?: string;
244
233
  /** See {@link SqlColumnDefaultIRInput.authored}. Non-enumerable, same reason as {@link many}. */
245
234
  readonly authored?: ColumnDefault;
246
- readonly nativeTypeContext?: string;
235
+ /** See {@link SqlColumnDefaultIRInput.value}. Non-enumerable, same reason as {@link many}. */
236
+ readonly value?: SqlDefaultValue;
237
+ /** See {@link SqlColumnDefaultIRInput.unreadable}. Non-enumerable, same reason as {@link many}. */
238
+ readonly unreadable?: string;
239
+ /** See {@link SqlColumnDefaultIRInput.expressionValue}. Non-enumerable, same reason as {@link many}. */
240
+ readonly expressionValue?: SqlDefaultValue;
247
241
  /** See {@link SqlColumnDefaultIRInput.many}. Non-enumerable so it stays out of JSON and structural equality. */
248
242
  readonly many?: boolean;
249
243
  /** See {@link SqlColumnDefaultIRInput.codecRef}. Non-enumerable, same reason as {@link many}. */
250
244
  readonly codecRef?: CodecRef;
251
245
  /** See {@link SqlColumnDefaultIRInput.codecBaseNativeType}. Non-enumerable, same reason as {@link many}. */
252
246
  readonly codecBaseNativeType?: string;
253
- /** See {@link SqlColumnDefaultIRInput.toCanonicalForm}. Non-enumerable, same reason as {@link many}. */
254
- readonly toCanonicalForm?: ToCanonicalForm;
255
247
  constructor(input: SqlColumnDefaultIRInput);
256
248
  get id(): string;
257
249
  children(): readonly DiffableNode[];
258
250
  static is(node: SqlSchemaIRNode): node is SqlColumnDefaultIR;
259
251
  /**
260
- * Structured comparison with `this` as the expected side: both sides
261
- * resolved compare per the relational walk's `columnDefaultsEqual`
262
- * semantics, a literal through the canonical form of the column's values when the
263
- * contract-derived side carries one; a declared expected default against an unparseable actual
264
- * (raw present, no resolved parse) is a mismatch; two raw-only nodes fall
265
- * back to raw string equality.
252
+ * Compares with `this` as the expected side. Two literals compare as values of the column's type
253
+ * when both sides hold one, and as canonical JSON otherwise; a `Date` the column's codec could not
254
+ * read into a value equals nothing. Two expressions compare as text, with
255
+ * case and whitespace ignored outside quotes. An expected expression that writes a literal, read by
256
+ * the column's codec during introspection, matches a reported literal when the two values are
257
+ * equal; when the codec could not read one of them, it compares with the reported text. A resolved
258
+ * side against a raw-only side is a mismatch; two raw-only nodes compare their text.
266
259
  */
267
260
  isEqualTo(other: DiffableNode): boolean;
268
- /**
269
- * The refusal of an expected literal its canonical form does not take, which a contract emitted
270
- * by an earlier version can carry, so the mismatch names its cause.
271
- */
272
- explainMismatch(): string | undefined;
261
+ /** Why the column's codec could not read the default the database reports, when it could not; otherwise the value each side holds. */
262
+ explainMismatch(actual: DiffableNode | undefined): string | undefined;
273
263
  }
274
264
  //#endregion
275
265
  //#region src/ir/sql-column-ir.d.ts
@@ -351,11 +341,15 @@ interface SqlColumnIRInput {
351
341
  */
352
342
  readonly dataType?: DataType;
353
343
  /**
354
- * The canonical form of the column's values, from `canonicalFormOf` (ADR 254). A literal default
355
- * compares through it, so two forms of one value are equal, and DDL writes the canonical form.
356
- * Stamped on the contract-derived column; absent on introspected nodes.
344
+ * A literal default as a value of the column's data type (ADR 254): on the contract-derived side read from the contract by the column's type, on the introspected side read from the database by the column's codec. The diff compares defaults by it. Absent when no type or codec read one.
345
+ */
346
+ readonly defaultValue?: SqlDefaultValue;
347
+ /** Why the column's codec could not read the literal default the database reports. Introspected side only. */
348
+ readonly defaultUnreadable?: string;
349
+ /**
350
+ * When the contract's default is an expression that writes a literal, such as `` sql`'hello'::bytea` ``, the value the column's codec reads from that literal. Introspection reads it, beside the reported default, because only introspection reads with a codec; the diff compares it with the reported default's value. Introspected side only.
357
351
  */
358
- readonly toCanonicalForm?: ToCanonicalForm;
352
+ readonly defaultExpressionValue?: SqlDefaultValue;
359
353
  /** The element type as the database reports it. Set by introspection; absent on contract-derived nodes. */
360
354
  readonly reportedType?: ReportedSqlType;
361
355
  }
@@ -394,8 +388,12 @@ declare class SqlColumnIR extends SqlSchemaIRNode implements DiffableNode {
394
388
  readonly codecBaseNativeType?: string;
395
389
  /** See {@link SqlColumnIRInput.dataType}. Non-enumerable, same reason as {@link codecRef}. */
396
390
  readonly dataType?: DataType;
397
- /** See {@link SqlColumnIRInput.toCanonicalForm}. Non-enumerable, same reason as {@link codecRef}. */
398
- readonly toCanonicalForm?: ToCanonicalForm;
391
+ /** See {@link SqlColumnIRInput.defaultValue}. Non-enumerable, same reason as {@link codecRef}. */
392
+ readonly defaultValue?: SqlDefaultValue;
393
+ /** See {@link SqlColumnIRInput.defaultUnreadable}. Non-enumerable, same reason as {@link codecRef}. */
394
+ readonly defaultUnreadable?: string;
395
+ /** See {@link SqlColumnIRInput.defaultExpressionValue}. Non-enumerable, same reason as {@link codecRef}. */
396
+ readonly defaultExpressionValue?: SqlDefaultValue;
399
397
  /** See {@link SqlColumnIRInput.reportedType}. Non-enumerable, same reason as {@link codecRef}. */
400
398
  readonly reportedType?: ReportedSqlType;
401
399
  constructor(input: SqlColumnIRInput);
@@ -736,5 +734,5 @@ declare class SqlSchemaIR extends SqlSchemaIRNode implements DiffableNode {
736
734
  children(): readonly DiffableNode[];
737
735
  }
738
736
  //#endregion
739
- export { relationalNodeGranularity as A, SqlUniqueIR as C, defaultInCanonicalForm as D, contractDefaultRefusal as E, defineNonEnumerable as O, SqlTableIRInput as S, assertNode as T, SqlReferentialAction as _, ReportedSqlType as a, SqlSchemaIRNode as b, SqlCheckConstraintIRInput as c, SqlColumnIR as d, SqlColumnIRInput as f, SqlIndexIRInput as g, SqlIndexIR as h, RelationalSchemaNodeKind as i, relationalNodeEntityKind as k, SqlColumnDefaultIR as l, SqlForeignKeyIRInput as m, PrimaryKey as n, SqlAnnotations as o, SqlForeignKeyIR as p, PrimaryKeyInput as r, SqlCheckConstraintIR as s, DefaultInCanonicalForm as t, SqlColumnDefaultIRInput as u, SqlSchemaIR as v, SqlUniqueIRInput as w, SqlTableIR as x, SqlSchemaIRInput as y };
740
- //# sourceMappingURL=types-C-z8HyiZ-1Nhw0pHj.d.mts.map
737
+ export { SqlUniqueIR as C, relationalNodeEntityKind as D, defineNonEnumerable as E, relationalNodeGranularity as O, SqlTableIRInput as S, assertNode as T, SqlReferentialAction as _, SqlAnnotations as a, SqlSchemaIRNode as b, SqlColumnDefaultIR as c, SqlColumnIRInput as d, SqlDefaultValue as f, SqlIndexIRInput as g, SqlIndexIR as h, ReportedSqlType as i, sqlDefaultValuesEqual as k, SqlColumnDefaultIRInput as l, SqlForeignKeyIRInput as m, PrimaryKeyInput as n, SqlCheckConstraintIR as o, SqlForeignKeyIR as p, RelationalSchemaNodeKind as r, SqlCheckConstraintIRInput as s, PrimaryKey as t, SqlColumnIR as u, SqlSchemaIR as v, SqlUniqueIRInput as w, SqlTableIR as x, SqlSchemaIRInput as y };
738
+ //# sourceMappingURL=types-c1iIhJep-DdMj6TNl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-c1iIhJep-DdMj6TNl.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-c1iIhJep.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2BuB,wBAAwB;WACpC;;;;;;;;;oBASS;EAClB;;;;;;;;iBAQe,WAAW,UAAU,iBAAiB,MAAM,6BAA6B,mBAAmB,YAAY,MAAM,oBAAoB,QAAQ,YAAY,QAAQ;;;;;;;;;;iBAU9J,oBAAoB,kBAAkB,QAAQ,GAAG,aAAa;;;UAGrE;WACC;WACA;;;;;;WAMA,qBAAqB;;;;;;;;;;;;;;;cAelB,mBAAmB,2BAA2B;WACjD;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,aAAa,kBAAkB;SAC3C,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;;;;;;;;cAWL;WACH;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;KAEN,mCAAmC,uCAAuC;;;;;;;iBAO9D,0BAA0B,mBAAmB;;;;;;;;iBAQ7C,yBAAyB;;;UAGhC;;WAEC,QAAQ;;WAER;;;;;;;;;WASA,oBAAoB;;;;;;;;;;;;;;;cAejB,6BAA6B,2BAA2B;WAC3D;WACA;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,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AAc;WACvB,aAAa;WACb,cAAc;WACd,SAAS,cAAc;EAChC,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB;;;;UAIb;WACC,QAAQ,eAAe,aAAa;WACpC,cAAc;;;;;;;;;;;;;;;;;cAiBX,oBAAoB,2BAA2B;WAClD;WACA,QAAQ,SAAS,eAAe;WAChC,cAAc;EACvB,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB"}
@@ -1,11 +1,12 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
- import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-CT8tRisJ-DLHKo0Hm.mjs";
3
- import { f as composeSqlEntityKinds } from "./entity-kinds-CQ_jwgYv-HA5t2SE0.mjs";
4
- import { a as sameColumns$1, s as startsWithColumns } from "./index-equivalence-DswCiq5l-DlC2yTK1.mjs";
2
+ import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-bM5qm5PY-DdginUhA.mjs";
3
+ import { d as sqlStorageTypeId } from "./sql-data-type-Dabuwxet-BljsNjBu.mjs";
4
+ import { f as composeSqlEntityKinds } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
5
+ import { a as sameColumns$1, s as startsWithColumns } from "./index-equivalence-DswCiq5l-BsphajRC.mjs";
5
6
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
6
7
  import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
7
8
  import { isPlainRecord } from "@prisma/orm-framework/components/ir";
8
- import { DATA_TYPE_ID_PATTERN } from "@prisma/orm-framework/components/codec";
9
+ import { DATA_TYPE_ID_PATTERN, createDataTypeLookup } from "@prisma/orm-framework/components/codec";
9
10
  import { blindCast } from "@prisma/orm-framework/utils/casts";
10
11
  import { type } from "arktype";
11
12
  import { ContractExecutionSectionSchema, CrossReferenceSchema } from "@prisma/orm-framework/contract/types";
@@ -644,7 +645,7 @@ function validateSqlContractFully(value, options) {
644
645
  validateModelStorageReferences(validated);
645
646
  validateExecutionDefaultsTargetMappedColumns(validated);
646
647
  validateRelationJoinFields(validated);
647
- validateRelationThroughConsistency(validated);
648
+ validateRelationThroughConsistency(validated, options?.dataTypes ?? createDataTypeLookup([]));
648
649
  validateToOneRelationNullabilityAgainstStorage(validated);
649
650
  return validated;
650
651
  }
@@ -678,11 +679,11 @@ function lookupStorageColumn(contract, namespaceId, tableName, columnName) {
678
679
  return blindCast(rawTable).columns[columnName];
679
680
  }
680
681
  /**
681
- * Two storage columns share a type when their `dataType` and `typeParams` match. `codecId` and
682
+ * Two storage columns share a type when the types their `dataType`s are stored as and their `typeParams` match. `codecId` and
682
683
  * `nullable` are not compared: they do not change the database type that governs a join.
683
684
  */
684
- function sameStorageType(a, b) {
685
- return a.dataType === b.dataType && canonicalizeJson(a.typeParams ?? {}) === canonicalizeJson(b.typeParams ?? {});
685
+ function sameStorageType(a, b, dataTypes) {
686
+ return sqlStorageTypeId(a.dataType, dataTypes) === sqlStorageTypeId(b.dataType, dataTypes) && canonicalizeJson(a.typeParams ?? {}) === canonicalizeJson(b.typeParams ?? {});
686
687
  }
687
688
  function describeColumnType(column) {
688
689
  return column.typeParams === void 0 ? column.dataType : `${column.dataType} ${canonicalizeJson(column.typeParams)}`;
@@ -721,7 +722,7 @@ function validateThroughJoinSide(input) {
721
722
  }
722
723
  const modelColumn = lookupStorageColumn(input.contract, model.namespaceId, model.table, modelColumnName);
723
724
  if (modelColumn === void 0) throw fail(`${input.modelColumnsLabel} references column "${modelColumnName}" absent from table "${model.namespaceId}.${model.table}".`);
724
- if (!sameStorageType(junctionColumn, modelColumn)) throw fail(`joins "${input.junctionTable}.${junctionColumnName}" (${describeColumnType(junctionColumn)}) with "${model.table}.${modelColumnName}" (${describeColumnType(modelColumn)}) of differing storage type; junction columns must match the type of the column they reference.`);
725
+ if (!sameStorageType(junctionColumn, modelColumn, input.dataTypes)) throw fail(`joins "${input.junctionTable}.${junctionColumnName}" (${describeColumnType(junctionColumn)}) with "${model.table}.${modelColumnName}" (${describeColumnType(modelColumn)}) of differing storage type; junction columns must match the type of the column they reference.`);
725
726
  }
726
727
  }
727
728
  /**
@@ -731,13 +732,14 @@ function validateThroughJoinSide(input) {
731
732
  * storage type. Without this, a `through` that disagrees with storage surfaces
732
733
  * as a silently wrong JOIN at query time rather than a validation error here.
733
734
  */
734
- function validateRelationThroughConsistency(contract) {
735
+ function validateRelationThroughConsistency(contract, dataTypes) {
735
736
  for (const [namespaceId, namespace] of Object.entries(contract.domain.namespaces)) for (const [modelName, model] of Object.entries(namespace.models)) for (const [relationName, relation] of Object.entries(model.relations)) {
736
737
  if (relation.cardinality !== "N:M") continue;
737
738
  const qualifiedName = `${namespaceId}.${modelName}.${relationName}`;
738
739
  const { on, through } = relation;
739
740
  const modelStorage = blindCast(model.storage);
740
741
  validateThroughJoinSide({
742
+ dataTypes,
741
743
  contract,
742
744
  qualifiedName,
743
745
  modelColumns: on.localFields,
@@ -758,6 +760,7 @@ function validateRelationThroughConsistency(contract) {
758
760
  table: blindCast(targetModel.storage).table
759
761
  };
760
762
  validateThroughJoinSide({
763
+ dataTypes,
761
764
  contract,
762
765
  qualifiedName,
763
766
  modelColumns: through.targetColumns,
@@ -773,4 +776,4 @@ function validateRelationThroughConsistency(contract) {
773
776
  //#endregion
774
777
  export { createSqlStorageSchema as a, validateExecutionDefaultsTargetMappedColumns as c, validateRelationJoinFields as d, validateSqlContractFully as f, valueObjectStorageTypeMissingMessage as g, validateStorageSemantics as h, createSqlContractSchema as i, validateModel as l, validateStorage as m, checkSqlDefaultText as n, reservedSqlDefaultText as o, validateSqlStorageConsistency as p, createNamespaceEntrySchema as r, resolveSqlToOneRelationStorage as s, ContractEnumSchema as t, validateModelStorageReferences as u };
775
778
 
776
- //# sourceMappingURL=validators-DlpO67uZ.mjs.map
779
+ //# sourceMappingURL=validators-Bvfk0aN7.mjs.map