@prisma/orm-family-sql 8.0.0-rc.14-dev.20 → 8.0.0-rc.14-dev.21

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 (241) hide show
  1. package/dist/ast-5hifzBHC.mjs.map +1 -1
  2. package/dist/{ast-S4eEzFmO.d.mts → ast-dPjHeaNs.d.mts} +3 -3
  3. package/dist/{ast-S4eEzFmO.d.mts.map → ast-dPjHeaNs.d.mts.map} +1 -1
  4. package/dist/{authored-check-naming-CJRDf9-V.mjs → authored-check-naming-BjIs43HD.mjs} +3 -3
  5. package/dist/{authored-check-naming-CJRDf9-V.mjs.map → authored-check-naming-BjIs43HD.mjs.map} +1 -1
  6. package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-C8_TvzU6.d.mts} +2 -2
  7. package/dist/{authored-check-naming-BWBe-PVE.d.mts.map → authored-check-naming-C8_TvzU6.d.mts.map} +1 -1
  8. package/dist/{authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts → authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts} +2 -2
  9. package/dist/{authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts.map → authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts.map} +1 -1
  10. package/dist/{authoring-type-constructors-DIyheCzv-BuirUCc_.mjs → authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs} +2 -2
  11. package/dist/{authoring-type-constructors-DIyheCzv-BuirUCc_.mjs.map → authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs.map} +1 -1
  12. package/dist/builder.d.mts +2 -2
  13. package/dist/builder__runtime.d.mts +9 -9
  14. package/dist/builder__runtime.mjs +1 -1
  15. package/dist/builder__types.d.mts +2 -2
  16. package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-agxAjKLG.d.mts} +2 -2
  17. package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts.map → check-constraint-B7qGu6rc-agxAjKLG.d.mts.map} +1 -1
  18. package/dist/{codec-descriptor-registry-BSoMKDUv.mjs → codec-descriptor-registry-u6_e6WfA.mjs} +2 -2
  19. package/dist/{codec-descriptor-registry-BSoMKDUv.mjs.map → codec-descriptor-registry-u6_e6WfA.mjs.map} +1 -1
  20. package/dist/{config-types-CYRUgWbg.mjs → config-types-DNRmpGNL.mjs} +2 -2
  21. package/dist/{config-types-CYRUgWbg.mjs.map → config-types-DNRmpGNL.mjs.map} +1 -1
  22. package/dist/{config-types-Dpg3tzCJ.d.mts → config-types-Dxhmk983.d.mts} +4 -4
  23. package/dist/{config-types-Dpg3tzCJ.d.mts.map → config-types-Dxhmk983.d.mts.map} +1 -1
  24. package/dist/{contract-builder-_39f3LuO.d.mts → contract-builder-Br5TlHMh.d.mts} +8 -8
  25. package/dist/{contract-builder-_39f3LuO.d.mts.map → contract-builder-Br5TlHMh.d.mts.map} +1 -1
  26. package/dist/{contract-builder-CUfUvDc1.mjs → contract-builder-C3MYW38z.mjs} +4 -4
  27. package/dist/{contract-builder-CUfUvDc1.mjs.map → contract-builder-C3MYW38z.mjs.map} +1 -1
  28. package/dist/contract-emitter.mjs +1 -1
  29. package/dist/contract-prisma7__provider.d.mts +2 -2
  30. package/dist/contract-prisma7__provider.mjs +4 -4
  31. package/dist/contract-psl.d.mts +3 -3
  32. package/dist/contract-psl.mjs +1 -1
  33. package/dist/contract-psl__attribute-specs.d.mts +2 -2
  34. package/dist/contract-psl__attribute-specs.mjs +1 -1
  35. package/dist/contract-psl__provider.d.mts +2 -2
  36. package/dist/contract-psl__provider.mjs +2 -2
  37. package/dist/contract-ts.d.mts +4 -4
  38. package/dist/contract-ts.mjs +3 -3
  39. package/dist/contract-ts__config-types.d.mts +1 -1
  40. package/dist/contract-ts__config-types.mjs +1 -1
  41. package/dist/contract-ts__contract-builder.d.mts +3 -3
  42. package/dist/contract-ts__contract-builder.mjs +2 -2
  43. package/dist/{contract-view-D8enRe9A.d.mts → contract-view-CH3F_tqg.d.mts} +2 -2
  44. package/dist/{contract-view-D8enRe9A.d.mts.map → contract-view-CH3F_tqg.d.mts.map} +1 -1
  45. package/dist/contract.d.mts +16 -16
  46. package/dist/contract.mjs +9 -9
  47. package/dist/contract__authored-check-naming.d.mts +1 -1
  48. package/dist/contract__authored-check-naming.mjs +1 -1
  49. package/dist/contract__contract-view.d.mts +1 -1
  50. package/dist/contract__entity-kinds.d.mts +1 -1
  51. package/dist/contract__entity-kinds.mjs +1 -1
  52. package/dist/contract__factories.d.mts +1 -1
  53. package/dist/contract__factories.mjs +1 -1
  54. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  55. package/dist/contract__foreign-key-materialization.mjs +1 -1
  56. package/dist/contract__index-naming.d.mts +1 -1
  57. package/dist/contract__index-naming.mjs +1 -1
  58. package/dist/contract__index-type-validation.d.mts +1 -1
  59. package/dist/contract__resolve-storage-table.d.mts +1 -1
  60. package/dist/contract__types.d.mts +7 -7
  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-5FEFhtCN.d.mts → control-BkHE8MvS.d.mts} +16 -16
  65. package/dist/{control-5FEFhtCN.d.mts.map → control-BkHE8MvS.d.mts.map} +1 -1
  66. package/dist/{control-DIVsNXHK.mjs → control-D0iVJugI.mjs} +10 -10
  67. package/dist/{control-DIVsNXHK.mjs.map → control-D0iVJugI.mjs.map} +1 -1
  68. package/dist/{control-adapter-C4_cgvzB-C9dQipiW.d.mts → control-adapter-C4_cgvzB-BeJbfHsB.d.mts} +8 -8
  69. package/dist/{control-adapter-C4_cgvzB-C9dQipiW.d.mts.map → control-adapter-C4_cgvzB-BeJbfHsB.d.mts.map} +1 -1
  70. package/dist/control-adapter-Dwp_II8l.d.mts +1 -0
  71. package/dist/{db-DLjWu9-f-NJprwMBN.d.mts → db-DLjWu9-f-BjAFEKe9.d.mts} +9 -9
  72. package/dist/{db-DLjWu9-f-NJprwMBN.d.mts.map → db-DLjWu9-f-BjAFEKe9.d.mts.map} +1 -1
  73. package/dist/{ddl-types-B23QEzDx-DnMvLEgB.d.mts → ddl-types-B48YmQSt-DLCUHORB.d.mts} +24 -10
  74. package/dist/ddl-types-B48YmQSt-DLCUHORB.d.mts.map +1 -0
  75. package/dist/{derived-checks-C_y1rk6O-DdqjzGNy.mjs → derived-checks-C_y1rk6O-DwCaGICl.mjs} +10 -10
  76. package/dist/{derived-checks-C_y1rk6O-DdqjzGNy.mjs.map → derived-checks-C_y1rk6O-DwCaGICl.mjs.map} +1 -1
  77. package/dist/{derived-checks-DPdD01O0-CwIwhhTu.d.mts → derived-checks-DPdD01O0-BSShXJmp.d.mts} +3 -3
  78. package/dist/{derived-checks-DPdD01O0-CwIwhhTu.d.mts.map → derived-checks-DPdD01O0-BSShXJmp.d.mts.map} +1 -1
  79. package/dist/{diff-D3Ocd7-r.d.mts → diff-D-p9q4Ye.d.mts} +8 -8
  80. package/dist/{diff-D3Ocd7-r.d.mts.map → diff-D-p9q4Ye.d.mts.map} +1 -1
  81. package/dist/{dist-BW8u_IDQ.mjs → dist-BdePIXOu.mjs} +2 -2
  82. package/dist/{dist-BW8u_IDQ.mjs.map → dist-BdePIXOu.mjs.map} +1 -1
  83. package/dist/{entity-kinds-ChX-owgJ-BgpQHnfy.mjs → entity-kinds-ChX-owgJ-DqGkW6Dq.mjs} +3 -3
  84. package/dist/{entity-kinds-ChX-owgJ-BgpQHnfy.mjs.map → entity-kinds-ChX-owgJ-DqGkW6Dq.mjs.map} +1 -1
  85. package/dist/{entity-kinds-BG4YTvrr.d.mts → entity-kinds-DRPMASi3.d.mts} +5 -5
  86. package/dist/{entity-kinds-BG4YTvrr.d.mts.map → entity-kinds-DRPMASi3.d.mts.map} +1 -1
  87. package/dist/{expression-DLgBXKdO.d.mts → expression-n9sdM2RA.d.mts} +7 -7
  88. package/dist/{expression-DLgBXKdO.d.mts.map → expression-n9sdM2RA.d.mts.map} +1 -1
  89. package/dist/{factories-16A63DkK.mjs → factories-BnzIZxE1.mjs} +3 -3
  90. package/dist/{factories-16A63DkK.mjs.map → factories-BnzIZxE1.mjs.map} +1 -1
  91. package/dist/{factories-CLPZYUUw.d.mts → factories-Di9PoiQh.d.mts} +4 -4
  92. package/dist/{factories-CLPZYUUw.d.mts.map → factories-Di9PoiQh.d.mts.map} +1 -1
  93. package/dist/family.d.mts +13 -13
  94. package/dist/family.mjs +6 -6
  95. package/dist/family__control-adapter.d.mts +2 -2
  96. package/dist/family__control.d.mts +4 -4
  97. package/dist/family__control.mjs +3 -3
  98. package/dist/family__diff.d.mts +2 -2
  99. package/dist/family__diff.mjs +1 -1
  100. package/dist/family__ir.d.mts +1 -1
  101. package/dist/family__ir.mjs +1 -1
  102. package/dist/family__migration.d.mts +1 -1
  103. package/dist/family__pack.d.mts +1 -1
  104. package/dist/family__pack.mjs +2 -2
  105. package/dist/family__psl-build.mjs +1 -1
  106. package/dist/family__psl-infer.d.mts +1 -1
  107. package/dist/family__psl-infer.mjs +1 -1
  108. package/dist/family__runtime.d.mts +2 -2
  109. package/dist/{foreign-key-materialization-CkvOzJWy.d.mts → foreign-key-materialization-U4M9cqKd.d.mts} +2 -2
  110. package/dist/{foreign-key-materialization-CkvOzJWy.d.mts.map → foreign-key-materialization-U4M9cqKd.d.mts.map} +1 -1
  111. package/dist/{foreign-key-materialization-DiOhEeAz.mjs → foreign-key-materialization-uN1uuv25.mjs} +3 -3
  112. package/dist/{foreign-key-materialization-DiOhEeAz.mjs.map → foreign-key-materialization-uN1uuv25.mjs.map} +1 -1
  113. package/dist/{index-VjA5whAC.d.mts → index-BoQtw7lz.d.mts} +11 -11
  114. package/dist/{index-VjA5whAC.d.mts.map → index-BoQtw7lz.d.mts.map} +1 -1
  115. package/dist/{index-BlVbNiHO.d.mts → index-DZbfFGBA.d.mts} +3 -3
  116. package/dist/{index-BlVbNiHO.d.mts.map → index-DZbfFGBA.d.mts.map} +1 -1
  117. package/dist/{index-naming-Cj1Anq-T-C9TevpPR.mjs → index-naming-Cj1Anq-T-DgO8vEIL.mjs} +2 -2
  118. package/dist/{index-naming-Cj1Anq-T-C9TevpPR.mjs.map → index-naming-Cj1Anq-T-DgO8vEIL.mjs.map} +1 -1
  119. package/dist/{index-naming-BNIXvg5R.d.mts → index-naming-UEtT94f5.d.mts} +2 -2
  120. package/dist/{index-naming-BNIXvg5R.d.mts.map → index-naming-UEtT94f5.d.mts.map} +1 -1
  121. package/dist/{index-type-validation-DLPW4oTq.d.mts → index-type-validation-9yBRmaQK.d.mts} +3 -3
  122. package/dist/{index-type-validation-DLPW4oTq.d.mts.map → index-type-validation-9yBRmaQK.d.mts.map} +1 -1
  123. package/dist/{interpreter-C8cP92FD-Co9RsuUU.mjs → interpreter-C8cP92FD-BfjuQvb1.mjs} +5 -5
  124. package/dist/{interpreter-C8cP92FD-Co9RsuUU.mjs.map → interpreter-C8cP92FD-BfjuQvb1.mjs.map} +1 -1
  125. package/dist/{ir-DbwRAIkx.d.mts → ir-D7wRE9X4.d.mts} +3 -3
  126. package/dist/{ir-DbwRAIkx.d.mts.map → ir-D7wRE9X4.d.mts.map} +1 -1
  127. package/dist/middleware-CN4vQuOi.d.mts +1 -0
  128. package/dist/{middleware-CuGBptK0-BEYuhhG2.d.mts → middleware-CuGBptK0-xrXqWhc7.d.mts} +2 -2
  129. package/dist/{middleware-CuGBptK0-BEYuhhG2.d.mts.map → middleware-CuGBptK0-xrXqWhc7.d.mts.map} +1 -1
  130. package/dist/{migration-BqUra50L.d.mts → migration-BvPfu7Lt.d.mts} +4 -4
  131. package/dist/{migration-BqUra50L.d.mts.map → migration-BvPfu7Lt.d.mts.map} +1 -1
  132. package/dist/{naming-Cc_t1q6s-CouBOmqZ.mjs → naming-BLraiRfc-DKPaCL0a.mjs} +10 -7
  133. package/dist/naming-BLraiRfc-DKPaCL0a.mjs.map +1 -0
  134. package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-C1OcnGJg-DB1o9TS6.d.mts} +8 -6
  135. package/dist/naming-C1OcnGJg-DB1o9TS6.d.mts.map +1 -0
  136. package/dist/{ddl-types-B700dqv--DOnQueWA.mjs → opaque-sql-CwvHZSr8-Ch9goXqx.mjs} +23 -4
  137. package/dist/opaque-sql-CwvHZSr8-Ch9goXqx.mjs.map +1 -0
  138. package/dist/operations.d.mts +1 -1
  139. package/dist/orm-client.d.mts +15 -15
  140. package/dist/orm-client.mjs +1 -1
  141. package/dist/{pack-DvNv2W5h.d.mts → pack-C3mqZevM.d.mts} +2 -2
  142. package/dist/{pack-DvNv2W5h.d.mts.map → pack-C3mqZevM.d.mts.map} +1 -1
  143. package/dist/{plan-B7g2kDfQ-BVlzwDKL.d.mts → plan-B7g2kDfQ-Dth0BeTe.d.mts} +4 -4
  144. package/dist/{plan-B7g2kDfQ-BVlzwDKL.d.mts.map → plan-B7g2kDfQ-Dth0BeTe.d.mts.map} +1 -1
  145. package/dist/plan-CrKSowWJ.d.mts +2 -0
  146. package/dist/{prepared-statement-Cv54gpY_-BObeNp2I.d.mts → prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts} +16 -16
  147. package/dist/{prepared-statement-Cv54gpY_-BObeNp2I.d.mts.map → prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts.map} +1 -1
  148. package/dist/{psl-build-CqhSpaQE.mjs → psl-build-zkIJwkdq.mjs} +2 -2
  149. package/dist/{psl-build-CqhSpaQE.mjs.map → psl-build-zkIJwkdq.mjs.map} +1 -1
  150. package/dist/{psl-column-resolution-sNpXQygQ-BQr15EoR.d.mts → psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts} +2 -2
  151. package/dist/{psl-column-resolution-sNpXQygQ-BQr15EoR.d.mts.map → psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts.map} +1 -1
  152. package/dist/{psl-field-resolution-_o74AUE4-CKYNRnzL.mjs → psl-field-resolution-_o74AUE4-C-vTNklI.mjs} +3 -3
  153. package/dist/{psl-field-resolution-_o74AUE4-CKYNRnzL.mjs.map → psl-field-resolution-_o74AUE4-C-vTNklI.mjs.map} +1 -1
  154. package/dist/{psl-infer-8kKfa-Ts.mjs → psl-infer-BokOY1hK.mjs} +2 -2
  155. package/dist/{psl-infer-8kKfa-Ts.mjs.map → psl-infer-BokOY1hK.mjs.map} +1 -1
  156. package/dist/{psl-infer-DT5_Lx5r.d.mts → psl-infer-BwbmOInx.d.mts} +3 -3
  157. package/dist/{psl-infer-DT5_Lx5r.d.mts.map → psl-infer-BwbmOInx.d.mts.map} +1 -1
  158. package/dist/{query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts → query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts} +5 -5
  159. package/dist/{query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts.map → query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts.map} +1 -1
  160. package/dist/query-lane-context-DWdmmnrN.d.mts +1 -0
  161. package/dist/relational-core.d.mts +12 -12
  162. package/dist/relational-core.mjs +2 -2
  163. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  164. package/dist/relational-core__ast.d.mts +4 -4
  165. package/dist/relational-core__ast.mjs +2 -2
  166. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  167. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  168. package/dist/relational-core__contract-free.d.mts +3 -3
  169. package/dist/relational-core__contract-free.mjs +3 -3
  170. package/dist/relational-core__contract-free.mjs.map +1 -1
  171. package/dist/relational-core__expression.d.mts +1 -1
  172. package/dist/relational-core__middleware.d.mts +2 -2
  173. package/dist/relational-core__plan.d.mts +3 -3
  174. package/dist/relational-core__query-lane-context.d.mts +2 -2
  175. package/dist/relational-core__types.d.mts +2 -2
  176. package/dist/{resolve-storage-table-5G0L5k6M.d.mts → resolve-storage-table-GpIWDdpo.d.mts} +3 -3
  177. package/dist/{resolve-storage-table-5G0L5k6M.d.mts.map → resolve-storage-table-GpIWDdpo.d.mts.map} +1 -1
  178. package/dist/{runtime-CajhgB9z.d.mts → runtime-BbhrIR5H.d.mts} +2 -2
  179. package/dist/{runtime-CajhgB9z.d.mts.map → runtime-BbhrIR5H.d.mts.map} +1 -1
  180. package/dist/runtime.d.mts +4 -4
  181. package/dist/runtime.mjs +1 -1
  182. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  183. package/dist/{schema-differ-DpG_gnur-CYpc6zuh.d.mts → schema-differ-DpG_gnur-CUh9eZM-.d.mts} +5 -5
  184. package/dist/{schema-differ-DpG_gnur-CYpc6zuh.d.mts.map → schema-differ-DpG_gnur-CUh9eZM-.d.mts.map} +1 -1
  185. package/dist/schema-ir.d.mts +1 -1
  186. package/dist/schema-ir.mjs +1 -1
  187. package/dist/schema-ir__naming.d.mts +1 -1
  188. package/dist/schema-ir__naming.mjs +1 -1
  189. package/dist/schema-ir__types.d.mts +2 -2
  190. package/dist/schema-ir__types.mjs +1 -1
  191. package/dist/{schema-verify-DI0aJQ9d-TpdeERRD.mjs → schema-verify-DI0aJQ9d-BrQOlutU.mjs} +2 -2
  192. package/dist/{schema-verify-DI0aJQ9d-TpdeERRD.mjs.map → schema-verify-DI0aJQ9d-BrQOlutU.mjs.map} +1 -1
  193. package/dist/{serialized-index-B5X7s-oX-TKQhXsZz.mjs → serialized-index-B5X7s-oX-CVs8-5Rw.mjs} +3 -3
  194. package/dist/{serialized-index-B5X7s-oX-TKQhXsZz.mjs.map → serialized-index-B5X7s-oX-CVs8-5Rw.mjs.map} +1 -1
  195. package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-D64Figsu.d.mts} +3 -3
  196. package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map → serialized-index-CrgG8ct1-D64Figsu.d.mts.map} +1 -1
  197. package/dist/{sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs → sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs} +4 -4
  198. package/dist/{sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs.map → sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs.map} +1 -1
  199. package/dist/{sql-execution-plan-Db0j752I-B3yGocR6.d.mts → sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts} +2 -2
  200. package/dist/{sql-execution-plan-Db0j752I-B3yGocR6.d.mts.map → sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts.map} +1 -1
  201. package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-DPkZtr7t.d.mts} +2 -2
  202. package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts.map → sql-index-ByAAE7K8-DPkZtr7t.d.mts.map} +1 -1
  203. package/dist/{sql-storage-jJySr7bL-1Eh2i2r1.d.mts → sql-storage-jJySr7bL-C_xAiyzH.d.mts} +2 -2
  204. package/dist/{sql-storage-jJySr7bL-1Eh2i2r1.d.mts.map → sql-storage-jJySr7bL-C_xAiyzH.d.mts.map} +1 -1
  205. package/dist/{storage-table-ADhJ4Imk-0FbJXvSZ.mjs → storage-table-ADhJ4Imk-CwcQVFXC.mjs} +2 -2
  206. package/dist/{storage-table-ADhJ4Imk-0FbJXvSZ.mjs.map → storage-table-ADhJ4Imk-CwcQVFXC.mjs.map} +1 -1
  207. package/dist/{storage-table-DLFvP77v-BfO2iOT4.d.mts → storage-table-DLFvP77v-DLfqYsHX.d.mts} +4 -4
  208. package/dist/{storage-table-DLFvP77v-BfO2iOT4.d.mts.map → storage-table-DLFvP77v-DLfqYsHX.d.mts.map} +1 -1
  209. package/dist/{types-E46h1SEX.d.mts → types-B11MGgKr.d.mts} +7 -7
  210. package/dist/{types-E46h1SEX.d.mts.map → types-B11MGgKr.d.mts.map} +1 -1
  211. package/dist/{types-BGHABElw-CZyfbuWe.d.mts → types-BGHABElw-C5dqoVCg.d.mts} +10 -10
  212. package/dist/{types-BGHABElw-CZyfbuWe.d.mts.map → types-BGHABElw-C5dqoVCg.d.mts.map} +1 -1
  213. package/dist/{types-BHKZ4M-a-CPFh-lCl.d.mts → types-BHKZ4M-a-CvL8nko3.d.mts} +9 -9
  214. package/dist/{types-BHKZ4M-a-CPFh-lCl.d.mts.map → types-BHKZ4M-a-CvL8nko3.d.mts.map} +1 -1
  215. package/dist/{types-Bl6ohp1g-ROH3Mwm9.d.mts → types-Bl6ohp1g-CL4_GDuc.d.mts} +6 -6
  216. package/dist/{types-Bl6ohp1g-ROH3Mwm9.d.mts.map → types-Bl6ohp1g-CL4_GDuc.d.mts.map} +1 -1
  217. package/dist/{types-DinsvYdY-Dv_n3Tac.d.mts → types-BzpC_V7p-DyBYmK1f.d.mts} +3 -3
  218. package/dist/{types-DinsvYdY-Dv_n3Tac.d.mts.map → types-BzpC_V7p-DyBYmK1f.d.mts.map} +1 -1
  219. package/dist/types-CQBRYgDW.d.mts +1 -0
  220. package/dist/{types-B9rf_EdI-CEYrMMeO.mjs → types-DAoMCSPl-D2ajBTpK.mjs} +3 -3
  221. package/dist/{types-B9rf_EdI-CEYrMMeO.mjs.map → types-DAoMCSPl-D2ajBTpK.mjs.map} +1 -1
  222. package/dist/types-DdTdsdMn.d.mts +1 -0
  223. package/dist/{types-Yui2yFf6-Ceyf2gJ2.d.mts → types-Yui2yFf6-DYiGm9ET.d.mts} +2 -2
  224. package/dist/{types-Yui2yFf6-Ceyf2gJ2.d.mts.map → types-Yui2yFf6-DYiGm9ET.d.mts.map} +1 -1
  225. package/dist/{types-jFnALKoT.mjs → types-Z-l6gAVD.mjs} +2 -2
  226. package/dist/{types-jFnALKoT.mjs.map → types-Z-l6gAVD.mjs.map} +1 -1
  227. package/dist/{validators-DvzOZLel.mjs → validators-Cx6UXIBf.mjs} +3 -3
  228. package/dist/{validators-DvzOZLel.mjs.map → validators-Cx6UXIBf.mjs.map} +1 -1
  229. package/dist/{validators-CQ_fniE7.d.mts → validators-D1wQns12.d.mts} +3 -3
  230. package/dist/{validators-CQ_fniE7.d.mts.map → validators-D1wQns12.d.mts.map} +1 -1
  231. package/package.json +18 -18
  232. package/dist/control-adapter-D2k9sW7u.d.mts +0 -1
  233. package/dist/ddl-types-B23QEzDx-DnMvLEgB.d.mts.map +0 -1
  234. package/dist/ddl-types-B700dqv--DOnQueWA.mjs.map +0 -1
  235. package/dist/middleware-BwwcaXlc.d.mts +0 -1
  236. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
  237. package/dist/naming-Cc_t1q6s-CouBOmqZ.mjs.map +0 -1
  238. package/dist/plan-hQv6wCbk.d.mts +0 -2
  239. package/dist/query-lane-context-DbJO1bmQ.d.mts +0 -1
  240. package/dist/types-BBT7jidC.d.mts +0 -1
  241. package/dist/types-CHcsPFTv.d.mts +0 -1
@@ -1,5 +1,5 @@
1
- import { c as SqlStorage, s as SqlNamespaceInput, u as SqlStorageTypeEntry } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
- import "./types-E46h1SEX.mjs";
1
+ import { c as SqlStorage, s as SqlNamespaceInput, u as SqlStorageTypeEntry } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
2
+ import "./types-B11MGgKr.mjs";
3
3
  import { AnyEntityKindDescriptor, Namespace } from "@prisma/orm-framework/components/ir";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { ContractSerializer, SchemaDiffIssue, SchemaVerifier, SchemaVerifyOptions, SchemaVerifyResult } from "@prisma/orm-framework/components/control";
@@ -124,4 +124,4 @@ declare abstract class SqlSchemaVerifierBase<TContract, TSchema> implements Sche
124
124
  }
125
125
  //#endregion
126
126
  export { SqlSchemaVerifierBase as i, SqlContractSerializerBase as n, SqlEntityHydrationFactory as r, SqlContractSerializer as t };
127
- //# sourceMappingURL=ir-DbwRAIkx.d.mts.map
127
+ //# sourceMappingURL=ir-D7wRE9X4.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ir-DbwRAIkx.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/ir.d.mts"],"mappings":";;;;;;;;KAMK,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;uBAyBX,0BAA0B,k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,0DAA0D;aAC1D,kDAAkD;;YAEnD,0BAA0B,gBAAgB,SAAS;YACnD,kBAAkB,WAAW,SAAS,cAAc,SAAS;YAC7D,uBAAuB,YAAY,SAAS,eAAe,4BAA4B,SAAS,eAAe;YAC/G,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;YAClF,wBAAwB,OAAO,sBAAsB;YACrD,wBAAwB,UAAU,SAAS,cAAc;;;;;;;;;;;YAWzD,0BAA0B,SAAS,SAAS,eAAe,SAAS,6BAA6B,eAAe,eAAe;UACjI;YACE,oBAAoB,iBAAiB;UACvC;;;;;;;;;;;;;;;;;;cAkBI,8BAA8B,0BAA0B,SAAS;EAC7E;;;;;;;;;;;;;;;;;;;;;;;;uBAwBqB,sBAAsB,WAAW,oBAAoB,eAAe,WAAW;EACpG,aAAa,SAAS,oBAAoB,WAAW,WAAW;;;;;;;qBAO7C,sBAAsB,SAAS,oBAAoB,WAAW,oBAAoB;;;;;;qBAMlF,uBAAuB,SAAS,oBAAoB,WAAW,oBAAoB"}
@@ -0,0 +1 @@
1
+ import "./middleware-CuGBptK0-xrXqWhc7.mjs";
@@ -1,4 +1,4 @@
1
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-B3yGocR6.mjs";
1
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-dJ-JGxbD.mjs";
2
2
  import { ParamRefMutator } from "@prisma/orm-framework/components/runtime";
3
3
  //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-CuGBptK0.d.mts
4
4
  //#region src/middleware/param-ref-mutator.d.ts
@@ -116,4 +116,4 @@ interface SqlParamRefMutatorInternal<TCodecMap extends Record<string, unknown> =
116
116
  declare function createSqlParamRefMutator<TCodecMap extends Record<string, unknown> = Record<string, unknown>>(plan: SqlExecutionPlan): SqlParamRefMutatorInternal<TCodecMap>;
117
117
  //#endregion
118
118
  export { SqlParamRefMutatorInternal as a, SqlParamRefMutator as i, ParamRefEntryUnion as n, createSqlParamRefMutator as o, ParamRefHandle as r, ParamRefEntry as t };
119
- //# sourceMappingURL=middleware-CuGBptK0-BEYuhhG2.d.mts.map
119
+ //# sourceMappingURL=middleware-CuGBptK0-xrXqWhc7.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware-CuGBptK0-BEYuhhG2.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-CuGBptK0.d.mts"],"mappings":";;;;;;;;;;;;;;cAac;;;;;;;;;;UAUJ,eAAe;YACb,sBAAsB;;;;;;;UAOxB,cAAc;WACb,KAAK,eAAe;WACpB;WACA,SAAS;;;;;;;;;;KAUf,mBAAmB,kBAAkB,8BAA8B,WAAW,qBAAqB,cAAc,YAAY,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;UAyB9I,mBAAmB,kBAAkB,0BAA0B,iCAAiC;;EAExG,WAAW,iBAAiB,mBAAmB;;;;;;;EAO/C,aAAa,uBAAuB,oBAAoB,KAAK,eAAe,WAAW,UAAU,UAAU;EAC3G,aAAa,KAAK,2BAA2B;;EAE7C,cAAc,SAAS;aACZ,KAAK,sBAAsB;aAC3B;;;;;;;;;;;;;UAaH,2BAA2B,kBAAkB,0BAA0B,iCAAiC,mBAAmB;EACnI;;;;;;;;;;;;;;;;;iBAiBe,yBAAyB,kBAAkB,0BAA0B,yBAAyB,MAAM,mBAAmB,2BAA2B"}
1
+ {"version":3,"file":"middleware-CuGBptK0-xrXqWhc7.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-CuGBptK0.d.mts"],"mappings":";;;;;;;;;;;;;;cAac;;;;;;;;;;UAUJ,eAAe;YACb,sBAAsB;;;;;;;UAOxB,cAAc;WACb,KAAK,eAAe;WACpB;WACA,SAAS;;;;;;;;;;KAUf,mBAAmB,kBAAkB,8BAA8B,WAAW,qBAAqB,cAAc,YAAY,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;UAyB9I,mBAAmB,kBAAkB,0BAA0B,iCAAiC;;EAExG,WAAW,iBAAiB,mBAAmB;;;;;;;EAO/C,aAAa,uBAAuB,oBAAoB,KAAK,eAAe,WAAW,UAAU,UAAU;EAC3G,aAAa,KAAK,2BAA2B;;EAE7C,cAAc,SAAS;aACZ,KAAK,sBAAsB;aAC3B;;;;;;;;;;;;;UAaH,2BAA2B,kBAAkB,0BAA0B,iCAAiC,mBAAmB;EACnI;;;;;;;;;;;;;;;;;iBAiBe,yBAAyB,kBAAkB,0BAA0B,yBAAyB,MAAM,mBAAmB,2BAA2B"}
@@ -1,6 +1,6 @@
1
- import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
- import "./types-E46h1SEX.mjs";
3
- import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-BHKZ4M-a-CPFh-lCl.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
2
+ import "./types-B11MGgKr.mjs";
3
+ import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-BHKZ4M-a-CvL8nko3.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
6
6
  //#region ../../../2-sql/9-family/dist/migration.d.mts
@@ -41,4 +41,4 @@ declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTarg
41
41
  }
42
42
  //#endregion
43
43
  export { SqlMigration as t };
44
- //# sourceMappingURL=migration-BqUra50L.d.mts.map
44
+ //# sourceMappingURL=migration-BvPfu7Lt.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-BqUra50L.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
1
+ {"version":3,"file":"migration-BvPfu7Lt.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
@@ -1,7 +1,7 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { createHash } from "node:crypto";
3
3
  import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
4
- //#region ../../../2-sql/1-core/schema-ir/dist/naming-Cc_t1q6s.mjs
4
+ //#region ../../../2-sql/1-core/schema-ir/dist/naming-BLraiRfc.mjs
5
5
  function defaultIndexName(tableName, columns) {
6
6
  return `${tableName}_${columns.join("_")}_idx`;
7
7
  }
@@ -97,9 +97,7 @@ function parseWireName(name) {
97
97
  };
98
98
  }
99
99
  /**
100
- * Stabilizes an authored SQL body (index expression, partial-index predicate,
101
- * RLS policy predicate) for hashing: trim, and collapse runs of internal
102
- * whitespace to a single space.
100
+ * Stabilizes an authored SQL body (index expression, partial-index predicate, RLS policy predicate) for hashing: trim, and collapse runs of internal whitespace to a single space. A body that contains `--` is collapsed line by line and keeps its line breaks.
103
101
  *
104
102
  * This is deliberately minimal. The content hash is the equivalence relation
105
103
  * for a wire-named object, and the wire name (prefix + hash) is the only
@@ -109,10 +107,15 @@ function parseWireName(name) {
109
107
  * (lowercasing, paren-stripping, cast-alias folding) risks collapsing two
110
108
  * distinct bodies onto one hash.
111
109
  *
112
- * The normalizer is a stability commitment: any change re-suffixes all wire names.
110
+ * A body that contains `--` keeps its line breaks, because a line break ends a line comment: `a --c` followed by a line break and `b` compares `b`, while `a --c b` does not. Such a body is split into lines, each line is collapsed and trimmed, blank lines are dropped, and the lines are joined with `\n`. Every body without `--` normalizes as it always has.
111
+ *
112
+ * The normalizer gives the same output on its own output, which policy hashing relies on: it normalizes twice.
113
+ *
114
+ * The normalizer is a stability commitment: a change to it re-suffixes the wire name of every body whose normalized form changes, so a change must say which bodies it affects. See ADR 234, "Normalizer stability".
113
115
  */
114
116
  function normalizeSqlBody(sql) {
115
- return sql.replace(/\s+/g, " ").trim();
117
+ if (!sql.includes("--")) return sql.replace(/\s+/g, " ").trim();
118
+ return sql.split(/\r\n|\r|\n/).map((line) => line.replace(/\s+/g, " ").trim()).filter((line) => line !== "").join("\n");
116
119
  }
117
120
  /**
118
121
  * Returns the first 8 lowercase hex characters of the SHA-256 digest over the
@@ -256,4 +259,4 @@ function truncateToWireNamePrefixBytes(prefix) {
256
259
  //#endregion
257
260
  export { computeIndexContentHash as a, formatWireName as c, namingOfLiveName as d, normalizeIndexOptionValue as f, truncateToWireNamePrefixBytes as g, parseWireName as h, computeCheckContentHash as i, nameOf as l, parseNaming as m, assertWireNamePrefixLength as n, defaultIndexName as o, normalizeSqlBody as p, composeCheckWirePrefix as r, derivedCheckPrefixes as s, WIRE_NAME_PREFIX_MAX_BYTES as t, namingOf as u };
258
261
 
259
- //# sourceMappingURL=naming-Cc_t1q6s-CouBOmqZ.mjs.map
262
+ //# sourceMappingURL=naming-BLraiRfc-DKPaCL0a.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-BLraiRfc-DKPaCL0a.mjs","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/naming-BLraiRfc.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { createHash } from \"node:crypto\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\n//#region src/naming.ts\nfunction defaultIndexName(tableName, columns) {\n\treturn `${tableName}_${columns.join(\"_\")}_idx`;\n}\n/** The flat name the union describes. Inverse of {@link namingOf}. */\nfunction nameOf(naming) {\n\treturn naming.kind === \"wire\" ? formatWireName(naming.prefix, naming.hash) : naming.name;\n}\n/**\n* The naming a name-identified node was built with, read back off the flat\n* pair it stores. Inverse of {@link nameOf}, and total for that\n* reason: the constructor derived `name` from the union, so the two agree.\n* Flat data arriving from outside the process goes through\n* {@link parseNaming} instead.\n*/\nfunction namingOf(name, prefix) {\n\tif (prefix === void 0) return {\n\t\tkind: \"exact\",\n\t\tname\n\t};\n\treturn {\n\t\tkind: \"wire\",\n\t\tprefix,\n\t\thash: name.slice(prefix.length + 1)\n\t};\n}\n/**\n* Reads naming out of flat stored data — deserialized contract JSON and the\n* literals a user may hand-edit, the one place a name and a prefix can still\n* disagree. Throws when a declared prefix does not parse back out of the name.\n*/\nfunction parseNaming(name, prefix) {\n\tif (prefix === void 0) return {\n\t\tkind: \"exact\",\n\t\tname\n\t};\n\tconst parsed = parseWireName(name);\n\tif (parsed === void 0 || parsed.prefix !== prefix) throw new ContractValidationError(`\"${name}\": prefix \"${prefix}\" does not match the wire name (expected \"${formatWireName(prefix, \"<8hex>\")}\").`, \"storage\");\n\treturn {\n\t\tkind: \"wire\",\n\t\tprefix: parsed.prefix,\n\t\thash: parsed.hash\n\t};\n}\n/**\n* The naming an object read out of a live catalog has: a wire-shaped name\n* gets the wire arm so the rename pass can pair it by prefix, and every\n* other name is exact.\n*\n* The wire answer is a claim about the name's SHAPE only — the hash is\n* deliberately not recomputed from the object's content here. Nothing\n* downstream reads it as more than that: the differ always asks the\n* contract-derived side to choose the comparison, so a shape-only wire\n* claim on the introspected side never suppresses a body comparison, and\n* `contract infer` recomputes the hash independently before it will emit an\n* index as wire-named.\n*/\nfunction namingOfLiveName(name) {\n\tconst wire = parseWireName(name);\n\treturn wire === void 0 ? {\n\t\tkind: \"exact\",\n\t\tname\n\t} : {\n\t\tkind: \"wire\",\n\t\tprefix: wire.prefix,\n\t\thash: wire.hash\n\t};\n}\nconst WIRE_NAME_PATTERN = /^(.+)_([0-9a-f]{8})$/;\n/**\n* Assembles a wire name from its user-supplied prefix and its 8-hex\n* content-hash suffix. This module owns the `<prefix>_<hash>` format on both\n* sides — construction here and parsing in {@link parseWireName} — so the two\n* never drift.\n*/\nfunction formatWireName(prefix, hash) {\n\treturn `${prefix}_${hash}`;\n}\n/**\n* Splits a wire name (`<prefix>_<8hex>`) into its prefix and content-hash\n* suffix. Returns `undefined` when the name does not follow the wire-name\n* shape (e.g. an object created outside the toolchain) — callers treat such\n* names as all-prefix. Consumed by introspection (prefix extraction) and by\n* rename pairing (same hash, different prefix).\n*/\nfunction parseWireName(name) {\n\tconst match = WIRE_NAME_PATTERN.exec(name);\n\tconst prefix = match?.[1];\n\tconst hash = match?.[2];\n\tif (prefix === void 0 || hash === void 0) return void 0;\n\treturn {\n\t\tprefix,\n\t\thash\n\t};\n}\n/**\n* Stabilizes an authored SQL body (index expression, partial-index predicate, RLS policy predicate) for hashing: trim, and collapse runs of internal whitespace to a single space. A body that contains `--` is collapsed line by line and keeps its line breaks.\n*\n* This is deliberately minimal. The content hash is the equivalence relation\n* for a wire-named object, and the wire name (prefix + hash) is the only\n* thing ever compared — the hash is never recomputed from an introspected\n* body, so there is no need to match the database's reprinted form. Minimal\n* normalization also protects the no-collision property: aggressive rewriting\n* (lowercasing, paren-stripping, cast-alias folding) risks collapsing two\n* distinct bodies onto one hash.\n*\n* A body that contains `--` keeps its line breaks, because a line break ends a line comment: `a --c` followed by a line break and `b` compares `b`, while `a --c b` does not. Such a body is split into lines, each line is collapsed and trimmed, blank lines are dropped, and the lines are joined with `\\n`. Every body without `--` normalizes as it always has.\n*\n* The normalizer gives the same output on its own output, which policy hashing relies on: it normalizes twice.\n*\n* The normalizer is a stability commitment: a change to it re-suffixes the wire name of every body whose normalized form changes, so a change must say which bodies it affects. See ADR 234, \"Normalizer stability\".\n*/\nfunction normalizeSqlBody(sql) {\n\tif (!sql.includes(\"--\")) return sql.replace(/\\s+/g, \" \").trim();\n\treturn sql.split(/\\r\\n|\\r|\\n/).map((line) => line.replace(/\\s+/g, \" \").trim()).filter((line) => line !== \"\").join(\"\\n\");\n}\n/**\n* Returns the first 8 lowercase hex characters of the SHA-256 digest over the\n* canonical content tuple for a check constraint:\n*\n* [normalizeSqlBody(expression)]\n*\n* The predicate is the whole of a check's content — the constraint name,\n* schema, and table are orthogonal to its equivalence. The one-element tuple\n* keeps the encoding in the same shape as the index and RLS tuples so a member\n* can be added later without re-reading which encoding a kind uses.\n*\n* The tuple order and encoding are a stability commitment: any change\n* re-suffixes every wire name.\n*/\nfunction computeCheckContentHash(expression) {\n\tconst tuple = JSON.stringify([normalizeSqlBody(expression)]);\n\treturn createHash(\"sha256\").update(tuple).digest(\"hex\").slice(0, 8);\n}\n/** The trailing segment a check's wire-name prefix carries, per kind. */\nconst CHECK_KIND_SUFFIX = {\n\tmembership: \"check\",\n\telementNotNull: \"elem_not_null\"\n};\n/**\n* Composes the wire-name prefix of a derived CHECK constraint:\n* `${table}_${column}_${kindSuffix}`, capped at the wire-name byte budget.\n* Shared by contract authoring (naming emitted checks) and `contract infer`\n* (recomputing the name a derived check would carry), so truncated and\n* multibyte prefixes match by construction.\n*/\nfunction composeCheckWirePrefix(tableName, columnName, kind) {\n\treturn truncateToWireNamePrefixBytes(`${tableName}_${columnName}_${CHECK_KIND_SUFFIX[kind]}`);\n}\n/**\n* Every {@link CheckKind} value, read off {@link CHECK_KIND_SUFFIX}'s own keys\n* so the enumeration can never drift out of step with it.\n*/\nconst CHECK_KINDS = Object.keys(CHECK_KIND_SUFFIX).filter((kind) => kind in CHECK_KIND_SUFFIX);\n/**\n* The wire-name prefixes derivation could produce for `tableName`: every\n* {@link composeCheckWirePrefix} result crossing each of `columnNames` with\n* each {@link CheckKind}. A check is derived iff its prefix is a member of\n* this set.\n*\n* This is the prefix SHAPE only, not the full name-with-hash: it does not\n* know which kind a specific column's type would actually derive (that needs\n* the target's `renderCheckExpressions` hook, which callers of this function\n* do not have in hand), so every column is conservatively treated as capable\n* of producing every kind.\n*/\nfunction derivedCheckPrefixes(tableName, columnNames) {\n\tconst prefixes = /* @__PURE__ */ new Set();\n\tfor (const columnName of columnNames) for (const kind of CHECK_KINDS) prefixes.add(composeCheckWirePrefix(tableName, columnName, kind));\n\treturn prefixes;\n}\n/**\n* Returns the first 8 lowercase hex characters of the SHA-256 digest over the\n* canonical content tuple for an index:\n*\n* [normalizeSqlBody(expression), normalizeSqlBody(where), columns, unique, type, sortedOptions]\n*\n* Columns hash in authored order — column order is semantic in an index.\n* Option values are `String()`-coerced (matching the loose option equality\n* used for diffing) so a hash computed from typed contract values agrees with\n* one recomputed from introspected reloptions strings. The prefix, schema,\n* and table are excluded (they are orthogonal to index equivalence).\n*\n* The tuple order and encoding are a stability commitment with the same\n* status as the RLS tuple: any change re-suffixes every wire name.\n*/\n/**\n* Canonicalizes one index option VALUE to the `on`/`off` boolean spelling:\n* JS booleans and the common catalog spellings (`pg_class.reloptions`\n* stores whatever spelling the DDL used, so a live index may carry\n* `'true'`/`'false'` or `'on'`/`'off'`) all map to one form; everything\n* else via `String()` (fully specified for numbers, so no platform\n* variance). Shared by the wire-name hash tuple, the node's option\n* equality, and the DDL renderer, so an authored `{ fastupdate: true }`\n* agrees with a live index created under any boolean spelling.\n*/\nfunction normalizeIndexOptionValue(value) {\n\tif (value === true || value === \"true\" || value === \"on\") return \"on\";\n\tif (value === false || value === \"false\" || value === \"off\") return \"off\";\n\treturn String(value);\n}\nfunction computeIndexContentHash(parts) {\n\tconst sortedOptions = Object.entries(parts.options ?? {}).map(([key, value]) => [key, normalizeIndexOptionValue(value)]).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);\n\tconst tuple = JSON.stringify([\n\t\tnormalizeSqlBody(parts.expression ?? \"\"),\n\t\tnormalizeSqlBody(parts.where ?? \"\"),\n\t\tparts.columns ?? [],\n\t\tparts.unique,\n\t\tparts.type ?? \"\",\n\t\tsortedOptions\n\t]);\n\treturn createHash(\"sha256\").update(tuple).digest(\"hex\").slice(0, 8);\n}\n/**\n* Postgres truncates identifiers at `NAMEDATALEN - 1` = 63 **bytes**, not\n* characters, and the wire name appends a 9-byte `_<8hex>` suffix — so a\n* prefix is bounded at 54 bytes. A prefix of non-ASCII characters can sit well\n* under 54 characters and still overrun: the database would silently truncate\n* the name, leaving the declared object permanently unmatchable against the\n* live one.\n*/\nconst WIRE_NAME_PREFIX_MAX_BYTES = 54;\nconst utf8 = new TextEncoder();\n/** UTF-8 byte length — the unit Postgres measures identifiers in. */\nfunction byteLength(value) {\n\treturn utf8.encode(value).length;\n}\n/**\n* Rejects a wire-name prefix over {@link WIRE_NAME_PREFIX_MAX_BYTES}.\n* `subject` opens the error message (e.g. `defineContract: policy prefix`).\n*/\nfunction assertWireNamePrefixLength(prefix, subject) {\n\tif (byteLength(prefix) > 54) throw structuredError(\"CONTRACT.WIRE_NAME_PREFIX_TOO_LONG\", `${subject} \"${prefix}\" exceeds the 54-byte maximum (Postgres identifiers cap at 63 bytes and the wire name appends a 9-byte hash suffix).`, { meta: {\n\t\tprefix,\n\t\tmaxBytes: 54\n\t} });\n}\n/**\n* Shortens a DERIVED wire-name prefix to {@link WIRE_NAME_PREFIX_MAX_BYTES},\n* cutting on a code-point boundary so a multibyte character is never split.\n* Only derived prefixes truncate — an authored one throws\n* ({@link assertWireNamePrefixLength}), because its author can shorten it.\n*/\nfunction truncateToWireNamePrefixBytes(prefix) {\n\tif (byteLength(prefix) <= 54) return prefix;\n\tlet out = \"\";\n\tlet bytes = 0;\n\tfor (const character of prefix) {\n\t\tconst size = byteLength(character);\n\t\tif (bytes + size > 54) break;\n\t\tout += character;\n\t\tbytes += size;\n\t}\n\treturn out;\n}\n//#endregion\nexport { computeIndexContentHash as a, formatWireName as c, namingOfLiveName as d, normalizeIndexOptionValue as f, truncateToWireNamePrefixBytes as g, parseWireName as h, computeCheckContentHash as i, nameOf as l, parseNaming as m, assertWireNamePrefixLength as n, defaultIndexName as o, normalizeSqlBody as p, composeCheckWirePrefix as r, derivedCheckPrefixes as s, WIRE_NAME_PREFIX_MAX_BYTES as t, namingOf as u };\n\n//# sourceMappingURL=naming-BLraiRfc.mjs.map"],"mappings":";;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AAM,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,0BAA0B,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC;CACtK,MAAM,QAAQ,KAAK,UAAU;EAC5B,iBAAiB,MAAM,cAAc,EAAE;EACvC,iBAAiB,MAAM,SAAS,EAAE;EAClC,MAAM,WAAW,CAAC;EAClB,MAAM;EACN,MAAM,QAAQ;EACd;CACD,CAAC;CACD,OAAO,WAAW,QAAQ,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC;AACnE;;;;;;;;;AASA,MAAM,6BAA6B;AACnC,MAAM,OAAO,IAAI,YAAY;;AAE7B,SAAS,WAAW,OAAO;CAC1B,OAAO,KAAK,OAAO,KAAK,CAAC,CAAC;AAC3B;;;;;AAKA,SAAS,2BAA2B,QAAQ,SAAS;CACpD,IAAI,WAAW,MAAM,IAAI,IAAI,MAAM,gBAAgB,sCAAsC,GAAG,QAAQ,IAAI,OAAO,uHAAuH,EAAE,MAAM;EAC7O;EACA,UAAU;CACX,EAAE,CAAC;AACJ;;;;;;;AAOA,SAAS,8BAA8B,QAAQ;CAC9C,IAAI,WAAW,MAAM,KAAK,IAAI,OAAO;CACrC,IAAI,MAAM;CACV,IAAI,QAAQ;CACZ,KAAK,MAAM,aAAa,QAAQ;EAC/B,MAAM,OAAO,WAAW,SAAS;EACjC,IAAI,QAAQ,OAAO,IAAI;EACvB,OAAO;EACP,SAAS;CACV;CACA,OAAO;AACR"}
@@ -1,4 +1,4 @@
1
- //#region ../../../2-sql/1-core/schema-ir/dist/naming-CV9j2pXl.d.mts
1
+ //#region ../../../2-sql/1-core/schema-ir/dist/naming-C1OcnGJg.d.mts
2
2
  //#region src/naming.d.ts
3
3
  declare function defaultIndexName(tableName: string, columns: readonly string[]): string;
4
4
  interface WireName {
@@ -68,9 +68,7 @@ declare function formatWireName(prefix: string, hash: string): string;
68
68
  */
69
69
  declare function parseWireName(name: string): WireName | undefined;
70
70
  /**
71
- * Stabilizes an authored SQL body (index expression, partial-index predicate,
72
- * RLS policy predicate) for hashing: trim, and collapse runs of internal
73
- * whitespace to a single space.
71
+ * Stabilizes an authored SQL body (index expression, partial-index predicate, RLS policy predicate) for hashing: trim, and collapse runs of internal whitespace to a single space. A body that contains `--` is collapsed line by line and keeps its line breaks.
74
72
  *
75
73
  * This is deliberately minimal. The content hash is the equivalence relation
76
74
  * for a wire-named object, and the wire name (prefix + hash) is the only
@@ -80,7 +78,11 @@ declare function parseWireName(name: string): WireName | undefined;
80
78
  * (lowercasing, paren-stripping, cast-alias folding) risks collapsing two
81
79
  * distinct bodies onto one hash.
82
80
  *
83
- * The normalizer is a stability commitment: any change re-suffixes all wire names.
81
+ * A body that contains `--` keeps its line breaks, because a line break ends a line comment: `a --c` followed by a line break and `b` compares `b`, while `a --c b` does not. Such a body is split into lines, each line is collapsed and trimmed, blank lines are dropped, and the lines are joined with `\n`. Every body without `--` normalizes as it always has.
82
+ *
83
+ * The normalizer gives the same output on its own output, which policy hashing relies on: it normalizes twice.
84
+ *
85
+ * The normalizer is a stability commitment: a change to it re-suffixes the wire name of every body whose normalized form changes, so a change must say which bodies it affects. See ADR 234, "Normalizer stability".
84
86
  */
85
87
  declare function normalizeSqlBody(sql: string): string;
86
88
  /**
@@ -183,4 +185,4 @@ declare function assertWireNamePrefixLength(prefix: string, subject: string): vo
183
185
  declare function truncateToWireNamePrefixBytes(prefix: string): string;
184
186
  //#endregion
185
187
  export { normalizeSqlBody as _, WireName as a, truncateToWireNamePrefixBytes as b, computeCheckContentHash as c, derivedCheckPrefixes as d, formatWireName as f, normalizeIndexOptionValue as g, namingOfLiveName as h, WIRE_NAME_PREFIX_MAX_BYTES as i, computeIndexContentHash as l, namingOf as m, IndexContentHashParts as n, assertWireNamePrefixLength as o, nameOf as p, SqlObjectNaming as r, composeCheckWirePrefix as s, CheckKind as t, defaultIndexName as u, parseNaming as v, parseWireName as y };
186
- //# sourceMappingURL=naming-CV9j2pXl-KARaDReS.d.mts.map
188
+ //# sourceMappingURL=naming-C1OcnGJg-DB1o9TS6.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-C1OcnGJg-DB1o9TS6.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/naming-C1OcnGJg.d.mts"],"mappings":";;iBACiB,iBAAiB,mBAAmB;UAC3C;;WAEC;;WAEA;;;;;;;;;;;KAWN;WACM;WACA;;WAEA;IACP;;iBAEa,OAAO,QAAQ;;;;;;;;iBAQf,SAAS,cAAc,6BAA6B;;;;;;iBAMpD,YAAY,cAAc,6BAA6B;;;;;;;;;;;;;;iBAcvD,iBAAiB,eAAe;;;;;;;iBAOhC,eAAe,gBAAgB;;;;;;;;iBAQ/B,cAAc,eAAe;;;;;;;;;;;;;;;;;;iBAkB7B,iBAAiB;;;;;;;;;;;;;;;iBAejB,wBAAwB;;;;;;KAMpC;;;;;;;;iBAQY,uBAAuB,mBAAmB,oBAAoB,MAAM;;;;;;;;;;;;;iBAapE,qBAAqB,mBAAmB,aAAa,mBAAmB;UAC/E;WACC;WACA;WACA;WACA;WACA;WACA,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BJ,0BAA0B;iBAC1B,wBAAwB,OAAO;;;;;;;;;cASlC;;;;;iBAKG,2BAA2B,gBAAgB;;;;;;;iBAO3C,8BAA8B"}
@@ -1,6 +1,6 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { isColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
3
- //#region ../../../2-sql/4-lanes/relational-core/dist/ddl-types-B700dqv-.mjs
3
+ //#region ../../../2-sql/4-lanes/relational-core/dist/opaque-sql-CwvHZSr8.mjs
4
4
  var DdlColumnDefault = class {
5
5
  freeze() {
6
6
  Object.freeze(this);
@@ -132,7 +132,7 @@ var UniqueConstraint = class {
132
132
  * A table-level CHECK constraint carrying a raw SQL predicate expression. Used
133
133
  * for checks that are not enum value-set restrictions — e.g. the element-non-null
134
134
  * constraint on a scalar-array column (`array_position(col, NULL) IS NULL`).
135
- * The `expression` is emitted verbatim, so callers must supply safe,
135
+ * The `expression` is emitted through `renderOpaqueSql`, so callers must supply safe,
136
136
  * pre-validated SQL.
137
137
  *
138
138
  * Frozen on construction — immutable after creation.
@@ -147,7 +147,26 @@ var CheckExpressionConstraint = class {
147
147
  Object.freeze(this);
148
148
  }
149
149
  };
150
+ /**
151
+ * SQL text that Prisma does not parse, placed inside a larger statement: a CHECK or policy predicate, an index element list or predicate, a column default, or an ALTER COLUMN TYPE conversion. ADR 244 calls such text opaque.
152
+ */
153
+ var OpaqueSql = class {
154
+ text;
155
+ constructor(text) {
156
+ this.text = text;
157
+ Object.freeze(this);
158
+ }
159
+ };
160
+ function opaqueSql(text) {
161
+ return new OpaqueSql(text);
162
+ }
163
+ /**
164
+ * The text as a statement includes it. Text containing `--` ends with a line break, so a line comment on its last line cannot hide what the statement writes after it.
165
+ */
166
+ function renderOpaqueSql(sql) {
167
+ return sql.text.includes("--") ? `${sql.text}\n` : sql.text;
168
+ }
150
169
  //#endregion
151
- export { ForeignKeyConstraint as a, PrimaryKeyConstraint as c, DdlNode as i, UniqueConstraint as l, DdlColumn as n, FunctionColumnDefault as o, DdlColumnDefault as r, LiteralColumnDefault as s, CheckExpressionConstraint as t, isDdlNode as u };
170
+ export { ForeignKeyConstraint as a, OpaqueSql as c, isDdlNode as d, opaqueSql as f, DdlNode as i, PrimaryKeyConstraint as l, DdlColumn as n, FunctionColumnDefault as o, renderOpaqueSql as p, DdlColumnDefault as r, LiteralColumnDefault as s, CheckExpressionConstraint as t, UniqueConstraint as u };
152
171
 
153
- //# sourceMappingURL=ddl-types-B700dqv--DOnQueWA.mjs.map
172
+ //# sourceMappingURL=opaque-sql-CwvHZSr8-Ch9goXqx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opaque-sql-CwvHZSr8-Ch9goXqx.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/opaque-sql-CwvHZSr8.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { isColumnDefaultLiteralInputValue } from \"@internal/contract/types\";\n//#region src/ast/ddl-types.ts\nvar DdlColumnDefault = class {\n\tfreeze() {\n\t\tObject.freeze(this);\n\t}\n};\nvar LiteralColumnDefault = class extends DdlColumnDefault {\n\tkind = \"literal\";\n\tvalue;\n\tconstructor(value) {\n\t\tsuper();\n\t\tif (!isColumnDefaultLiteralInputValue(value)) throw structuredError(\"CONTRACT.DEFAULT_INVALID\", \"Invalid column default literal value\");\n\t\tthis.value = value;\n\t\tthis.freeze();\n\t}\n\taccept(visitor, ctx) {\n\t\treturn visitor.literal(this, ctx);\n\t}\n};\nvar FunctionColumnDefault = class extends DdlColumnDefault {\n\tkind = \"function\";\n\texpression;\n\tconstructor(expression) {\n\t\tsuper();\n\t\tthis.expression = expression;\n\t\tthis.freeze();\n\t}\n\taccept(visitor, ctx) {\n\t\treturn visitor.function(this, ctx);\n\t}\n};\nvar DdlColumn = class {\n\tname;\n\ttype;\n\tnotNull;\n\tprimaryKey;\n\tdefault;\n\t/** Codec identity for this column. When present, the DDL walker builds the codec with the column's type parameters and runs the literal default through both declared conversions in order — `codec.encode(codec.decodeJson(default.value), {})` — to obtain the wire value it inlines into the DDL string (`encodeLiteralDefault`), and reads each element of a list default the same way (`encodeListLiteralDefault`). A target may write a default of one of its date or time types as that type's text instead, once the codec has read it. The read-back is what makes the pair sound: a contract stores a literal default in the codec's canonical JSON, which is not always the application value `encode` takes (`pg/int8@1` stores decimal text for a `bigint`). A `Date` is the one authored value JSON has no notation for, so it arrives as itself and skips `decodeJson`. A `null` default the codec refuses is SQL NULL, `DEFAULT NULL`; a JSON codec reads it as the JSON value null. When absent, literal defaults follow RawSqlLiteral wire-scalar semantics (string / number / boolean / bigint / null / Uint8Array / Date inlined directly). */\n\tcodecRef;\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.type = options.type;\n\t\tthis.notNull = options.notNull;\n\t\tthis.primaryKey = options.primaryKey;\n\t\tthis.default = options.default;\n\t\tthis.codecRef = options.codecRef;\n\t\tObject.freeze(this);\n\t}\n};\nvar DdlNode = class {\n\t/**\n\t* Structural brand: every DDL node answers `true`. Lets {@link isDdlNode}\n\t* recognise any `DdlNode` subclass — including target-contributed kinds —\n\t* without a central kind registry that subclasses would have to register\n\t* into.\n\t*/\n\tisDdlNode() {\n\t\treturn true;\n\t}\n\tfreeze() {\n\t\tObject.freeze(this);\n\t}\n\tcollectParamRefs() {\n\t\treturn [];\n\t}\n};\nfunction isDdlNode(value) {\n\treturn typeof value === \"object\" && value !== null && \"isDdlNode\" in value && typeof value.isDdlNode === \"function\";\n}\n/**\n* A composite (or single-column) PRIMARY KEY constraint on a `CreateTable`\n* node. When `name` is set, the adapter renders `CONSTRAINT <name> PRIMARY KEY\n* (…)`; otherwise it renders an anonymous `PRIMARY KEY (…)`.\n*\n* Frozen on construction — immutable after creation.\n*/\nvar PrimaryKeyConstraint = class {\n\tkind = \"primary-key\";\n\tcolumns;\n\tname;\n\tconstructor(options) {\n\t\tthis.columns = Object.freeze([...options.columns]);\n\t\tthis.name = options.name;\n\t\tObject.freeze(this);\n\t}\n};\n/**\n* A FOREIGN KEY constraint on a `CreateTable` node. `onDelete` and `onUpdate`\n* use the same `ReferentialAction` vocabulary already used by the migration\n* planner and the contract IR — no parallel string enum.\n*\n* Frozen on construction — immutable after creation.\n*/\nvar ForeignKeyConstraint = class {\n\tkind = \"foreign-key\";\n\tcolumns;\n\trefTable;\n\trefColumns;\n\tonDelete;\n\tonUpdate;\n\tname;\n\tconstructor(options) {\n\t\tthis.columns = Object.freeze([...options.columns]);\n\t\tthis.refTable = options.refTable;\n\t\tthis.refColumns = Object.freeze([...options.refColumns]);\n\t\tthis.onDelete = options.onDelete;\n\t\tthis.onUpdate = options.onUpdate;\n\t\tthis.name = options.name;\n\t\tObject.freeze(this);\n\t}\n};\n/**\n* A table-level UNIQUE constraint on a `CreateTable` node. When `name` is\n* set, the adapter renders `CONSTRAINT <name> UNIQUE (…)`; otherwise it\n* renders an anonymous `UNIQUE (…)`.\n*\n* Frozen on construction — immutable after creation.\n*/\nvar UniqueConstraint = class {\n\tkind = \"unique\";\n\tcolumns;\n\tname;\n\tconstructor(options) {\n\t\tthis.columns = Object.freeze([...options.columns]);\n\t\tthis.name = options.name;\n\t\tObject.freeze(this);\n\t}\n};\n/**\n* A table-level CHECK constraint carrying a raw SQL predicate expression. Used\n* for checks that are not enum value-set restrictions — e.g. the element-non-null\n* constraint on a scalar-array column (`array_position(col, NULL) IS NULL`).\n* The `expression` is emitted through `renderOpaqueSql`, so callers must supply safe,\n* pre-validated SQL.\n*\n* Frozen on construction — immutable after creation.\n*/\nvar CheckExpressionConstraint = class {\n\tkind = \"check-expression\";\n\tname;\n\texpression;\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.expression = options.expression;\n\t\tObject.freeze(this);\n\t}\n};\n//#endregion\n//#region src/ast/opaque-sql.ts\n/**\n* SQL text that Prisma does not parse, placed inside a larger statement: a CHECK or policy predicate, an index element list or predicate, a column default, or an ALTER COLUMN TYPE conversion. ADR 244 calls such text opaque.\n*/\nvar OpaqueSql = class {\n\ttext;\n\tconstructor(text) {\n\t\tthis.text = text;\n\t\tObject.freeze(this);\n\t}\n};\nfunction opaqueSql(text) {\n\treturn new OpaqueSql(text);\n}\n/**\n* The text as a statement includes it. Text containing `--` ends with a line break, so a line comment on its last line cannot hide what the statement writes after it.\n*/\nfunction renderOpaqueSql(sql) {\n\treturn sql.text.includes(\"--\") ? `${sql.text}\\n` : sql.text;\n}\n//#endregion\nexport { DdlColumn as a, ForeignKeyConstraint as c, PrimaryKeyConstraint as d, UniqueConstraint as f, CheckExpressionConstraint as i, FunctionColumnDefault as l, opaqueSql as n, DdlColumnDefault as o, isDdlNode as p, renderOpaqueSql as r, DdlNode as s, OpaqueSql as t, LiteralColumnDefault as u };\n\n//# sourceMappingURL=opaque-sql-CwvHZSr8.mjs.map"],"mappings":";;;AAGA,IAAI,mBAAmB,MAAM;CAC5B,SAAS;EACR,OAAO,OAAO,IAAI;CACnB;AACD;AACA,IAAI,uBAAuB,cAAc,iBAAiB;CACzD,OAAO;CACP;CACA,YAAY,OAAO;EAClB,MAAM;EACN,IAAI,CAAC,iCAAiC,KAAK,GAAG,MAAM,gBAAgB,4BAA4B,sCAAsC;EACtI,KAAK,QAAQ;EACb,KAAK,OAAO;CACb;CACA,OAAO,SAAS,KAAK;EACpB,OAAO,QAAQ,QAAQ,MAAM,GAAG;CACjC;AACD;AACA,IAAI,wBAAwB,cAAc,iBAAiB;CAC1D,OAAO;CACP;CACA,YAAY,YAAY;EACvB,MAAM;EACN,KAAK,aAAa;EAClB,KAAK,OAAO;CACb;CACA,OAAO,SAAS,KAAK;EACpB,OAAO,QAAQ,SAAS,MAAM,GAAG;CAClC;AACD;AACA,IAAI,YAAY,MAAM;CACrB;CACA;CACA;CACA;CACA;;CAEA;CACA,YAAY,SAAS;EACpB,KAAK,OAAO,QAAQ;EACpB,KAAK,OAAO,QAAQ;EACpB,KAAK,UAAU,QAAQ;EACvB,KAAK,aAAa,QAAQ;EAC1B,KAAK,UAAU,QAAQ;EACvB,KAAK,WAAW,QAAQ;EACxB,OAAO,OAAO,IAAI;CACnB;AACD;AACA,IAAI,UAAU,MAAM;;;;;;;CAOnB,YAAY;EACX,OAAO;CACR;CACA,SAAS;EACR,OAAO,OAAO,IAAI;CACnB;CACA,mBAAmB;EAClB,OAAO,CAAC;CACT;AACD;AACA,SAAS,UAAU,OAAO;CACzB,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,eAAe,SAAS,OAAO,MAAM,cAAc;AAC1G;;;;;;;;AAQA,IAAI,uBAAuB,MAAM;CAChC,OAAO;CACP;CACA;CACA,YAAY,SAAS;EACpB,KAAK,UAAU,OAAO,OAAO,CAAC,GAAG,QAAQ,OAAO,CAAC;EACjD,KAAK,OAAO,QAAQ;EACpB,OAAO,OAAO,IAAI;CACnB;AACD;;;;;;;;AAQA,IAAI,uBAAuB,MAAM;CAChC,OAAO;CACP;CACA;CACA;CACA;CACA;CACA;CACA,YAAY,SAAS;EACpB,KAAK,UAAU,OAAO,OAAO,CAAC,GAAG,QAAQ,OAAO,CAAC;EACjD,KAAK,WAAW,QAAQ;EACxB,KAAK,aAAa,OAAO,OAAO,CAAC,GAAG,QAAQ,UAAU,CAAC;EACvD,KAAK,WAAW,QAAQ;EACxB,KAAK,WAAW,QAAQ;EACxB,KAAK,OAAO,QAAQ;EACpB,OAAO,OAAO,IAAI;CACnB;AACD;;;;;;;;AAQA,IAAI,mBAAmB,MAAM;CAC5B,OAAO;CACP;CACA;CACA,YAAY,SAAS;EACpB,KAAK,UAAU,OAAO,OAAO,CAAC,GAAG,QAAQ,OAAO,CAAC;EACjD,KAAK,OAAO,QAAQ;EACpB,OAAO,OAAO,IAAI;CACnB;AACD;;;;;;;;;;AAUA,IAAI,4BAA4B,MAAM;CACrC,OAAO;CACP;CACA;CACA,YAAY,SAAS;EACpB,KAAK,OAAO,QAAQ;EACpB,KAAK,aAAa,QAAQ;EAC1B,OAAO,OAAO,IAAI;CACnB;AACD;;;;AAMA,IAAI,YAAY,MAAM;CACrB;CACA,YAAY,MAAM;EACjB,KAAK,OAAO;EACZ,OAAO,OAAO,IAAI;CACnB;AACD;AACA,SAAS,UAAU,MAAM;CACxB,OAAO,IAAI,UAAU,IAAI;AAC1B;;;;AAIA,SAAS,gBAAgB,KAAK;CAC7B,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,GAAG,IAAI,KAAK,MAAM,IAAI;AACxD"}
@@ -1,2 +1,2 @@
1
- import { a as SqlOperationRegistry, i as SqlOperationEntry, n as SqlOperationDescriptor, o as createSqlOperationRegistry, r as SqlOperationDescriptors, t as SqlLoweringSpec } from "./index-BlVbNiHO.mjs";
1
+ import { a as SqlOperationRegistry, i as SqlOperationEntry, n as SqlOperationDescriptor, o as createSqlOperationRegistry, r as SqlOperationDescriptors, t as SqlLoweringSpec } from "./index-DZbfFGBA.mjs";
2
2
  export { SqlLoweringSpec, SqlOperationDescriptor, SqlOperationDescriptors, SqlOperationEntry, SqlOperationRegistry, createSqlOperationRegistry };
@@ -1,18 +1,18 @@
1
- import { t as StorageColumn } from "./storage-table-DLFvP77v-BfO2iOT4.mjs";
2
- import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
3
- import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQueryOperationTypes, u as ExtractCodecTypes } from "./types-Bl6ohp1g-ROH3Mwm9.mjs";
4
- import "./types-E46h1SEX.mjs";
5
- import { E as CodecRef$1, Rt as WhereArg, _ as BinaryExpr, _t as OrderByItem, a as AndExpr, c as AnyExpression, gt as OrExpr, mt as NullCheckExpr, r as AggregateFn, st as LimitOffsetValue, vt as OrderByNulls } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
6
- import "./ast-S4eEzFmO.mjs";
7
- import { n as SqlQueryPlan, t as Preparable } from "./plan-B7g2kDfQ-BVlzwDKL.mjs";
8
- import { S as TraitExpression, i as CodecTypesBase, o as Expression } from "./expression-DLgBXKdO.mjs";
9
- import "./plan-hQv6wCbk.mjs";
10
- import { n as ExecutionContext } from "./query-lane-context-BSmWfohZ-yCQ9qzQZ.mjs";
11
- import "./query-lane-context-DbJO1bmQ.mjs";
12
- import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-BGHABElw-CZyfbuWe.mjs";
13
- import "./types-CHcsPFTv.mjs";
14
- import { i as Declaration, l as ParamsFromDeclaration, m as PreparedStatement, p as PreparedFor, t as BindSiteParams, w as RuntimeQueryable$1, y as Runtime } from "./prepared-statement-Cv54gpY_-BObeNp2I.mjs";
15
- import "./index-VjA5whAC.mjs";
1
+ import { t as StorageColumn } from "./storage-table-DLFvP77v-DLfqYsHX.mjs";
2
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
3
+ import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQueryOperationTypes, u as ExtractCodecTypes } from "./types-Bl6ohp1g-CL4_GDuc.mjs";
4
+ import "./types-B11MGgKr.mjs";
5
+ import { E as CodecRef$1, Rt as WhereArg, _ as BinaryExpr, _t as OrderByItem, a as AndExpr, c as AnyExpression, gt as OrExpr, mt as NullCheckExpr, r as AggregateFn, st as LimitOffsetValue, vt as OrderByNulls } from "./types-Yui2yFf6-DYiGm9ET.mjs";
6
+ import "./ast-dPjHeaNs.mjs";
7
+ import { n as SqlQueryPlan, t as Preparable } from "./plan-B7g2kDfQ-Dth0BeTe.mjs";
8
+ import { S as TraitExpression, i as CodecTypesBase, o as Expression } from "./expression-n9sdM2RA.mjs";
9
+ import "./plan-CrKSowWJ.mjs";
10
+ import { n as ExecutionContext } from "./query-lane-context-BSmWfohZ-Jn0AbOQt.mjs";
11
+ import "./query-lane-context-DWdmmnrN.mjs";
12
+ import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-BGHABElw-C5dqoVCg.mjs";
13
+ import "./types-CQBRYgDW.mjs";
14
+ import { i as Declaration, l as ParamsFromDeclaration, m as PreparedStatement, p as PreparedFor, t as BindSiteParams, w as RuntimeQueryable$1, y as Runtime } from "./prepared-statement-Cv54gpY_-DbHPSN5Q.mjs";
15
+ import "./index-BoQtw7lz.mjs";
16
16
  import { Contract } from "@prisma/orm-framework/contract/types";
17
17
  import { AnnotationValue, AsyncIterableResult, MetaBuilder, OperationKind, ResultType, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
18
18
  import { SimplifyDeep } from "@prisma/orm-framework/utils/simplify-deep";
@@ -4,7 +4,7 @@ import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, G as isWhereExpr, I a
4
4
  import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
5
5
  import { n as JsonDocumentProjection, r as NativeJsonValueProjection, t as CodecJsonValueProjection } from "./ast-5hifzBHC.mjs";
6
6
  import { i as isExpression, o as toExpr } from "./expression-vAEOvq7J.mjs";
7
- import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-BSoMKDUv.mjs";
7
+ import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-u6_e6WfA.mjs";
8
8
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
9
9
  import { InternalError, isInternalError } from "@prisma/orm-framework/utils/internal-error";
10
10
  import { domainModelsAtDefaultNamespace } from "@prisma/orm-framework/contract/types";
@@ -1,4 +1,4 @@
1
- import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-CvNNLogv.mjs";
1
+ import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-BfyaoH53.mjs";
2
2
  //#region ../../../2-sql/9-family/dist/pack.d.mts
3
3
  //#region src/exports/pack.d.ts
4
4
  declare const sqlFamilyPack: {
@@ -320,4 +320,4 @@ declare const sqlFamilyPack: {
320
320
  };
321
321
  //#endregion
322
322
  export { sqlFamilyPack as t };
323
- //# sourceMappingURL=pack-DvNv2W5h.d.mts.map
323
+ //# sourceMappingURL=pack-C3mqZevM.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pack-DvNv2W5h.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/pack.d.mts"],"mappings":";;;cAEc;WACH;WACA;WACA;WACA;WACA;aACE;eACE;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;UAChD;mBACS;0CACuB;iBACzB,6CAA6C;UACpD;mBACS;0CACuB;iBACzB,4CAA4C;UACnD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,4CAA4C;mBAC1C;mBACA;mBACA;0CACuB;iBACzB,8CAA8C;UACrD;0CACgC;iBACzB,oDAAoD;UAC3D;0CACgC;iBACzB,2CAA2C;UAClD,qCAAqC,uDAAuD;UAC5F;0CACgC;;eAE3B;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;mBACvC;0CACuB;iBACzB,6CAA6C;mBAC3C;0CACuB;iBACzB,8CAA8C;UACrD;UACA;0CACgC;iBACzB,+CAA+C;UACtD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,mEAAmE,4CAA4C,iFAAiF,4CAA4C;0CAClP"}
1
+ {"version":3,"file":"pack-C3mqZevM.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/pack.d.mts"],"mappings":";;;cAEc;WACH;WACA;WACA;WACA;WACA;aACE;eACE;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;UAChD;mBACS;0CACuB;iBACzB,6CAA6C;UACpD;mBACS;0CACuB;iBACzB,4CAA4C;UACnD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,4CAA4C;mBAC1C;mBACA;mBACA;0CACuB;iBACzB,8CAA8C;UACrD;0CACgC;iBACzB,oDAAoD;UAC3D;0CACgC;iBACzB,2CAA2C;UAClD,qCAAqC,uDAAuD;UAC5F;0CACgC;;eAE3B;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;mBACvC;0CACuB;iBACzB,6CAA6C;mBAC3C;0CACuB;iBACzB,8CAA8C;UACrD;UACA;0CACgC;iBACzB,+CAA+C;UACtD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,mEAAmE,4CAA4C,iFAAiF,4CAA4C;0CAClP"}
@@ -1,6 +1,6 @@
1
- import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
- import "./types-E46h1SEX.mjs";
3
- import { h as AnyQueryAst } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
2
+ import "./types-B11MGgKr.mjs";
3
+ import { h as AnyQueryAst } from "./types-Yui2yFf6-DYiGm9ET.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { AsyncIterableResult, QueryPlan } from "@prisma/orm-framework/components/runtime";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/plan-B7g2kDfQ.d.mts
@@ -47,4 +47,4 @@ interface Preparable<DbRow, Result> {
47
47
  declare function planFromAst<Row = unknown>(ast: AnyQueryAst, contract: Contract<SqlStorage>, laneId?: string): SqlQueryPlan<Row>;
48
48
  //#endregion
49
49
  export { SqlQueryPlan as n, planFromAst as r, Preparable as t };
50
- //# sourceMappingURL=plan-B7g2kDfQ-BVlzwDKL.d.mts.map
50
+ //# sourceMappingURL=plan-B7g2kDfQ-Dth0BeTe.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-B7g2kDfQ-BVlzwDKL.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-B7g2kDfQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;UAED,WAAW,OAAO;WACjB,MAAM,aAAa;EAC5B,QAAQ,MAAM,oBAAoB,SAAS;;;;;;;;;;;;;;;;;;;;iBAoB5B,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
1
+ {"version":3,"file":"plan-B7g2kDfQ-Dth0BeTe.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-B7g2kDfQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;UAED,WAAW,OAAO;WACjB,MAAM,aAAa;EAC5B,QAAQ,MAAM,oBAAoB,SAAS;;;;;;;;;;;;;;;;;;;;iBAoB5B,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
@@ -0,0 +1,2 @@
1
+ import "./plan-B7g2kDfQ-Dth0BeTe.mjs";
2
+ import "./sql-execution-plan-Db0j752I-dJ-JGxbD.mjs";
@@ -1,19 +1,19 @@
1
- import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
- import "./types-E46h1SEX.mjs";
3
- import { r as SqlOperationDescriptors } from "./index-BlVbNiHO.mjs";
4
- import { At as SqlCodecCallContext, E as CodecRef$1, S as Codec$1, dt as LoweredStatement, h as AnyQueryAst, k as ContractCodecRegistry, ut as LoweredParam } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
2
+ import "./types-B11MGgKr.mjs";
3
+ import { r as SqlOperationDescriptors } from "./index-DZbfFGBA.mjs";
4
+ import { At as SqlCodecCallContext, E as CodecRef$1, S as Codec$1, dt as LoweredStatement, h as AnyQueryAst, k as ContractCodecRegistry, ut as LoweredParam } from "./types-Yui2yFf6-DYiGm9ET.mjs";
5
5
  import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
6
- import { d as MarkerReadResult, t as Adapter } from "./ast-S4eEzFmO.mjs";
7
- import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-BVlzwDKL.mjs";
8
- import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-DLgBXKdO.mjs";
9
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-B3yGocR6.mjs";
10
- import "./plan-hQv6wCbk.mjs";
11
- import { n as ExecutionContext } from "./query-lane-context-BSmWfohZ-yCQ9qzQZ.mjs";
12
- import "./query-lane-context-DbJO1bmQ.mjs";
13
- import { h as RuntimeScope } from "./types-BGHABElw-CZyfbuWe.mjs";
14
- import "./types-CHcsPFTv.mjs";
15
- import { i as SqlParamRefMutator } from "./middleware-CuGBptK0-BEYuhhG2.mjs";
16
- import "./middleware-BwwcaXlc.mjs";
6
+ import { d as MarkerReadResult, t as Adapter } from "./ast-dPjHeaNs.mjs";
7
+ import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-Dth0BeTe.mjs";
8
+ import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-n9sdM2RA.mjs";
9
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-dJ-JGxbD.mjs";
10
+ import "./plan-CrKSowWJ.mjs";
11
+ import { n as ExecutionContext } from "./query-lane-context-BSmWfohZ-Jn0AbOQt.mjs";
12
+ import "./query-lane-context-DWdmmnrN.mjs";
13
+ import { h as RuntimeScope } from "./types-BGHABElw-C5dqoVCg.mjs";
14
+ import "./types-CQBRYgDW.mjs";
15
+ import { i as SqlParamRefMutator } from "./middleware-CuGBptK0-xrXqWhc7.mjs";
16
+ import "./middleware-CN4vQuOi.mjs";
17
17
  import { Contract, JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
18
18
  import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
19
19
  import { AfterExecuteResult, AfterQueryResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, MutationDefaultGeneratorContributor, QueryInterceptResult, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeMiddleware, RuntimeMiddlewareContext } from "@prisma/orm-framework/components/runtime";
@@ -529,4 +529,4 @@ declare class PreparedExecutionImpl<Params> implements PreparedExecution<Params>
529
529
  }
530
530
  //#endregion
531
531
  export { SqlMiddlewareContext as A, TransactionContext as B, RuntimeParameterizedCodecDescriptor as C, SqlExecutionStack as D, RuntimeTransaction as E, SqlRuntimeExtensionDescriptor as F, encodeParamsWithMetadata as G, createExecutionContext as H, SqlRuntimeExtensionInstance as I, withTransaction as J, preparedStatementExecute as K, SqlRuntimeTargetDescriptor as L, SqlRuntimeAdapterInstance as M, SqlRuntimeBase as N, SqlExecutionStackWithDriver as O, SqlRuntimeDriverInstance as P, SqlStaticContributions as R, RuntimeOptions as S, RuntimeTelemetryEvent as T, createSqlExecutionStack as U, VerifyMarkerOption as V, deriveParamMetadata as W, PreparedStatementInternals as _, DeclaredCodecId as a, RuntimeConnection as b, ParamSpec as c, PreparedExecution as d, PreparedExecutionImpl as f, PreparedStatementImpl as g, PreparedStatementExecuteTarget as h, Declaration as i, SqlRuntimeAdapterDescriptor as j, SqlMiddleware as k, ParamsFromDeclaration as l, PreparedStatement as m, CloseRefusal as n, DeclaredNullable as o, PreparedFor as p, preparedStatementQuery as q, ConnectionProvider as r, MarkerReader as s, BindSiteParams as t, PrepareCallback as u, PreparedStatementQueryTarget as v, RuntimeQueryable as w, RuntimeFamilyAdapter as x, Runtime as y, TelemetryOutcome as z };
532
- //# sourceMappingURL=prepared-statement-Cv54gpY_-BObeNp2I.d.mts.map
532
+ //# sourceMappingURL=prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepared-statement-Cv54gpY_-BObeNp2I.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-Cv54gpY_.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAaU;WACC,OAAO;WACP;;iBAEM,oBAAoB,KAAK,uBAAuB;iBAChD,yBAAyB,4BAA4B,mBAAmB,iBAAiB,KAAK,qBAAqB,iBAAiB,wBAAwB;;;UAGnK,6BAA6B;WAC5B,UAAU,SAAS;;;;;;UAMpB;WACC,KAAK;WACL,MAAM;;UAEP,cAAc,kBAAkB,0BAA0B,iCAAiC,kBAAkB,kBAAkB,mBAAmB;WACjJ;;;;;;;;;;;;;;;;;;;EAmBT,eAAe,OAAO,WAAW,KAAK,uBAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BrE,aAAa,MAAM,kBAAkB,KAAK,sBAAsB,SAAS,mBAAmB,oBAAoB;EAChH,gBAAgB,MAAM,kBAAkB,KAAK,uBAAuB,QAAQ;EAC5E,OAAO,KAAK,yBAAyB,MAAM,kBAAkB,KAAK,uBAAuB;EACzF,YAAY,MAAM,kBAAkB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WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,QAAQ,QAAQ,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,QAAQ"}
@@ -1,5 +1,5 @@
1
1
  import { i as printSqlExpressionLiteral } from "./sql-expression-BXx0Ilj-.mjs";
2
- import { m as defaultInCanonicalForm } from "./types-B9rf_EdI-CEYrMMeO.mjs";
2
+ import { m as defaultInCanonicalForm } from "./types-DAoMCSPl-D2ajBTpK.mjs";
3
3
  import { D as numeralText, w as escapePslString } from "./ast-5hifzBHC.mjs";
4
4
  import { printTaggedLiteral } from "@prisma/orm-framework/components/authoring";
5
5
  import { dataTypeId } from "@prisma/orm-framework/components/codec";
@@ -209,4 +209,4 @@ function sameForm(left, right) {
209
209
  //#endregion
210
210
  export { mapDefault as t };
211
211
 
212
- //# sourceMappingURL=psl-build-CqhSpaQE.mjs.map
212
+ //# sourceMappingURL=psl-build-zkIJwkdq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-build-CqhSpaQE.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/psl-build.mjs"],"sourcesContent":["import { s as toEnumMemberName } from \"./psl-names-C3cwe0rg.mjs\";\nimport { printSqlExpressionLiteral } from \"@internal/sql-contract/sql-expression\";\nimport { printTaggedLiteral } from \"@internal/framework-components/authoring\";\nimport { defaultInCanonicalForm } from \"@internal/sql-schema-ir/types\";\nimport { dataTypeId } from \"@internal/framework-components/codec\";\nimport { escapePslString, numeralText } from \"@internal/sql-relational-core/ast\";\n//#region src/core/psl-build/default-mapping.ts\nconst DEFAULT_FUNCTION_ATTRIBUTES = {\n\t\"autoincrement()\": \"@default(autoincrement())\",\n\t\"now()\": \"@default(now())\"\n};\n/**\n* The attribute a stored default prints as: a named function, a literal the column takes, or any\n* other expression as a `sql` literal. `undefined` when a literal has no written form.\n*/\nfunction mapDefault(columnDefault, options) {\n\tswitch (columnDefault.kind) {\n\t\tcase \"literal\": {\n\t\t\tconst text = writeDefaultLiteral(columnDefault.value, options);\n\t\t\treturn text === void 0 ? void 0 : { attribute: `@default(${text})` };\n\t\t}\n\t\tcase \"function\": return { attribute: options?.functionAttributes?.[columnDefault.expression] ?? DEFAULT_FUNCTION_ATTRIBUTES[columnDefault.expression] ?? `@default(${printSqlExpressionLiteral(columnDefault.expression)})` };\n\t}\n}\nfunction writingSurface(entries) {\n\tconst entryOf = /* @__PURE__ */ new Map();\n\tlet classify;\n\tlet plainStringType;\n\tlet plainBooleanType;\n\tconst tagTypes = [];\n\tfor (const [key, entry] of Object.entries(entries)) {\n\t\tconst written = entry.written;\n\t\tif (written.kind === \"tag\") {\n\t\t\tentryOf.set(key, entry);\n\t\t\ttagTypes.push(dataTypeId(key));\n\t\t\tcontinue;\n\t\t}\n\t\tif (written.syntax === \"number\") {\n\t\t\tclassify = written.classify;\n\t\t\tfor (const type of written.types) entryOf.set(type, entry);\n\t\t\tcontinue;\n\t\t}\n\t\tentryOf.set(key, entry);\n\t\tif (written.syntax === \"string\") plainStringType = dataTypeId(key);\n\t\telse plainBooleanType = dataTypeId(key);\n\t}\n\treturn {\n\t\tentryOf,\n\t\tclassify,\n\t\tplainStringType,\n\t\tplainBooleanType,\n\t\ttagTypes\n\t};\n}\n/**\n* Every type the stored form could be a value of, in the order a written value would be read: a\n* number or numeral text through the classifier first, then the plain syntax that matches the\n* shape, then each tag, whose canonical form is a whole document.\n*/\nfunction classifications(value, surface) {\n\tconst found = [];\n\tif (typeof value === \"number\") {\n\t\tconst classified = surface.classify?.(numeralText(value));\n\t\treturn classified === void 0 ? [] : [classified];\n\t}\n\tif (typeof value === \"boolean\") return surface.plainBooleanType === void 0 ? [] : [{\n\t\ttype: surface.plainBooleanType,\n\t\tvalue\n\t}];\n\tif (typeof value === \"string\") {\n\t\tconst classified = surface.classify?.(value);\n\t\tif (classified !== void 0) found.push(classified);\n\t\tif (surface.plainStringType !== void 0) found.push({\n\t\t\ttype: surface.plainStringType,\n\t\t\tvalue\n\t\t});\n\t}\n\tfor (const type of surface.tagTypes) found.push({\n\t\ttype,\n\t\tvalue\n\t});\n\treturn found;\n}\n/** The stored form the column takes this value as, or `undefined` when its type takes no such value. */\nfunction admitted(candidate, columnDataType, dataTypes) {\n\tif (candidate.type === columnDataType) return candidate.value;\n\tconst cast = dataTypes.get(columnDataType)?.casts[candidate.type];\n\tif (cast === void 0) return void 0;\n\ttry {\n\t\treturn cast(candidate.value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The body of the literal: what the entry prints, before the syntax that fences it. */\nfunction printedBody(entry, value) {\n\ttry {\n\t\treturn entry.print(value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** What the entry reads the printed body back as, which for a number is the classifier's answer. */\nfunction readBack(entry, type, body) {\n\tconst written = entry.written;\n\ttry {\n\t\treturn written.kind === \"plain\" && written.syntax === \"number\" ? written.classify(body) : {\n\t\t\ttype,\n\t\t\tvalue: written.parse(body)\n\t\t};\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction literalText(entry, body) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return printTaggedLiteral(written.tag, body);\n\treturn written.syntax === \"string\" ? `\"${escapePslString(body)}\"` : body;\n}\n/**\n* The value written as the literal of one of its types, proven by reading the text straight back:\n* the same entry, the same cast, and the stored form again.\n*/\nfunction writeScalar(value, columnDataType, dataTypes, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst stored = admitted(candidate, columnDataType, dataTypes);\n\t\tif (stored === void 0 || !sameForm(stored, value)) continue;\n\t\tconst body = printedBody(entry, candidate.value);\n\t\tif (body === void 0) continue;\n\t\tconst reread = readBack(entry, candidate.type, body);\n\t\tif (reread === void 0) continue;\n\t\tconst restored = admitted(reread, columnDataType, dataTypes);\n\t\tif (restored === void 0 || !sameForm(restored, value)) continue;\n\t\treturn literalText(entry, body);\n\t}\n}\n/** One written element of a list, printed as a value of any type, with no column type to admit it. */\nfunction writeElement(value, of, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tif (!of.includes(candidate.type)) continue;\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst body = printedBody(entry, candidate.value);\n\t\tif (body === void 0) continue;\n\t\tconst reread = readBack(entry, candidate.type, body);\n\t\tif (reread === void 0 || !of.includes(reread.type)) continue;\n\t\treturn {\n\t\t\ttext: literalText(entry, body),\n\t\t\tvalue: reread.value\n\t\t};\n\t}\n}\n/**\n* A written list on a scalar column, which the column type's list cast turns into its one value.\n* Each element is classified on its own and must be of a type the cast takes.\n*/\nfunction writeListCast(value, columnDataType, dataTypes, surface) {\n\tconst listCast = dataTypes.get(columnDataType)?.listCast;\n\tif (listCast === void 0) return void 0;\n\tconst parts = [];\n\tconst elements = [];\n\tfor (const element of value) {\n\t\tconst written = writeElement(element, listCast.of, surface);\n\t\tif (written === void 0) return void 0;\n\t\tparts.push(written.text);\n\t\telements.push(written.value);\n\t}\n\ttry {\n\t\tif (!sameForm(listCast.cast(elements), value)) return void 0;\n\t} catch {\n\t\treturn;\n\t}\n\treturn `[${parts.join(\", \")}]`;\n}\nfunction writeDefaultLiteral(stored, options) {\n\tif (stored instanceof Date) return void 0;\n\tconst { dataTypeEntries, dataTypes, columnDataType } = options ?? {};\n\tif (dataTypeEntries === void 0 || dataTypes === void 0 || columnDataType === void 0) return;\n\tconst { value } = defaultInCanonicalForm(stored, dataTypes.get(columnDataType)?.toCanonicalForm, options?.list === true);\n\tif (value instanceof Date) return void 0;\n\tconst surface = writingSurface(dataTypeEntries);\n\tif (options?.list === true) {\n\t\tif (!Array.isArray(value)) return void 0;\n\t\tconst parts = [];\n\t\tfor (const element of value) {\n\t\t\tconst written = writeScalar(element, columnDataType, dataTypes, surface);\n\t\t\tif (written === void 0) return void 0;\n\t\t\tparts.push(written);\n\t\t}\n\t\treturn `[${parts.join(\", \")}]`;\n\t}\n\tconst written = writeScalar(value, columnDataType, dataTypes, surface);\n\tif (written !== void 0) return written;\n\treturn Array.isArray(value) ? writeListCast(value, columnDataType, dataTypes, surface) : void 0;\n}\n/** Whether two canonical forms are the same JSON value, member by member and element by element. */\nfunction sameForm(left, right) {\n\tif (left === right) return true;\n\tif (Array.isArray(left) !== Array.isArray(right)) return false;\n\tif (typeof left !== \"object\" || typeof right !== \"object\" || left === null || right === null) return false;\n\tconst members = Object.entries(left);\n\tconst others = new Map(Object.entries(right));\n\treturn members.length === others.size && members.every(([key, member]) => {\n\t\tconst other = others.get(key);\n\t\treturn other !== void 0 && sameForm(member, other);\n\t});\n}\n//#endregion\nexport { mapDefault, toEnumMemberName };\n\n//# sourceMappingURL=psl-build.mjs.map"],"mappings":";;;;;;AAOA,MAAM,8BAA8B;CACnC,mBAAmB;CACnB,SAAS;AACV;;;;;AAKA,SAAS,WAAW,eAAe,SAAS;CAC3C,QAAQ,cAAc,MAAtB;EACC,KAAK,WAAW;GACf,MAAM,OAAO,oBAAoB,cAAc,OAAO,OAAO;GAC7D,OAAO,SAAS,KAAK,IAAI,KAAK,IAAI,EAAE,WAAW,YAAY,KAAK,GAAG;EACpE;EACA,KAAK,YAAY,OAAO,EAAE,WAAW,SAAS,qBAAqB,cAAc,eAAe,4BAA4B,cAAc,eAAe,YAAY,0BAA0B,cAAc,UAAU,EAAE,GAAG;CAC7N;AACD;AACA,SAAS,eAAe,SAAS;CAChC,MAAM,0BAA0B,IAAI,IAAI;CACxC,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM,WAAW,CAAC;CAClB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,OAAO,GAAG;EACnD,MAAM,UAAU,MAAM;EACtB,IAAI,QAAQ,SAAS,OAAO;GAC3B,QAAQ,IAAI,KAAK,KAAK;GACtB,SAAS,KAAK,WAAW,GAAG,CAAC;GAC7B;EACD;EACA,IAAI,QAAQ,WAAW,UAAU;GAChC,WAAW,QAAQ;GACnB,K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MAAM,WAAW,OAAO;GAC5B,MAAM,UAAU,YAAY,SAAS,gBAAgB,WAAW,OAAO;GACvE,IAAI,YAAY,KAAK,GAAG,OAAO,KAAK;GACpC,MAAM,KAAK,OAAO;EACnB;EACA,OAAO,IAAI,MAAM,KAAK,IAAI,EAAE;CAC7B;CACA,MAAM,UAAU,YAAY,OAAO,gBAAgB,WAAW,OAAO;CACrE,IAAI,YAAY,KAAK,GAAG,OAAO;CAC/B,OAAO,MAAM,QAAQ,KAAK,IAAI,cAAc,OAAO,gBAAgB,WAAW,OAAO,IAAI,KAAK;AAC/F;;AAEA,SAAS,SAAS,MAAM,OAAO;CAC9B,IAAI,SAAS,OAAO,OAAO;CAC3B,IAAI,MAAM,QAAQ,IAAI,MAAM,MAAM,QAAQ,KAAK,GAAG,OAAO;CACzD,IAAI,OAAO,SAAS,YAAY,OAAO,UAAU,YAAY,SAAS,QAAQ,UAAU,MAAM,OAAO;CACrG,MAAM,UAAU,OAAO,QAAQ,IAAI;CACnC,MAAM,SAAS,IAAI,IAAI,OAAO,QAAQ,KAAK,CAAC;CAC5C,OAAO,QAAQ,WAAW,OAAO,QAAQ,QAAQ,OAAO,CAAC,KAAK,YAAY;EACzE,MAAM,QAAQ,OAAO,IAAI,GAAG;EAC5B,OAAO,UAAU,KAAK,KAAK,SAAS,QAAQ,KAAK;CAClD,CAAC;AACF"}
1
+ {"version":3,"file":"psl-build-zkIJwkdq.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/psl-build.mjs"],"sourcesContent":["import { s as toEnumMemberName } from \"./psl-names-C3cwe0rg.mjs\";\nimport { printSqlExpressionLiteral } from \"@internal/sql-contract/sql-expression\";\nimport { printTaggedLiteral } from \"@internal/framework-components/authoring\";\nimport { defaultInCanonicalForm } from \"@internal/sql-schema-ir/types\";\nimport { dataTypeId } from \"@internal/framework-components/codec\";\nimport { escapePslString, numeralText } from \"@internal/sql-relational-core/ast\";\n//#region src/core/psl-build/default-mapping.ts\nconst DEFAULT_FUNCTION_ATTRIBUTES = {\n\t\"autoincrement()\": \"@default(autoincrement())\",\n\t\"now()\": \"@default(now())\"\n};\n/**\n* The attribute a stored default prints as: a named function, a literal the column takes, or any\n* other expression as a `sql` literal. `undefined` when a literal has no written form.\n*/\nfunction mapDefault(columnDefault, options) {\n\tswitch (columnDefault.kind) {\n\t\tcase \"literal\": {\n\t\t\tconst text = writeDefaultLiteral(columnDefault.value, options);\n\t\t\treturn text === void 0 ? void 0 : { attribute: `@default(${text})` };\n\t\t}\n\t\tcase \"function\": return { attribute: options?.functionAttributes?.[columnDefault.expression] ?? DEFAULT_FUNCTION_ATTRIBUTES[columnDefault.expression] ?? `@default(${printSqlExpressionLiteral(columnDefault.expression)})` };\n\t}\n}\nfunction writingSurface(entries) {\n\tconst entryOf = /* @__PURE__ */ new Map();\n\tlet classify;\n\tlet plainStringType;\n\tlet plainBooleanType;\n\tconst tagTypes = [];\n\tfor (const [key, entry] of Object.entries(entries)) {\n\t\tconst written = entry.written;\n\t\tif (written.kind === \"tag\") {\n\t\t\tentryOf.set(key, entry);\n\t\t\ttagTypes.push(dataTypeId(key));\n\t\t\tcontinue;\n\t\t}\n\t\tif (written.syntax === \"number\") {\n\t\t\tclassify = written.classify;\n\t\t\tfor (const type of written.types) entryOf.set(type, entry);\n\t\t\tcontinue;\n\t\t}\n\t\tentryOf.set(key, entry);\n\t\tif (written.syntax === \"string\") plainStringType = dataTypeId(key);\n\t\telse plainBooleanType = dataTypeId(key);\n\t}\n\treturn {\n\t\tentryOf,\n\t\tclassify,\n\t\tplainStringType,\n\t\tplainBooleanType,\n\t\ttagTypes\n\t};\n}\n/**\n* Every type the stored form could be a value of, in the order a written value would be read: a\n* number or numeral text through the classifier first, then the plain syntax that matches the\n* shape, then each tag, whose canonical form is a whole document.\n*/\nfunction classifications(value, surface) {\n\tconst found = [];\n\tif (typeof value === \"number\") {\n\t\tconst classified = surface.classify?.(numeralText(value));\n\t\treturn classified === void 0 ? [] : [classified];\n\t}\n\tif (typeof value === \"boolean\") return surface.plainBooleanType === void 0 ? [] : [{\n\t\ttype: surface.plainBooleanType,\n\t\tvalue\n\t}];\n\tif (typeof value === \"string\") {\n\t\tconst classified = surface.classify?.(value);\n\t\tif (classified !== void 0) found.push(classified);\n\t\tif (surface.plainStringType !== void 0) found.push({\n\t\t\ttype: surface.plainStringType,\n\t\t\tvalue\n\t\t});\n\t}\n\tfor (const type of surface.tagTypes) found.push({\n\t\ttype,\n\t\tvalue\n\t});\n\treturn found;\n}\n/** The stored form the column takes this value as, or `undefined` when its type takes no such value. */\nfunction admitted(candidate, columnDataType, dataTypes) {\n\tif (candidate.type === columnDataType) return candidate.value;\n\tconst cast = dataTypes.get(columnDataType)?.casts[candidate.type];\n\tif (cast === void 0) return void 0;\n\ttry {\n\t\treturn cast(candidate.value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The body of the literal: what the entry prints, before the syntax that fences it. */\nfunction printedBody(entry, value) {\n\ttry {\n\t\treturn entry.print(value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** What the entry reads the printed body back as, which for a number is the classifier's answer. */\nfunction readBack(entry, type, body) {\n\tconst written = entry.written;\n\ttry {\n\t\treturn written.kind === \"plain\" && written.syntax === \"number\" ? written.classify(body) : {\n\t\t\ttype,\n\t\t\tvalue: written.parse(body)\n\t\t};\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction literalText(entry, body) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return printTaggedLiteral(written.tag, body);\n\treturn written.syntax === \"string\" ? `\"${escapePslString(body)}\"` : body;\n}\n/**\n* The value written as the literal of one of its types, proven by reading the text straight back:\n* the same entry, the same cast, and the stored form again.\n*/\nfunction writeScalar(value, columnDataType, dataTypes, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst stored = admitted(candidate, columnDataType, dataTypes);\n\t\tif (stored === void 0 || !sameForm(stored, value)) continue;\n\t\tconst body = printedBody(entry, candidate.value);\n\t\tif (body === void 0) continue;\n\t\tconst reread = readBack(entry, candidate.type, body);\n\t\tif (reread === void 0) continue;\n\t\tconst restored = admitted(reread, columnDataType, dataTypes);\n\t\tif (restored === void 0 || !sameForm(restored, value)) continue;\n\t\treturn literalText(entry, body);\n\t}\n}\n/** One written element of a list, printed as a value of any type, with no column type to admit it. */\nfunction writeElement(value, of, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tif (!of.includes(candidate.type)) continue;\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst body = printedBody(entry, candidate.value);\n\t\tif (body === void 0) continue;\n\t\tconst reread = readBack(entry, candidate.type, body);\n\t\tif (reread === void 0 || !of.includes(reread.type)) continue;\n\t\treturn {\n\t\t\ttext: literalText(entry, body),\n\t\t\tvalue: reread.value\n\t\t};\n\t}\n}\n/**\n* A written list on a scalar column, which the column type's list cast turns into its one value.\n* Each element is classified on its own and must be of a type the cast takes.\n*/\nfunction writeListCast(value, columnDataType, dataTypes, surface) {\n\tconst listCast = dataTypes.get(columnDataType)?.listCast;\n\tif (listCast === void 0) return void 0;\n\tconst parts = [];\n\tconst elements = [];\n\tfor (const element of value) {\n\t\tconst written = writeElement(element, listCast.of, surface);\n\t\tif (written === void 0) return void 0;\n\t\tparts.push(written.text);\n\t\telements.push(written.value);\n\t}\n\ttry {\n\t\tif (!sameForm(listCast.cast(elements), value)) return void 0;\n\t} catch {\n\t\treturn;\n\t}\n\treturn `[${parts.join(\", \")}]`;\n}\nfunction writeDefaultLiteral(stored, options) {\n\tif (stored instanceof Date) return void 0;\n\tconst { dataTypeEntries, dataTypes, columnDataType } = options ?? {};\n\tif (dataTypeEntries === void 0 || dataTypes === void 0 || columnDataType === void 0) return;\n\tconst { value } = defaultInCanonicalForm(stored, dataTypes.get(columnDataType)?.toCanonicalForm, options?.list === true);\n\tif (value instanceof Date) return void 0;\n\tconst surface = writingSurface(dataTypeEntries);\n\tif (options?.list === true) {\n\t\tif (!Array.isArray(value)) return void 0;\n\t\tconst parts = [];\n\t\tfor (const element of value) {\n\t\t\tconst written = writeScalar(element, columnDataType, dataTypes, surface);\n\t\t\tif (written === void 0) return void 0;\n\t\t\tparts.push(written);\n\t\t}\n\t\treturn `[${parts.join(\", \")}]`;\n\t}\n\tconst written = writeScalar(value, columnDataType, dataTypes, surface);\n\tif (written !== void 0) return written;\n\treturn Array.isArray(value) ? writeListCast(value, columnDataType, dataTypes, surface) : void 0;\n}\n/** Whether two canonical forms are the same JSON value, member by member and element by element. */\nfunction sameForm(left, right) {\n\tif (left === right) return true;\n\tif (Array.isArray(left) !== Array.isArray(right)) return false;\n\tif (typeof left !== \"object\" || typeof right !== \"object\" || left === null || right === null) return false;\n\tconst members = Object.entries(left);\n\tconst others = new Map(Object.entries(right));\n\treturn members.length === others.size && members.every(([key, member]) => {\n\t\tconst other = others.get(key);\n\t\treturn other !== void 0 && sameForm(member, other);\n\t});\n}\n//#endregion\nexport { mapDefault, toEnumMemberName };\n\n//# sourceMappingURL=psl-build.mjs.map"],"mappings":";;;;;;AAOA,MAAM,8BAA8B;CACnC,mBAAmB;CACnB,SAAS;AACV;;;;;AAKA,SAAS,WAAW,eAAe,SAAS;CAC3C,QAAQ,cAAc,MAAtB;EACC,KAAK,WAAW;GACf,MAAM,OAAO,oBAAoB,cAAc,OAAO,OAAO;GAC7D,OAAO,SAAS,KAAK,IAAI,KAAK,IAAI,EAAE,WAAW,YAAY,KAAK,GAAG;EACpE;EACA,KAAK,YAAY,OAAO,EAAE,WAAW,SAAS,qBAAqB,cAAc,eAAe,4BAA4B,cAAc,eAAe,YAAY,0BAA0B,cAAc,UAAU,EAAE,GAAG;CAC7N;AACD;AACA,SAAS,eAAe,SAAS;CAChC,MAAM,0BAA0B,IAAI,IAAI;CACxC,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM,WAAW,CAAC;CAClB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,Q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SAAS,SAAS,IAAI;CACvH,IAAI,iBAAiB,MAAM,OAAO,KAAK;CACvC,MAAM,UAAU,eAAe,eAAe;CAC9C,IAAI,SAAS,SAAS,MAAM;EAC3B,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG,OAAO,KAAK;EACvC,MAAM,QAAQ,CAAC;EACf,KAAK,MAAM,WAAW,OAAO;GAC5B,MAAM,UAAU,YAAY,SAAS,gBAAgB,WAAW,OAAO;GACvE,IAAI,YAAY,KAAK,GAAG,OAAO,KAAK;GACpC,MAAM,KAAK,OAAO;EACnB;EACA,OAAO,IAAI,MAAM,KAAK,IAAI,EAAE;CAC7B;CACA,MAAM,UAAU,YAAY,OAAO,gBAAgB,WAAW,OAAO;CACrE,IAAI,YAAY,KAAK,GAAG,OAAO;CAC/B,OAAO,MAAM,QAAQ,KAAK,IAAI,cAAc,OAAO,gBAAgB,WAAW,OAAO,IAAI,KAAK;AAC/F;;AAEA,SAAS,SAAS,MAAM,OAAO;CAC9B,IAAI,SAAS,OAAO,OAAO;CAC3B,IAAI,MAAM,QAAQ,IAAI,MAAM,MAAM,QAAQ,KAAK,GAAG,OAAO;CACzD,IAAI,OAAO,SAAS,YAAY,OAAO,UAAU,YAAY,SAAS,QAAQ,UAAU,MAAM,OAAO;CACrG,MAAM,UAAU,OAAO,QAAQ,IAAI;CACnC,MAAM,SAAS,IAAI,IAAI,OAAO,QAAQ,KAAK,CAAC;CAC5C,OAAO,QAAQ,WAAW,OAAO,QAAQ,QAAQ,OAAO,CAAC,KAAK,YAAY;EACzE,MAAM,QAAQ,OAAO,IAAI,GAAG;EAC5B,OAAO,UAAU,KAAK,KAAK,SAAS,QAAQ,KAAK;CAClD,CAAC;AACF"}
@@ -1,4 +1,4 @@
1
- import "./contract-builder-_39f3LuO.mjs";
1
+ import "./contract-builder-Br5TlHMh.mjs";
2
2
  import { AuthoringTypeConstructorDescriptor, DataTypeAuthoringEntry } from "@prisma/orm-framework/components/authoring";
3
3
  import { ColumnDefault, ExecutionMutationDefaultPhases, JsonValue, ValueSetRef } from "@prisma/orm-framework/contract/types";
4
4
  import { CodecLookupWithDescriptors, DataTypeLookup } from "@prisma/orm-framework/components/codec";
@@ -25,4 +25,4 @@ type ColumnDescriptor = {
25
25
  };
26
26
  //#endregion
27
27
  export { ColumnDescriptor as t };
28
- //# sourceMappingURL=psl-column-resolution-sNpXQygQ-BQr15EoR.d.mts.map
28
+ //# sourceMappingURL=psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-column-resolution-sNpXQygQ-BQr15EoR.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/psl-column-resolution-sNpXQygQ.d.mts"],"mappings":";;;;;;;;;;KA8FK;WACM;WACA;WACA;WACA,aAAa;;;;;;;;;WASb,WAAW"}
1
+ {"version":3,"file":"psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/psl-column-resolution-sNpXQygQ.d.mts"],"mappings":";;;;;;;;;;KA8FK;WACM;WACA;WACA;WACA,aAAa;;;;;;;;;WASb,WAAW"}
@@ -1,6 +1,6 @@
1
1
  import { s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-BXx0Ilj-.mjs";
2
- import { n as checkSqlDefaultBody, o as reservedSqlDefaultBody } from "./validators-DvzOZLel.mjs";
3
- import { a as storedAsListColumn, i as isValueObjectMember } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
2
+ import { n as checkSqlDefaultBody, o as reservedSqlDefaultBody } from "./validators-Cx6UXIBf.mjs";
3
+ import { a as storedAsListColumn, i as isValueObjectMember } from "./derived-checks-C_y1rk6O-DwCaGICl.mjs";
4
4
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, validateAuthoringHelperArguments } from "@prisma/orm-framework/components/authoring";
6
6
  import { InternalError, isInternalError } from "@prisma/orm-framework/utils/internal-error";
@@ -1865,4 +1865,4 @@ function collectResolvedFields(input) {
1865
1865
  //#endregion
1866
1866
  export { toNamedTypeFieldDescriptor as S, modelCoordinateKey as _, describeUnsupportedSqlAttribute as a, sqlAttributeSpecs as b, getAttribute as c, instantiateFieldTypeConstructor as d, instantiatePslTypeConstructor as f, modelAttributeSpecsFrom as g, mapFieldNamesToColumns as h, contractError as i, getAuthoringEntity as l, interpretModelAttribute as m, bareTypeConstructorOf as n, entryForTag as o, interpretFieldAttribute as p, collectResolvedFields as r, formatDbAttributeMigrationMessage as s, PSL_CHECK_ON_STI_VARIANT as t, getNamedArgument as u, readDataTypeDefault as v, storageName as x, resolveFieldTypeDescriptor as y };
1867
1867
 
1868
- //# sourceMappingURL=psl-field-resolution-_o74AUE4-CKYNRnzL.mjs.map
1868
+ //# sourceMappingURL=psl-field-resolution-_o74AUE4-C-vTNklI.mjs.map