@prisma/orm-family-sql 8.0.0-rc.1-dev.30 → 8.0.0-rc.1-dev.31

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 (225) hide show
  1. package/dist/{ast-Px7aAd_0.d.mts → ast-DRbUiQ-9.d.mts} +3 -3
  2. package/dist/{ast-Px7aAd_0.d.mts.map → ast-DRbUiQ-9.d.mts.map} +1 -1
  3. package/dist/authored-check-naming-BWBe-PVE.d.mts +30 -0
  4. package/dist/authored-check-naming-BWBe-PVE.d.mts.map +1 -0
  5. package/dist/authored-check-naming-Hf9990DV.mjs +47 -0
  6. package/dist/authored-check-naming-Hf9990DV.mjs.map +1 -0
  7. package/dist/{authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs → authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs} +2 -2
  8. package/dist/{authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs.map → authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs.map} +1 -1
  9. package/dist/builder.d.mts +2 -2
  10. package/dist/builder__runtime.d.mts +9 -9
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +2 -2
  13. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts +44 -0
  14. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +1 -0
  15. package/dist/{codec-descriptor-registry-DMUcCfyb.mjs → codec-descriptor-registry-N0dhtKaH.mjs} +2 -2
  16. package/dist/{codec-descriptor-registry-DMUcCfyb.mjs.map → codec-descriptor-registry-N0dhtKaH.mjs.map} +1 -1
  17. package/dist/{config-types-D7vjxNMf.mjs → config-types-B6cQRwJw.mjs} +2 -2
  18. package/dist/{config-types-D7vjxNMf.mjs.map → config-types-B6cQRwJw.mjs.map} +1 -1
  19. package/dist/{config-types-ktywvY7L.d.mts → config-types-D9fdKG3g.d.mts} +4 -4
  20. package/dist/{config-types-ktywvY7L.d.mts.map → config-types-D9fdKG3g.d.mts.map} +1 -1
  21. package/dist/{contract-builder-Dqnem9IW.d.mts → contract-builder-CG_tGDbB.d.mts} +45 -10
  22. package/dist/contract-builder-CG_tGDbB.d.mts.map +1 -0
  23. package/dist/{contract-builder-BFN7WSed.mjs → contract-builder-vdfvmuiO.mjs} +25 -5
  24. package/dist/contract-builder-vdfvmuiO.mjs.map +1 -0
  25. package/dist/contract-emitter.mjs +1 -1
  26. package/dist/contract-psl.d.mts +3 -3
  27. package/dist/contract-psl.mjs +1 -1
  28. package/dist/contract-psl__provider.d.mts +2 -2
  29. package/dist/contract-psl__provider.mjs +3 -3
  30. package/dist/contract-psl__provider.mjs.map +1 -1
  31. package/dist/contract-ts.d.mts +5 -5
  32. package/dist/contract-ts.mjs +4 -4
  33. package/dist/contract-ts__config-types.d.mts +1 -1
  34. package/dist/contract-ts__config-types.mjs +1 -1
  35. package/dist/contract-ts__contract-builder.d.mts +4 -4
  36. package/dist/contract-ts__contract-builder.mjs +3 -3
  37. package/dist/{contract-view-C2LYZzWr.d.mts → contract-view-CPHxoAEX.d.mts} +2 -2
  38. package/dist/{contract-view-C2LYZzWr.d.mts.map → contract-view-CPHxoAEX.d.mts.map} +1 -1
  39. package/dist/contract.d.mts +17 -15
  40. package/dist/contract.mjs +10 -9
  41. package/dist/contract__authored-check-naming.d.mts +2 -0
  42. package/dist/contract__authored-check-naming.mjs +2 -0
  43. package/dist/contract__contract-view.d.mts +1 -1
  44. package/dist/contract__entity-kinds.d.mts +1 -1
  45. package/dist/contract__entity-kinds.mjs +1 -1
  46. package/dist/contract__factories.d.mts +1 -1
  47. package/dist/contract__factories.mjs +1 -1
  48. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  49. package/dist/contract__foreign-key-materialization.mjs +1 -1
  50. package/dist/contract__index-naming.d.mts +1 -1
  51. package/dist/contract__index-naming.mjs +1 -1
  52. package/dist/contract__index-type-validation.d.mts +1 -1
  53. package/dist/contract__resolve-storage-table.d.mts +1 -1
  54. package/dist/contract__types.d.mts +7 -6
  55. package/dist/contract__types.mjs +3 -3
  56. package/dist/contract__validators.d.mts +1 -1
  57. package/dist/contract__validators.mjs +2 -2
  58. package/dist/{control-f9B6b5c2.mjs → control-DAkNosoF.mjs} +9 -9
  59. package/dist/{control-f9B6b5c2.mjs.map → control-DAkNosoF.mjs.map} +1 -1
  60. package/dist/{control-0OFuH6HK.d.mts → control-DI9DC2AS.d.mts} +14 -14
  61. package/dist/{control-0OFuH6HK.d.mts.map → control-DI9DC2AS.d.mts.map} +1 -1
  62. package/dist/control-adapter-BdOcXTOm.d.mts +1 -0
  63. package/dist/{control-adapter-C99J7aEF-B4MyB0B0.d.mts → control-adapter-C99J7aEF-DsxImHyk.d.mts} +8 -8
  64. package/dist/{control-adapter-C99J7aEF-B4MyB0B0.d.mts.map → control-adapter-C99J7aEF-DsxImHyk.d.mts.map} +1 -1
  65. package/dist/{db-C5jmOFPM-BRijskUO.d.mts → db-C5jmOFPM-BGm-QfKd.d.mts} +9 -9
  66. package/dist/{db-C5jmOFPM-BRijskUO.d.mts.map → db-C5jmOFPM-BGm-QfKd.d.mts.map} +1 -1
  67. package/dist/{ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts → ddl-types-CnLSuwXa-Bv46yIe9.d.mts} +3 -3
  68. package/dist/{ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts.map → ddl-types-CnLSuwXa-Bv46yIe9.d.mts.map} +1 -1
  69. package/dist/{derived-checks-CmJgg-N0-CugkINPW.mjs → derived-checks-DFMRmiAu-8jmha26I.mjs} +69 -22
  70. package/dist/derived-checks-DFMRmiAu-8jmha26I.mjs.map +1 -0
  71. package/dist/{derived-checks-DPdD01O0-CE4vJKET.d.mts → derived-checks-DPdD01O0-DGqOFjs6.d.mts} +3 -3
  72. package/dist/{derived-checks-DPdD01O0-CE4vJKET.d.mts.map → derived-checks-DPdD01O0-DGqOFjs6.d.mts.map} +1 -1
  73. package/dist/{diff-dX8KnmWc.d.mts → diff-DVvZXmFv.d.mts} +8 -8
  74. package/dist/{diff-dX8KnmWc.d.mts.map → diff-DVvZXmFv.d.mts.map} +1 -1
  75. package/dist/{dist-DtLVFgdI.mjs → dist-ZK6oeI5e.mjs} +2 -2
  76. package/dist/{dist-DtLVFgdI.mjs.map → dist-ZK6oeI5e.mjs.map} +1 -1
  77. package/dist/{entity-kinds-DZzdcuU5.d.mts → entity-kinds-B5cUFU22.d.mts} +5 -4
  78. package/dist/entity-kinds-B5cUFU22.d.mts.map +1 -0
  79. package/dist/{entity-kinds-CCzdAMq3-x9-uzHu1.mjs → entity-kinds-D7vwoN_T-CCBwFJy0.mjs} +4 -4
  80. package/dist/{entity-kinds-CCzdAMq3-x9-uzHu1.mjs.map → entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map} +1 -1
  81. package/dist/{expression-E67TGFZA.d.mts → expression-D7H1kyVG.d.mts} +5 -5
  82. package/dist/{expression-E67TGFZA.d.mts.map → expression-D7H1kyVG.d.mts.map} +1 -1
  83. package/dist/{factories-C8VyKQ90.d.mts → factories-P3qBQhO-.d.mts} +4 -4
  84. package/dist/{factories-C8VyKQ90.d.mts.map → factories-P3qBQhO-.d.mts.map} +1 -1
  85. package/dist/{factories-BIzyHng2.mjs → factories-SVor5xIT.mjs} +3 -3
  86. package/dist/{factories-BIzyHng2.mjs.map → factories-SVor5xIT.mjs.map} +1 -1
  87. package/dist/family.d.mts +11 -11
  88. package/dist/family.mjs +4 -4
  89. package/dist/family__control-adapter.d.mts +2 -2
  90. package/dist/family__control.d.mts +3 -3
  91. package/dist/family__control.mjs +2 -2
  92. package/dist/family__diff.d.mts +2 -2
  93. package/dist/family__diff.mjs +1 -1
  94. package/dist/family__ir.d.mts +1 -1
  95. package/dist/family__ir.mjs +1 -1
  96. package/dist/family__migration.d.mts +1 -1
  97. package/dist/family__pack.mjs +1 -1
  98. package/dist/family__psl-infer.d.mts +1 -1
  99. package/dist/family__psl-infer.mjs +1 -1
  100. package/dist/family__runtime.d.mts +2 -2
  101. package/dist/{foreign-key-materialization-ziwobURR.mjs → foreign-key-materialization-DLOi1Ps0.mjs} +2 -2
  102. package/dist/{foreign-key-materialization-ziwobURR.mjs.map → foreign-key-materialization-DLOi1Ps0.mjs.map} +1 -1
  103. package/dist/{foreign-key-materialization-CDDVZI8R.d.mts → foreign-key-materialization-DO9dvG7v.d.mts} +2 -2
  104. package/dist/{foreign-key-materialization-CDDVZI8R.d.mts.map → foreign-key-materialization-DO9dvG7v.d.mts.map} +1 -1
  105. package/dist/{index-DbDTloZS.d.mts → index-C5I8D-MB.d.mts} +3 -3
  106. package/dist/{index-DbDTloZS.d.mts.map → index-C5I8D-MB.d.mts.map} +1 -1
  107. package/dist/{index-BIj_Z-Yu.d.mts → index-Ddquditw.d.mts} +16 -16
  108. package/dist/{index-BIj_Z-Yu.d.mts.map → index-Ddquditw.d.mts.map} +1 -1
  109. package/dist/{index-naming-BQXnMcXt.d.mts → index-naming-Ct65z5Xk.d.mts} +7 -7
  110. package/dist/{index-naming-BQXnMcXt.d.mts.map → index-naming-Ct65z5Xk.d.mts.map} +1 -1
  111. package/dist/{index-naming-BoGBcMmI-CoehgjMK.mjs → index-naming-DREt6js7-CRH27yUv.mjs} +15 -13
  112. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +1 -0
  113. package/dist/{index-type-validation-DS9n07WO.d.mts → index-type-validation-CZ5L2lli.d.mts} +3 -3
  114. package/dist/{index-type-validation-DS9n07WO.d.mts.map → index-type-validation-CZ5L2lli.d.mts.map} +1 -1
  115. package/dist/{interpreter-BDZ_Y5U--CMEJIQ40.mjs → interpreter-DaBA2fm--FFkq_gGd.mjs} +75 -5
  116. package/dist/interpreter-DaBA2fm--FFkq_gGd.mjs.map +1 -0
  117. package/dist/{ir-CVhRa-4t.d.mts → ir-Bghjt-FG.d.mts} +3 -3
  118. package/dist/{ir-CVhRa-4t.d.mts.map → ir-Bghjt-FG.d.mts.map} +1 -1
  119. package/dist/lane-query-builder.d.mts +4 -4
  120. package/dist/{middleware-Bp5oIYM0-9a28aLnt.d.mts → middleware-Bp5oIYM0-Ek8bISDH.d.mts} +2 -2
  121. package/dist/{middleware-Bp5oIYM0-9a28aLnt.d.mts.map → middleware-Bp5oIYM0-Ek8bISDH.d.mts.map} +1 -1
  122. package/dist/middleware-aFpB1ZhU.d.mts +1 -0
  123. package/dist/{migration-C8MAouav.d.mts → migration-Dtymew3g.d.mts} +4 -4
  124. package/dist/{migration-C8MAouav.d.mts.map → migration-Dtymew3g.d.mts.map} +1 -1
  125. package/dist/{naming-BsvzQPOq-qOWmknyp.d.mts → naming-CV9j2pXl-KARaDReS.d.mts} +16 -3
  126. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +1 -0
  127. package/dist/{naming-BWkuWJJK-zuGIIJ49.mjs → naming-DKr4TJd7-Cszhq9RV.mjs} +26 -4
  128. package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +1 -0
  129. package/dist/operations.d.mts +1 -1
  130. package/dist/orm-client.d.mts +11 -11
  131. package/dist/orm-client.mjs +1 -1
  132. package/dist/{plan-DfLDIdep-CoshEetE.d.mts → plan-DfLDIdep-6R1mLkcW.d.mts} +4 -4
  133. package/dist/{plan-DfLDIdep-CoshEetE.d.mts.map → plan-DfLDIdep-6R1mLkcW.d.mts.map} +1 -1
  134. package/dist/plan-HWPzzUxh.d.mts +2 -0
  135. package/dist/{psl-infer-DmFgn-Ub.d.mts → psl-infer-CCAD6FWA.d.mts} +3 -3
  136. package/dist/{psl-infer-DmFgn-Ub.d.mts.map → psl-infer-CCAD6FWA.d.mts.map} +1 -1
  137. package/dist/{psl-infer-Z4wA2xpx.mjs → psl-infer-YhbKkybN.mjs} +2 -2
  138. package/dist/{psl-infer-Z4wA2xpx.mjs.map → psl-infer-YhbKkybN.mjs.map} +1 -1
  139. package/dist/{query-lane-context-DyDSQVS--ByM80KpV.d.mts → query-lane-context-DyDSQVS--CyCznt67.d.mts} +5 -5
  140. package/dist/{query-lane-context-DyDSQVS--ByM80KpV.d.mts.map → query-lane-context-DyDSQVS--CyCznt67.d.mts.map} +1 -1
  141. package/dist/query-lane-context-qfJzguc9.d.mts +1 -0
  142. package/dist/relational-core.d.mts +11 -11
  143. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  144. package/dist/relational-core__ast.d.mts +3 -3
  145. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  146. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  147. package/dist/relational-core__contract-free.d.mts +3 -3
  148. package/dist/relational-core__expression.d.mts +1 -1
  149. package/dist/relational-core__middleware.d.mts +2 -2
  150. package/dist/relational-core__plan.d.mts +3 -3
  151. package/dist/relational-core__query-lane-context.d.mts +2 -2
  152. package/dist/relational-core__types.d.mts +2 -2
  153. package/dist/{resolve-storage-table-DFhpOR0X.d.mts → resolve-storage-table-Nyrgk4h8.d.mts} +3 -3
  154. package/dist/{resolve-storage-table-DFhpOR0X.d.mts.map → resolve-storage-table-Nyrgk4h8.d.mts.map} +1 -1
  155. package/dist/{runtime-VGVRdwBD.d.mts → runtime-CjXCGPS4.d.mts} +3 -3
  156. package/dist/{runtime-VGVRdwBD.d.mts.map → runtime-CjXCGPS4.d.mts.map} +1 -1
  157. package/dist/runtime.d.mts +3 -3
  158. package/dist/runtime.mjs +1 -1
  159. package/dist/{schema-differ-DpG_gnur-B7QINE8f.d.mts → schema-differ-DpG_gnur-DFAtGezx.d.mts} +5 -5
  160. package/dist/{schema-differ-DpG_gnur-B7QINE8f.d.mts.map → schema-differ-DpG_gnur-DFAtGezx.d.mts.map} +1 -1
  161. package/dist/schema-ir.d.mts +1 -1
  162. package/dist/schema-ir.mjs +1 -1
  163. package/dist/schema-ir__naming.d.mts +2 -2
  164. package/dist/schema-ir__naming.mjs +2 -2
  165. package/dist/schema-ir__types.d.mts +2 -2
  166. package/dist/schema-ir__types.mjs +1 -1
  167. package/dist/{schema-verify-C_PEdlAr-U3MX28Zu.mjs → schema-verify-C_PEdlAr-Dxxjm6EM.mjs} +2 -2
  168. package/dist/{schema-verify-C_PEdlAr-U3MX28Zu.mjs.map → schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map} +1 -1
  169. package/dist/{serialized-index-D9YgVREe-KaLdoijn.d.mts → serialized-index-CrgG8ct1-DG3JpHc7.d.mts} +4 -4
  170. package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +1 -0
  171. package/dist/{serialized-index-DMOkKJdP-JPETIsd7.mjs → serialized-index-nBTwanKy-_ddEK4tk.mjs} +5 -5
  172. package/dist/{serialized-index-DMOkKJdP-JPETIsd7.mjs.map → serialized-index-nBTwanKy-_ddEK4tk.mjs.map} +1 -1
  173. package/dist/{sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs → sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs} +5 -5
  174. package/dist/{sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs.map → sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map} +1 -1
  175. package/dist/{sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts → sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts} +2 -2
  176. package/dist/{sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts.map → sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts.map} +1 -1
  177. package/dist/{sql-index-ByAAE7K8-C1h4IS27.d.mts → sql-index-ByAAE7K8-DKj2V86p.d.mts} +2 -2
  178. package/dist/{sql-index-ByAAE7K8-C1h4IS27.d.mts.map → sql-index-ByAAE7K8-DKj2V86p.d.mts.map} +1 -1
  179. package/dist/{sql-storage-CySVsLrY-e9C5Gszx.d.mts → sql-storage-8LqxeLAY-DH4DdUXx.d.mts} +4 -4
  180. package/dist/{sql-storage-CySVsLrY-e9C5Gszx.d.mts.map → sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map} +1 -1
  181. package/dist/{storage-table-BLcRrDzz-D4JOM8FC.d.mts → storage-table-DSeWszOL-CI-cItEK.d.mts} +6 -44
  182. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +1 -0
  183. package/dist/{storage-table-D8o37IKw-bbcikEu-.mjs → storage-table-ZzbR-xzQ-BRoTQE_2.mjs} +4 -4
  184. package/dist/{storage-table-D8o37IKw-bbcikEu-.mjs.map → storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map} +1 -1
  185. package/dist/{types-CRlrNF8_-xtE1f_Ya.mjs → types-4YenawkP-CwaaZSid.mjs} +3 -3
  186. package/dist/{types-CRlrNF8_-xtE1f_Ya.mjs.map → types-4YenawkP-CwaaZSid.mjs.map} +1 -1
  187. package/dist/types-4u1EPYY6.d.mts +1 -0
  188. package/dist/{types-C89S13jo-CGy-V60b.d.mts → types-BDUG29Df-LE85dIXP.d.mts} +7 -6
  189. package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +1 -0
  190. package/dist/{types-CLN9Y3BH-B9xrXW2L.d.mts → types-CLN9Y3BH-BHUrV7MD.d.mts} +10 -10
  191. package/dist/{types-CLN9Y3BH-B9xrXW2L.d.mts.map → types-CLN9Y3BH-BHUrV7MD.d.mts.map} +1 -1
  192. package/dist/{types-DYXr7yN6.mjs → types-CUsJrvEl.mjs} +2 -2
  193. package/dist/{types-DYXr7yN6.mjs.map → types-CUsJrvEl.mjs.map} +1 -1
  194. package/dist/types-Dwcw0F8X.d.mts +1 -0
  195. package/dist/{types-IqZMLrFC-Sr3TZmGu.d.mts → types-IqZMLrFC-Dk3bHKmk.d.mts} +9 -9
  196. package/dist/{types-IqZMLrFC-Sr3TZmGu.d.mts.map → types-IqZMLrFC-Dk3bHKmk.d.mts.map} +1 -1
  197. package/dist/{types-D6ST3Gkf.d.mts → types-UcHa2cTe.d.mts} +7 -6
  198. package/dist/types-UcHa2cTe.d.mts.map +1 -0
  199. package/dist/{types-H7xjfrKl-CHqi_h5i.d.mts → types-YStFFkKs-D9UAmnON.d.mts} +3 -3
  200. package/dist/{types-H7xjfrKl-CHqi_h5i.d.mts.map → types-YStFFkKs-D9UAmnON.d.mts.map} +1 -1
  201. package/dist/{types-ZzeQKmYD-D1hXGIgd.d.mts → types-ZzeQKmYD-kI_QWHEx.d.mts} +2 -2
  202. package/dist/{types-ZzeQKmYD-D1hXGIgd.d.mts.map → types-ZzeQKmYD-kI_QWHEx.d.mts.map} +1 -1
  203. package/dist/{validators-DQHTuehE.d.mts → validators-Belo8QqM.d.mts} +3 -3
  204. package/dist/{validators-DQHTuehE.d.mts.map → validators-Belo8QqM.d.mts.map} +1 -1
  205. package/dist/{validators-Bvxcp487.mjs → validators-CrWD6bSP.mjs} +0 -0
  206. package/dist/{validators-Bvxcp487.mjs.map → validators-CrWD6bSP.mjs.map} +1 -1
  207. package/package.json +19 -18
  208. package/dist/contract-builder-BFN7WSed.mjs.map +0 -1
  209. package/dist/contract-builder-Dqnem9IW.d.mts.map +0 -1
  210. package/dist/control-adapter-CTyZpWUT.d.mts +0 -1
  211. package/dist/derived-checks-CmJgg-N0-CugkINPW.mjs.map +0 -1
  212. package/dist/entity-kinds-DZzdcuU5.d.mts.map +0 -1
  213. package/dist/index-naming-BoGBcMmI-CoehgjMK.mjs.map +0 -1
  214. package/dist/interpreter-BDZ_Y5U--CMEJIQ40.mjs.map +0 -1
  215. package/dist/middleware-Pe2hkf2T.d.mts +0 -1
  216. package/dist/naming-BWkuWJJK-zuGIIJ49.mjs.map +0 -1
  217. package/dist/naming-BsvzQPOq-qOWmknyp.d.mts.map +0 -1
  218. package/dist/plan-DduVZV0X.d.mts +0 -2
  219. package/dist/query-lane-context-DojOMvih.d.mts +0 -1
  220. package/dist/serialized-index-D9YgVREe-KaLdoijn.d.mts.map +0 -1
  221. package/dist/storage-table-BLcRrDzz-D4JOM8FC.d.mts.map +0 -1
  222. package/dist/types-C0QjlN2G.d.mts +0 -1
  223. package/dist/types-C89S13jo-CGy-V60b.d.mts.map +0 -1
  224. package/dist/types-D6ST3Gkf.d.mts.map +0 -1
  225. package/dist/types-yvAngq6d.d.mts +0 -1
@@ -1,4 +1,4 @@
1
- import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-DdIwfSmv.mjs";
1
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-HjRSS3l9.mjs";
2
2
  import { ParamRefMutator } from "@prisma/orm-framework/components/runtime";
3
3
  //#region ../../../2-sql/4-lanes/relational-core/dist/middleware-Bp5oIYM0.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-Bp5oIYM0-9a28aLnt.d.mts.map
119
+ //# sourceMappingURL=middleware-Bp5oIYM0-Ek8bISDH.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware-Bp5oIYM0-9a28aLnt.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-Bp5oIYM0.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-Bp5oIYM0-Ek8bISDH.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/middleware-Bp5oIYM0.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"}
@@ -0,0 +1 @@
1
+ import "./middleware-Bp5oIYM0-Ek8bISDH.mjs";
@@ -1,6 +1,6 @@
1
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-IqZMLrFC-Sr3TZmGu.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { f as SqlMigrationPlanOperation, w as SqlPlanTargetDetails } from "./types-IqZMLrFC-Dk3bHKmk.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-C8MAouav.d.mts.map
44
+ //# sourceMappingURL=migration-Dtymew3g.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-C8MAouav.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-Dtymew3g.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,4 +1,4 @@
1
- //#region ../../../2-sql/1-core/schema-ir/dist/naming-BsvzQPOq.d.mts
1
+ //#region ../../../2-sql/1-core/schema-ir/dist/naming-CV9j2pXl.d.mts
2
2
  //#region src/naming.d.ts
3
3
  declare function defaultIndexName(tableName: string, columns: readonly string[]): string;
4
4
  interface WireName {
@@ -112,6 +112,19 @@ type CheckKind = 'membership' | 'elementNotNull';
112
112
  * multibyte prefixes match by construction.
113
113
  */
114
114
  declare function composeCheckWirePrefix(tableName: string, columnName: string, kind: CheckKind): string;
115
+ /**
116
+ * The wire-name prefixes derivation could produce for `tableName`: every
117
+ * {@link composeCheckWirePrefix} result crossing each of `columnNames` with
118
+ * each {@link CheckKind}. A check is derived iff its prefix is a member of
119
+ * this set.
120
+ *
121
+ * This is the prefix SHAPE only, not the full name-with-hash: it does not
122
+ * know which kind a specific column's type would actually derive (that needs
123
+ * the target's `renderCheckExpressions` hook, which callers of this function
124
+ * do not have in hand), so every column is conservatively treated as capable
125
+ * of producing every kind.
126
+ */
127
+ declare function derivedCheckPrefixes(tableName: string, columnNames: Iterable<string>): ReadonlySet<string>;
115
128
  interface IndexContentHashParts {
116
129
  readonly expression?: string;
117
130
  readonly where?: string;
@@ -169,5 +182,5 @@ declare function assertWireNamePrefixLength(prefix: string, subject: string): vo
169
182
  */
170
183
  declare function truncateToWireNamePrefixBytes(prefix: string): string;
171
184
  //#endregion
172
- export { parseNaming as _, WireName as a, computeCheckContentHash as c, formatWireName as d, nameOf as f, normalizeSqlBody as g, normalizeIndexOptionValue as h, WIRE_NAME_PREFIX_MAX_BYTES as i, computeIndexContentHash as l, namingOfLiveName as m, IndexContentHashParts as n, assertWireNamePrefixLength as o, namingOf as p, SqlObjectNaming as r, composeCheckWirePrefix as s, CheckKind as t, defaultIndexName as u, parseWireName as v, truncateToWireNamePrefixBytes as y };
173
- //# sourceMappingURL=naming-BsvzQPOq-qOWmknyp.d.mts.map
185
+ 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-CV9j2pXl-KARaDReS.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/naming-CV9j2pXl.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;;;;;;;;;;;;;;;;iBAgB7B,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,7 +1,7 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
- import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
3
2
  import { createHash } from "node:crypto";
4
- //#region ../../../2-sql/1-core/schema-ir/dist/naming-BWkuWJJK.mjs
3
+ import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
4
+ //#region ../../../2-sql/1-core/schema-ir/dist/naming-DKr4TJd7.mjs
5
5
  function defaultIndexName(tableName, columns) {
6
6
  return `${tableName}_${columns.join("_")}_idx`;
7
7
  }
@@ -148,6 +148,28 @@ function composeCheckWirePrefix(tableName, columnName, kind) {
148
148
  return truncateToWireNamePrefixBytes(`${tableName}_${columnName}_${CHECK_KIND_SUFFIX[kind]}`);
149
149
  }
150
150
  /**
151
+ * Every {@link CheckKind} value, read off {@link CHECK_KIND_SUFFIX}'s own keys
152
+ * so the enumeration can never drift out of step with it.
153
+ */
154
+ const CHECK_KINDS = Object.keys(CHECK_KIND_SUFFIX).filter((kind) => kind in CHECK_KIND_SUFFIX);
155
+ /**
156
+ * The wire-name prefixes derivation could produce for `tableName`: every
157
+ * {@link composeCheckWirePrefix} result crossing each of `columnNames` with
158
+ * each {@link CheckKind}. A check is derived iff its prefix is a member of
159
+ * this set.
160
+ *
161
+ * This is the prefix SHAPE only, not the full name-with-hash: it does not
162
+ * know which kind a specific column's type would actually derive (that needs
163
+ * the target's `renderCheckExpressions` hook, which callers of this function
164
+ * do not have in hand), so every column is conservatively treated as capable
165
+ * of producing every kind.
166
+ */
167
+ function derivedCheckPrefixes(tableName, columnNames) {
168
+ const prefixes = /* @__PURE__ */ new Set();
169
+ for (const columnName of columnNames) for (const kind of CHECK_KINDS) prefixes.add(composeCheckWirePrefix(tableName, columnName, kind));
170
+ return prefixes;
171
+ }
172
+ /**
151
173
  * Returns the first 8 lowercase hex characters of the SHA-256 digest over the
152
174
  * canonical content tuple for an index:
153
175
  *
@@ -232,6 +254,6 @@ function truncateToWireNamePrefixBytes(prefix) {
232
254
  return out;
233
255
  }
234
256
  //#endregion
235
- export { computeIndexContentHash as a, nameOf as c, normalizeIndexOptionValue as d, normalizeSqlBody as f, truncateToWireNamePrefixBytes as h, computeCheckContentHash as i, namingOf as l, parseWireName as m, assertWireNamePrefixLength as n, defaultIndexName as o, parseNaming as p, composeCheckWirePrefix as r, formatWireName as s, WIRE_NAME_PREFIX_MAX_BYTES as t, namingOfLiveName as u };
257
+ 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 };
236
258
 
237
- //# sourceMappingURL=naming-BWkuWJJK-zuGIIJ49.mjs.map
259
+ //# sourceMappingURL=naming-DKr4TJd7-Cszhq9RV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-DKr4TJd7-Cszhq9RV.mjs","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/naming-DKr4TJd7.mjs"],"sourcesContent":["import { createHash } from \"node:crypto\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { structuredError } from \"@internal/utils/structured-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,\n* RLS policy predicate) for hashing: trim, and collapse runs of internal\n* whitespace to a single space.\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* The normalizer is a stability commitment: any change re-suffixes all wire names.\n*/\nfunction normalizeSqlBody(sql) {\n\treturn sql.replace(/\\s+/g, \" \").trim();\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-DKr4TJd7.mjs.map"],"mappings":";;;;AAIA,SAAS,iBAAiB,WAAW,SAAS;CAC7C,OAAO,GAAG,UAAU,GAAG,QAAQ,KAAK,GAAG,EAAE;AAC1C;;AAEA,SAAS,OAAO,QAAQ;CACvB,OAAO,OAAO,SAAS,SAAS,eAAe,OAAO,QAAQ,OAAO,IAAI,IAAI,OAAO;AACrF;;;;;;;;AAQA,SAAS,SAAS,MAAM,QAAQ;CAC/B,IAAI,WAAW,KAAK,GAAG,OAAO;EAC7B,MAAM;EACN;CACD;CACA,OAAO;EACN,MAAM;EACN;EACA,MAAM,KAAK,MAAM,OAAO,SAAS,CAAC;CACnC;AACD;;;;;;AAMA,SAAS,YAAY,MAAM,QAAQ;CAClC,IAAI,WAAW,KAAK,GAAG,OAAO;EAC7B,MAAM;EACN;CACD;CACA,MAAM,SAAS,cAAc,IAAI;CACjC,IAAI,WAAW,KAAK,KAAK,OAAO,WAAW,QAAQ,MAAM,IAAI,wBAAwB,IAAI,KAAK,aAAa,OAAO,4CAA4C,eAAe,QAAQ,QAAQ,EAAE,MAAM,SAAS;CAC9M,OAAO;EACN,MAAM;EACN,QAAQ,OAAO;EACf,MAAM,OAAO;CACd;AACD;;;;;;;;;;;;;;AAcA,SAAS,iBAAiB,MAAM;CAC/B,MAAM,OAAO,cAAc,IAAI;CAC/B,OAAO,SAAS,KAAK,IAAI;EACxB,MAAM;EACN;CACD,IAAI;EACH,MAAM;EACN,QAAQ,KAAK;EACb,MAAM,KAAK;CACZ;AACD;AACA,MAAM,oBAAoB;;;;;;;AAO1B,SAAS,eAAe,QAAQ,MAAM;CACrC,OAAO,GAAG,OAAO,GAAG;AACrB;;;;;;;;AAQA,SAAS,cAAc,MAAM;CAC5B,MAAM,QAAQ,kBAAkB,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AAK,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,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-DbDTloZS.mjs";
1
+ import { a as SqlOperationRegistry, i as SqlOperationEntry, n as SqlOperationDescriptor, o as createSqlOperationRegistry, r as SqlOperationDescriptors, t as SqlLoweringSpec } from "./index-C5I8D-MB.mjs";
2
2
  export { SqlLoweringSpec, SqlOperationDescriptor, SqlOperationDescriptors, SqlOperationEntry, SqlOperationRegistry, createSqlOperationRegistry };
@@ -1,14 +1,14 @@
1
- import { a as StorageTable, r as StorageColumn } from "./storage-table-BLcRrDzz-D4JOM8FC.mjs";
2
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
3
- import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQueryOperationTypes, u as ExtractCodecTypes } from "./types-C89S13jo-CGy-V60b.mjs";
4
- import "./types-D6ST3Gkf.mjs";
5
- import { Pt as WhereArg, T as CodecRef$1, a as AndExpr, g as BinaryExpr, gt as OrderByItem, ht as OrExpr, pt as NullCheckExpr, r as AggregateFn, s as AnyExpression } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
6
- import "./ast-Px7aAd_0.mjs";
7
- import { a as Expression } from "./expression-E67TGFZA.mjs";
8
- import { r as ExecutionContext } from "./query-lane-context-DyDSQVS--ByM80KpV.mjs";
9
- import "./query-lane-context-DojOMvih.mjs";
10
- import { o as ComputeColumnJsType, y as RuntimeScope } from "./types-CLN9Y3BH-B9xrXW2L.mjs";
11
- import "./types-C0QjlN2G.mjs";
1
+ import { r as StorageTable, t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
2
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
3
+ import { f as ExtractFieldOutputTypes, l as ExtractAggregateTypes, p as ExtractQueryOperationTypes, u as ExtractCodecTypes } from "./types-BDUG29Df-LE85dIXP.mjs";
4
+ import "./types-UcHa2cTe.mjs";
5
+ import { Pt as WhereArg, T as CodecRef$1, a as AndExpr, g as BinaryExpr, gt as OrderByItem, ht as OrExpr, pt as NullCheckExpr, r as AggregateFn, s as AnyExpression } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
6
+ import "./ast-DRbUiQ-9.mjs";
7
+ import { a as Expression } from "./expression-D7H1kyVG.mjs";
8
+ import { r as ExecutionContext } from "./query-lane-context-DyDSQVS--CyCznt67.mjs";
9
+ import "./query-lane-context-qfJzguc9.mjs";
10
+ import { o as ComputeColumnJsType, y as RuntimeScope } from "./types-CLN9Y3BH-BHUrV7MD.mjs";
11
+ import "./types-4u1EPYY6.mjs";
12
12
  import { Contract } from "@prisma/orm-framework/contract/types";
13
13
  import { AnnotationValue, AsyncIterableResult, MetaBuilder, OperationKind } from "@prisma/orm-framework/components/runtime";
14
14
  import { SimplifyDeep } from "@prisma/orm-framework/utils/simplify-deep";
@@ -3,7 +3,7 @@ import { i as isUniqueConstraintViolation } from "./dist-x6jvtkKM.mjs";
3
3
  import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isWhereExpr, V as isAggregateFn, _ as InsertAst, b as JsonArrayAggExpr, c as DeleteAst, f as EqColJoinOn, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst } from "./types-CSP6WmWn-DVuxsZJW.mjs";
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-B-eeN74F.mjs";
6
- import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-DMUcCfyb.mjs";
6
+ import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-N0dhtKaH.mjs";
7
7
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
8
8
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
9
9
  import { domainModelsAtDefaultNamespace } from "@prisma/orm-framework/contract/types";
@@ -1,6 +1,6 @@
1
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { m as AnyQueryAst } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { m as AnyQueryAst } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { QueryPlan } from "@prisma/orm-framework/components/runtime";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/plan-DfLDIdep.d.mts
@@ -42,4 +42,4 @@ interface SqlQueryPlan<Row = unknown> extends QueryPlan<Row> {
42
42
  declare function planFromAst<Row = unknown>(ast: AnyQueryAst, contract: Contract<SqlStorage>, laneId?: string): SqlQueryPlan<Row>;
43
43
  //#endregion
44
44
  export { planFromAst as n, SqlQueryPlan as t };
45
- //# sourceMappingURL=plan-DfLDIdep-CoshEetE.d.mts.map
45
+ //# sourceMappingURL=plan-DfLDIdep-6R1mLkcW.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-DfLDIdep-CoshEetE.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-DfLDIdep.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;;;;;;;;;;;;;;;;;;iBAmBM,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
1
+ {"version":3,"file":"plan-DfLDIdep-6R1mLkcW.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-DfLDIdep.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;;;;;;;;;;;;;;;;;;iBAmBM,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
@@ -0,0 +1,2 @@
1
+ import "./sql-execution-plan-qxvHnFcA-HjRSS3l9.mjs";
2
+ import "./plan-DfLDIdep-6R1mLkcW.mjs";
@@ -1,5 +1,5 @@
1
- import { d as SqlForeignKeyIR, y as SqlTableIR } from "./types-H7xjfrKl-CHqi_h5i.mjs";
2
- import "./types-yvAngq6d.mjs";
1
+ import { d as SqlForeignKeyIR, y as SqlTableIR } from "./types-YStFFkKs-D9UAmnON.mjs";
2
+ import "./types-Dwcw0F8X.mjs";
3
3
  import { ColumnDefault } from "@prisma/orm-framework/contract/types";
4
4
  //#region ../../../2-sql/9-family/dist/psl-infer.d.mts
5
5
  //#region src/core/psl-contract-infer/default-mapping.d.ts
@@ -116,4 +116,4 @@ declare function inferRelations(tables: Record<string, SqlTableIR>, modelNameMap
116
116
  declare function buildChildRelationField(fieldName: string, parentModelName: string, fk: SqlForeignKeyIR, optional: boolean, relationName?: string, hostTable?: SqlTableIR): RelationField;
117
117
  //#endregion
118
118
  export { toEnumMemberName as _, PslPrinterOptions as a, toModelName as b, PslTypeResolution as c, deriveBackRelationFieldName as d, deriveRelationFieldName as f, pluralize as g, parseRawDefault as h, InferredRelations as i, RelationField as l, mapDefault as m, DefaultMappingResult as n, PslTypeMap as o, inferRelations as p, EnumInfo as r, PslTypeReference as s, DefaultMappingOptions as t, buildChildRelationField as u, toEnumName as v, toFieldName as y };
119
- //# sourceMappingURL=psl-infer-DmFgn-Ub.d.mts.map
119
+ //# sourceMappingURL=psl-infer-CCAD6FWA.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-infer-DmFgn-Ub.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/psl-infer.d.mts"],"mappings":";;;;;UAGU;WACC,qBAAqB,SAAS;WAC9B,8BAA8B;;KAEpC;WACM;;WAEA;;iBAEM,WAAW,eAAe,eAAe,UAAU,wBAAwB;;;KAGvF;WACM;WACA;;iBAEM,YAAY,oBAAoB;iBAChC,YAAY,qBAAqB;iBACjC,WAAW,qBAAqB;;;;;;;iBAOhC,iBAAiB;iBACjB,UAAU;iBACV,wBAAwB,8BAA8B;iBACtD,4BAA4B,wBAAwB;;;KAGhE;WACM;WACA;;KAEN;WACM,SAAS;WACT;WACA,aAAa;;WAEb;WACA;;UAED;EACR,QAAQ,oBAAoB,cAAc,0BAA0B;;UAE5D;WACC,WAAW;WACX,aAAa;;UAEd;WACC,SAAS;WACT,iBAAiB;WACjB,WAAW;WACX,mBAAmB,oBAAoB,wBAAwB;;KAErE;WACM;WACA;;;;;;WAMA;;;;;;WAMA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;;;iBAIM,gBAAgB,oBAAoB,sBAAsB;;;KAGtE;WACM,kBAAkB,6BAA6B;;iBAEzC,eAAe,QAAQ,eAAe,aAAa,cAAc,8BAA8B;;;;;;;;;;;;;;;;;;;iBAmB/F,wBAAwB,mBAAmB,yBAAyB,IAAI,iBAAiB,mBAAmB,uBAAuB,YAAY,aAAa"}
1
+ {"version":3,"file":"psl-infer-CCAD6FWA.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/psl-infer.d.mts"],"mappings":";;;;;UAGU;WACC,qBAAqB,SAAS;WAC9B,8BAA8B;;KAEpC;WACM;;WAEA;;iBAEM,WAAW,eAAe,eAAe,UAAU,wBAAwB;;;KAGvF;WACM;WACA;;iBAEM,YAAY,oBAAoB;iBAChC,YAAY,qBAAqB;iBACjC,WAAW,qBAAqB;;;;;;;iBAOhC,iBAAiB;iBACjB,UAAU;iBACV,wBAAwB,8BAA8B;iBACtD,4BAA4B,wBAAwB;;;KAGhE;WACM;WACA;;KAEN;WACM,SAAS;WACT;WACA,aAAa;;WAEb;WACA;;UAED;EACR,QAAQ,oBAAoB,cAAc,0BAA0B;;UAE5D;WACC,WAAW;WACX,aAAa;;UAEd;WACC,SAAS;WACT,iBAAiB;WACjB,WAAW;WACX,mBAAmB,oBAAoB,wBAAwB;;KAErE;WACM;WACA;;;;;;WAMA;;;;;;WAMA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;;;iBAIM,gBAAgB,oBAAoB,sBAAsB;;;KAGtE;WACM,kBAAkB,6BAA6B;;iBAEzC,eAAe,QAAQ,eAAe,aAAa,cAAc,8BAA8B;;;;;;;;;;;;;;;;;;;iBAmB/F,wBAAwB,mBAAmB,yBAAyB,IAAI,iBAAiB,mBAAmB,uBAAuB,YAAY,aAAa"}
@@ -1,4 +1,4 @@
1
- import { n as isBackedByColumnKeys, t as backingIndexColumnKeys } from "./foreign-key-materialization-ziwobURR.mjs";
1
+ import { n as isBackedByColumnKeys, t as backingIndexColumnKeys } from "./foreign-key-materialization-DLOi1Ps0.mjs";
2
2
  import pluralizeLib from "pluralize";
3
3
  //#region ../../../2-sql/9-family/dist/psl-infer.mjs
4
4
  const DEFAULT_FUNCTION_ATTRIBUTES = {
@@ -359,4 +359,4 @@ function addRelationField(map, tableName, field) {
359
359
  //#endregion
360
360
  export { mapDefault as a, toEnumMemberName as c, toModelName as d, inferRelations as i, toEnumName as l, deriveBackRelationFieldName as n, parseRawDefault as o, deriveRelationFieldName as r, pluralize as s, buildChildRelationField as t, toFieldName as u };
361
361
 
362
- //# sourceMappingURL=psl-infer-Z4wA2xpx.mjs.map
362
+ //# sourceMappingURL=psl-infer-YhbKkybN.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-infer-Z4wA2xpx.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/psl-infer.mjs"],"sourcesContent":["import pluralizeLib from \"pluralize\";\nimport { backingIndexColumnKeys, isBackedByColumnKeys } from \"@internal/sql-contract/foreign-key-materialization\";\n//#region src/core/psl-contract-infer/default-mapping.ts\nconst DEFAULT_FUNCTION_ATTRIBUTES = {\n\t\"autoincrement()\": \"@default(autoincrement())\",\n\t\"now()\": \"@default(now())\"\n};\nfunction mapDefault(columnDefault, options) {\n\tswitch (columnDefault.kind) {\n\t\tcase \"literal\": return { attribute: `@default(${formatLiteralValue(columnDefault.value)})` };\n\t\tcase \"function\": {\n\t\t\tconst attribute = options?.functionAttributes?.[columnDefault.expression] ?? DEFAULT_FUNCTION_ATTRIBUTES[columnDefault.expression] ?? options?.fallbackFunctionAttribute?.(columnDefault.expression);\n\t\t\treturn attribute ? { attribute } : { comment: `// Raw default: ${columnDefault.expression.replace(/[\\r\\n]+/g, \" \")}` };\n\t\t}\n\t}\n}\nfunction formatLiteralValue(value) {\n\tif (value === null) return \"null\";\n\tswitch (typeof value) {\n\t\tcase \"boolean\":\n\t\tcase \"number\": return String(value);\n\t\tcase \"string\": return quoteString(value);\n\t\tdefault: return quoteString(JSON.stringify(value));\n\t}\n}\nfunction quoteString(str) {\n\treturn `\"${escapeString(str)}\"`;\n}\nfunction escapeString(str) {\n\treturn JSON.stringify(str).slice(1, -1);\n}\n//#endregion\n//#region src/core/psl-contract-infer/name-transforms.ts\nconst PSL_RESERVED_WORDS = /* @__PURE__ */ new Set([\n\t\"model\",\n\t\"enum\",\n\t\"types\",\n\t\"type\",\n\t\"generator\",\n\t\"datasource\"\n]);\nconst IDENTIFIER_PART_PATTERN = /[A-Za-z0-9]+/g;\nfunction hasSeparators(input) {\n\treturn /[^A-Za-z0-9]/.test(input);\n}\nfunction extractIdentifierParts(input) {\n\treturn input.match(IDENTIFIER_PART_PATTERN) ?? [];\n}\nfunction createSyntheticIdentifier(input) {\n\tlet hash = 2166136261;\n\tfor (const char of input) {\n\t\thash ^= char.codePointAt(0) ?? 0;\n\t\thash = Math.imul(hash, 16777619);\n\t}\n\treturn `x${(hash >>> 0).toString(16)}`;\n}\nfunction sanitizeIdentifierCharacters(input) {\n\tconst sanitized = input.replace(/[^\\w]/g, \"\");\n\treturn sanitized.length > 0 ? sanitized : createSyntheticIdentifier(input);\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1);\n}\nfunction snakeToPascalCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return capitalize(sanitizeIdentifierCharacters(input));\n\treturn parts.map(capitalize).join(\"\");\n}\nfunction snakeToCamelCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return sanitizeIdentifierCharacters(input);\n\tconst [firstPart = input, ...rest] = parts;\n\treturn firstPart.charAt(0).toLowerCase() + firstPart.slice(1) + rest.map(capitalize).join(\"\");\n}\nfunction needsEscaping(name) {\n\treturn PSL_RESERVED_WORDS.has(name.toLowerCase()) || /^\\d/.test(name);\n}\nfunction escapeName(name) {\n\treturn `_${name}`;\n}\nfunction escapeIfNeeded(name) {\n\treturn needsEscaping(name) ? escapeName(name) : name;\n}\nfunction toModelName(tableName) {\n\tlet name;\n\tif (hasSeparators(tableName)) name = snakeToPascalCase(tableName);\n\telse name = tableName.charAt(0).toUpperCase() + tableName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: tableName\n\t};\n\tif (name !== tableName) return {\n\t\tname,\n\t\tmap: tableName\n\t};\n\treturn { name };\n}\nfunction toFieldName(columnName) {\n\tlet name;\n\tif (hasSeparators(columnName)) name = snakeToCamelCase(columnName);\n\telse name = columnName.charAt(0).toLowerCase() + columnName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: columnName\n\t};\n\tif (name !== columnName) return {\n\t\tname,\n\t\tmap: columnName\n\t};\n\treturn { name };\n}\nfunction toEnumName(pgTypeName) {\n\tlet name;\n\tif (hasSeparators(pgTypeName)) name = snakeToPascalCase(pgTypeName);\n\telse name = pgTypeName.charAt(0).toUpperCase() + pgTypeName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: pgTypeName\n\t};\n\tif (name !== pgTypeName) return {\n\t\tname,\n\t\tmap: pgTypeName\n\t};\n\treturn { name };\n}\nconst VALID_IDENTIFIER_PATTERN = /^[A-Za-z_]\\w*$/;\n/**\n* PSL member name for a native-enum value. The value itself always prints\n* explicitly (`member = \"value\"`), so the returned name never needs a map:\n* a value that already is a valid, non-reserved identifier is kept verbatim\n* (case included); anything else is camelCased/escaped like a field name.\n*/\nfunction toEnumMemberName(value) {\n\tif (VALID_IDENTIFIER_PATTERN.test(value) && !needsEscaping(value)) return value;\n\treturn escapeIfNeeded(snakeToCamelCase(value));\n}\nfunction pluralize(word) {\n\treturn pluralizeLib.plural(word);\n}\nfunction deriveRelationFieldName(fkColumns, referencedTableName) {\n\tif (fkColumns.length === 1) {\n\t\tconst [col = referencedTableName] = fkColumns;\n\t\tconst stripped = col.replace(/_id$/i, \"\").replace(/Id$/, \"\");\n\t\tif (stripped.length > 0 && stripped !== col) return escapeIfNeeded(snakeToCamelCase(stripped));\n\t\treturn escapeIfNeeded(snakeToCamelCase(referencedTableName));\n\t}\n\treturn escapeIfNeeded(snakeToCamelCase(referencedTableName));\n}\nfunction deriveBackRelationFieldName(childModelName, isOneToOne) {\n\tconst base = childModelName.charAt(0).toLowerCase() + childModelName.slice(1);\n\treturn isOneToOne ? base : pluralize(base);\n}\n//#endregion\n//#region src/core/psl-contract-infer/raw-default-parser.ts\nconst NEXTVAL_PATTERN = /^nextval\\s*\\(/i;\nconst NOW_FUNCTION_PATTERN = /^(now\\s*\\(\\s*\\)|CURRENT_TIMESTAMP)$/i;\nconst CLOCK_TIMESTAMP_PATTERN = /^clock_timestamp\\s*\\(\\s*\\)$/i;\nconst TIMESTAMP_CAST_SUFFIX = /::timestamp(?:tz|\\s+(?:with|without)\\s+time\\s+zone)?$/i;\nconst TEXT_CAST_SUFFIX = /::text$/i;\nconst NOW_LITERAL_PATTERN = /^'now'$/i;\nconst UUID_PATTERN = /^gen_random_uuid\\s*\\(\\s*\\)$/i;\nconst UUID_OSSP_PATTERN = /^uuid_generate_v4\\s*\\(\\s*\\)$/i;\nconst NULL_PATTERN = /^NULL(?:::.+)?$/i;\nconst TRUE_PATTERN = /^true$/i;\nconst FALSE_PATTERN = /^false$/i;\nconst NUMERIC_PATTERN = /^-?\\d+(\\.\\d+)?$/;\nconst JSON_CAST_SUFFIX = /::jsonb?$/i;\nconst STRING_LITERAL_PATTERN = /^'((?:[^']|'')*)'(?:::(?:\"[^\"]+\"|[\\w\\s]+)(?:\\(\\d+\\))?)?$/;\nfunction canonicalizeTimestampDefault(expr) {\n\tif (NOW_FUNCTION_PATTERN.test(expr)) return \"now()\";\n\tif (CLOCK_TIMESTAMP_PATTERN.test(expr)) return \"clock_timestamp()\";\n\tif (!TIMESTAMP_CAST_SUFFIX.test(expr)) return void 0;\n\tlet inner = expr.replace(TIMESTAMP_CAST_SUFFIX, \"\").trim();\n\tif (inner.startsWith(\"(\") && inner.endsWith(\")\")) inner = inner.slice(1, -1).trim();\n\tif (NOW_FUNCTION_PATTERN.test(inner)) return \"now()\";\n\tif (CLOCK_TIMESTAMP_PATTERN.test(inner)) return \"clock_timestamp()\";\n\tinner = inner.replace(TEXT_CAST_SUFFIX, \"\").trim();\n\tif (NOW_LITERAL_PATTERN.test(inner)) return \"now()\";\n}\nfunction parseRawDefault(rawDefault, nativeType) {\n\tconst trimmed = rawDefault.trim();\n\tconst normalizedType = nativeType?.toLowerCase();\n\tif (NEXTVAL_PATTERN.test(trimmed)) return {\n\t\tkind: \"function\",\n\t\texpression: \"autoincrement()\"\n\t};\n\tconst canonicalTimestamp = canonicalizeTimestampDefault(trimmed);\n\tif (canonicalTimestamp) return {\n\t\tkind: \"function\",\n\t\texpression: canonicalTimestamp\n\t};\n\tif (UUID_PATTERN.test(trimmed) || UUID_OSSP_PATTERN.test(trimmed)) return {\n\t\tkind: \"function\",\n\t\texpression: \"gen_random_uuid()\"\n\t};\n\tif (NULL_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: null\n\t};\n\tif (TRUE_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: true\n\t};\n\tif (FALSE_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: false\n\t};\n\tif (NUMERIC_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: Number(trimmed)\n\t};\n\tconst stringMatch = trimmed.match(STRING_LITERAL_PATTERN);\n\tif (stringMatch?.[1] !== void 0) {\n\t\tconst unescaped = stringMatch[1].replace(/''/g, \"'\");\n\t\tif (normalizedType === \"json\" || normalizedType === \"jsonb\") {\n\t\t\tif (JSON_CAST_SUFFIX.test(trimmed)) return {\n\t\t\t\tkind: \"function\",\n\t\t\t\texpression: trimmed\n\t\t\t};\n\t\t\ttry {\n\t\t\t\treturn {\n\t\t\t\t\tkind: \"literal\",\n\t\t\t\t\tvalue: JSON.parse(unescaped)\n\t\t\t\t};\n\t\t\t} catch {}\n\t\t}\n\t\treturn {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: unescaped\n\t\t};\n\t}\n\treturn {\n\t\tkind: \"function\",\n\t\texpression: trimmed\n\t};\n}\n//#endregion\n//#region src/core/psl-contract-infer/relation-inference.ts\nconst DEFAULT_ON_DELETE = \"noAction\";\nconst DEFAULT_ON_UPDATE = \"noAction\";\nconst REFERENTIAL_ACTION_PSL = {\n\tnoAction: \"NoAction\",\n\trestrict: \"Restrict\",\n\tcascade: \"Cascade\",\n\tsetNull: \"SetNull\",\n\tsetDefault: \"SetDefault\"\n};\nfunction inferRelations(tables, modelNameMap) {\n\tconst relationsByTable = /* @__PURE__ */ new Map();\n\tconst fkCountByPair = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(tables)) for (const fk of table.foreignKeys) {\n\t\tconst pairKey = `${table.name}→${fk.referencedTable}`;\n\t\tfkCountByPair.set(pairKey, (fkCountByPair.get(pairKey) ?? 0) + 1);\n\t}\n\tconst usedFieldNames = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(tables)) {\n\t\tconst names = /* @__PURE__ */ new Set();\n\t\tfor (const col of Object.values(table.columns)) names.add(col.name);\n\t\tusedFieldNames.set(table.name, names);\n\t}\n\tfor (const table of Object.values(tables)) for (const fk of table.foreignKeys) {\n\t\tconst childTableName = table.name;\n\t\tconst parentTableName = fk.referencedTable;\n\t\tconst childUsed = usedFieldNames.get(childTableName);\n\t\tconst childModelName = modelNameMap.get(childTableName) ?? childTableName;\n\t\tconst parentModelName = modelNameMap.get(parentTableName) ?? parentTableName;\n\t\tconst pairKey = `${childTableName}→${parentTableName}`;\n\t\tconst isSelfRelation = childTableName === parentTableName;\n\t\tconst needsRelationName = fkCountByPair.get(pairKey) > 1 || isSelfRelation;\n\t\tconst isOneToOne = detectOneToOne(fk, table);\n\t\tconst childRelFieldName = resolveUniqueFieldName(deriveRelationFieldName(fk.columns, parentTableName), childUsed, parentModelName);\n\t\tconst relationName = needsRelationName ? deriveRelationName(fk, childRelFieldName, parentModelName, isSelfRelation) : void 0;\n\t\taddRelationField(relationsByTable, childTableName, buildChildRelationField(childRelFieldName, parentModelName, fk, fk.columns.some((columnName) => table.columns[columnName]?.nullable ?? false), relationName, table));\n\t\tchildUsed.add(childRelFieldName);\n\t\tconst parentUsed = usedFieldNames.get(parentTableName) ?? /* @__PURE__ */ new Set();\n\t\tusedFieldNames.set(parentTableName, parentUsed);\n\t\tconst backRelFieldName = resolveUniqueFieldName(deriveBackRelationFieldName(childModelName, isOneToOne), parentUsed, childModelName);\n\t\taddRelationField(relationsByTable, parentTableName, {\n\t\t\tfieldName: backRelFieldName,\n\t\t\ttypeName: childModelName,\n\t\t\toptional: isOneToOne,\n\t\t\tlist: !isOneToOne,\n\t\t\trelationName\n\t\t});\n\t\tparentUsed.add(backRelFieldName);\n\t}\n\treturn { relationsByTable };\n}\nfunction detectOneToOne(fk, table) {\n\tconst fkCols = [...fk.columns].sort();\n\tif (table.primaryKey) {\n\t\tconst pkCols = [...table.primaryKey.columns].sort();\n\t\tif (pkCols.length === fkCols.length && pkCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\tfor (const unique of table.uniques) {\n\t\tconst uniqueCols = [...unique.columns].sort();\n\t\tif (uniqueCols.length === fkCols.length && uniqueCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\tfor (const index of table.indexes) {\n\t\tif (!index.unique || index.partial || index.columns === void 0) continue;\n\t\tconst indexCols = [...index.columns].sort();\n\t\tif (indexCols.length === fkCols.length && indexCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\treturn false;\n}\nfunction deriveRelationName(fk, childRelationFieldName, parentModelName, isSelfRelation) {\n\tif (fk.name) return fk.name;\n\tif (isSelfRelation) return `${childRelationFieldName.charAt(0).toUpperCase() + childRelationFieldName.slice(1)}${pluralize(parentModelName)}`;\n\treturn fk.columns.join(\"_\");\n}\n/**\n* Builds the child-side {@link RelationField} for a single foreign key:\n* `typeName` is the parent model name, `fields`/`references` are the FK's raw\n* columns, and `onDelete`/`onUpdate` are normalized to their PSL spelling.\n* Exported so a caller resolving a foreign key against a model outside\n* `tables` (e.g. a cross-space reference into another contract) can reuse the\n* same normalization instead of duplicating it.\n*\n* `hostTable` is the table the FK is declared on (i.e. `table`, not the\n* referenced parent) — its own indexes/uniques/primary key are what a\n* backing index for this FK would be. When none of them exactly match the\n* FK's source columns (in order), `index: false` is stamped so the emitted\n* `@relation` opts out of the framework's default derived backing-index\n* expectation, matching what `db verify` will find live. Passing the table\n* is optional so existing single-FK callers (e.g. cross-space resolution\n* before a host table reference is threaded through) can omit it and keep\n* the framework default.\n*/\nfunction buildChildRelationField(fieldName, parentModelName, fk, optional, relationName, hostTable) {\n\tconst onDelete = fk.onDelete && fk.onDelete !== DEFAULT_ON_DELETE ? fk.onDelete : void 0;\n\tconst onUpdate = fk.onUpdate && fk.onUpdate !== DEFAULT_ON_UPDATE ? fk.onUpdate : void 0;\n\tconst index = hostTable && !isBackedByColumnKeys(fk.columns, backingIndexColumnKeys({\n\t\tindexes: hostTable.indexes.filter((i) => i.where === void 0),\n\t\tuniques: hostTable.uniques,\n\t\tprimaryKey: hostTable.primaryKey\n\t})) ? false : void 0;\n\treturn {\n\t\tfieldName,\n\t\ttypeName: parentModelName,\n\t\treferencedTableName: fk.referencedTable,\n\t\toptional,\n\t\tlist: false,\n\t\trelationName,\n\t\tfkName: fk.name,\n\t\tfields: fk.columns,\n\t\treferences: fk.referencedColumns,\n\t\tonDelete: onDelete ? REFERENTIAL_ACTION_PSL[onDelete] : void 0,\n\t\tonUpdate: onUpdate ? REFERENTIAL_ACTION_PSL[onUpdate] : void 0,\n\t\tindex\n\t};\n}\nfunction resolveUniqueFieldName(desired, usedNames, fallbackSuffix) {\n\tif (!usedNames.has(desired)) return desired;\n\tconst withSuffix = `${desired}${fallbackSuffix}`;\n\tif (!usedNames.has(withSuffix)) return withSuffix;\n\tlet counter = 2;\n\twhile (usedNames.has(`${desired}${counter}`)) counter++;\n\treturn `${desired}${counter}`;\n}\nfunction addRelationField(map, tableName, field) {\n\tconst existing = map.get(tableName);\n\tif (existing) existing.push(field);\n\telse map.set(tableName, [field]);\n}\n//#endregion\nexport { buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, mapDefault, parseRawDefault, pluralize, toEnumMemberName, toEnumName, toFieldName, toModelName };\n\n//# sourceMappingURL=psl-infer.mjs.map"],"mappings":";;;AAGA,MAAM,8BAA8B;CACnC,mBAAmB;CACnB,SAAS;AACV;AACA,SAAS,WAAW,eAAe,SAAS;CAC3C,QAAQ,cAAc,MAAtB;EACC,KAAK,WAAW,OAAO,EAAE,WAAW,YAAY,mBAAmB,cAAc,KAAK,EAAE,GAAG;EAC3F,KAAK,YAAY;GAChB,MAAM,YAAY,SAAS,qBAAqB,cAAc,eAAe,4BAA4B,cAAc,eAAe,SAAS,4BAA4B,cAAc,UAAU;GACnM,OAAO,YAAY,EAAE,UAAU,IAAI,EAAE,SAAS,mBAAmB,cAAc,WAAW,QAAQ,YAAY,GAAG,IAAI;EACtH;CACD;AACD;AACA,SAAS,mBAAmB,OAAO;CAClC,IAAI,UAAU,MAAM,OAAO;CAC3B,QAAQ,OAAO,OAAf;EACC,KAAK;EACL,KAAK,UAAU,OAAO,OAAO,KAAK;EAClC,KAAK,UAAU,OAAO,YAAY,KAAK;EACvC,SAAS,OAAO,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AAU,GAAG,OAAO;CACvC,IAAI,UAAU;CACd,OAAO,UAAU,IAAI,GAAG,UAAU,SAAS,GAAG;CAC9C,OAAO,GAAG,UAAU;AACrB;AACA,SAAS,iBAAiB,KAAK,WAAW,OAAO;CAChD,MAAM,WAAW,IAAI,IAAI,SAAS;CAClC,IAAI,UAAU,SAAS,KAAK,KAAK;MAC5B,IAAI,IAAI,WAAW,CAAC,KAAK,CAAC;AAChC"}
1
+ {"version":3,"file":"psl-infer-YhbKkybN.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/psl-infer.mjs"],"sourcesContent":["import pluralizeLib from \"pluralize\";\nimport { backingIndexColumnKeys, isBackedByColumnKeys } from \"@internal/sql-contract/foreign-key-materialization\";\n//#region src/core/psl-contract-infer/default-mapping.ts\nconst DEFAULT_FUNCTION_ATTRIBUTES = {\n\t\"autoincrement()\": \"@default(autoincrement())\",\n\t\"now()\": \"@default(now())\"\n};\nfunction mapDefault(columnDefault, options) {\n\tswitch (columnDefault.kind) {\n\t\tcase \"literal\": return { attribute: `@default(${formatLiteralValue(columnDefault.value)})` };\n\t\tcase \"function\": {\n\t\t\tconst attribute = options?.functionAttributes?.[columnDefault.expression] ?? DEFAULT_FUNCTION_ATTRIBUTES[columnDefault.expression] ?? options?.fallbackFunctionAttribute?.(columnDefault.expression);\n\t\t\treturn attribute ? { attribute } : { comment: `// Raw default: ${columnDefault.expression.replace(/[\\r\\n]+/g, \" \")}` };\n\t\t}\n\t}\n}\nfunction formatLiteralValue(value) {\n\tif (value === null) return \"null\";\n\tswitch (typeof value) {\n\t\tcase \"boolean\":\n\t\tcase \"number\": return String(value);\n\t\tcase \"string\": return quoteString(value);\n\t\tdefault: return quoteString(JSON.stringify(value));\n\t}\n}\nfunction quoteString(str) {\n\treturn `\"${escapeString(str)}\"`;\n}\nfunction escapeString(str) {\n\treturn JSON.stringify(str).slice(1, -1);\n}\n//#endregion\n//#region src/core/psl-contract-infer/name-transforms.ts\nconst PSL_RESERVED_WORDS = /* @__PURE__ */ new Set([\n\t\"model\",\n\t\"enum\",\n\t\"types\",\n\t\"type\",\n\t\"generator\",\n\t\"datasource\"\n]);\nconst IDENTIFIER_PART_PATTERN = /[A-Za-z0-9]+/g;\nfunction hasSeparators(input) {\n\treturn /[^A-Za-z0-9]/.test(input);\n}\nfunction extractIdentifierParts(input) {\n\treturn input.match(IDENTIFIER_PART_PATTERN) ?? [];\n}\nfunction createSyntheticIdentifier(input) {\n\tlet hash = 2166136261;\n\tfor (const char of input) {\n\t\thash ^= char.codePointAt(0) ?? 0;\n\t\thash = Math.imul(hash, 16777619);\n\t}\n\treturn `x${(hash >>> 0).toString(16)}`;\n}\nfunction sanitizeIdentifierCharacters(input) {\n\tconst sanitized = input.replace(/[^\\w]/g, \"\");\n\treturn sanitized.length > 0 ? sanitized : createSyntheticIdentifier(input);\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1);\n}\nfunction snakeToPascalCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return capitalize(sanitizeIdentifierCharacters(input));\n\treturn parts.map(capitalize).join(\"\");\n}\nfunction snakeToCamelCase(input) {\n\tconst parts = extractIdentifierParts(input);\n\tif (parts.length === 0) return sanitizeIdentifierCharacters(input);\n\tconst [firstPart = input, ...rest] = parts;\n\treturn firstPart.charAt(0).toLowerCase() + firstPart.slice(1) + rest.map(capitalize).join(\"\");\n}\nfunction needsEscaping(name) {\n\treturn PSL_RESERVED_WORDS.has(name.toLowerCase()) || /^\\d/.test(name);\n}\nfunction escapeName(name) {\n\treturn `_${name}`;\n}\nfunction escapeIfNeeded(name) {\n\treturn needsEscaping(name) ? escapeName(name) : name;\n}\nfunction toModelName(tableName) {\n\tlet name;\n\tif (hasSeparators(tableName)) name = snakeToPascalCase(tableName);\n\telse name = tableName.charAt(0).toUpperCase() + tableName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: tableName\n\t};\n\tif (name !== tableName) return {\n\t\tname,\n\t\tmap: tableName\n\t};\n\treturn { name };\n}\nfunction toFieldName(columnName) {\n\tlet name;\n\tif (hasSeparators(columnName)) name = snakeToCamelCase(columnName);\n\telse name = columnName.charAt(0).toLowerCase() + columnName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: columnName\n\t};\n\tif (name !== columnName) return {\n\t\tname,\n\t\tmap: columnName\n\t};\n\treturn { name };\n}\nfunction toEnumName(pgTypeName) {\n\tlet name;\n\tif (hasSeparators(pgTypeName)) name = snakeToPascalCase(pgTypeName);\n\telse name = pgTypeName.charAt(0).toUpperCase() + pgTypeName.slice(1);\n\tif (needsEscaping(name)) return {\n\t\tname: escapeName(name),\n\t\tmap: pgTypeName\n\t};\n\tif (name !== pgTypeName) return {\n\t\tname,\n\t\tmap: pgTypeName\n\t};\n\treturn { name };\n}\nconst VALID_IDENTIFIER_PATTERN = /^[A-Za-z_]\\w*$/;\n/**\n* PSL member name for a native-enum value. The value itself always prints\n* explicitly (`member = \"value\"`), so the returned name never needs a map:\n* a value that already is a valid, non-reserved identifier is kept verbatim\n* (case included); anything else is camelCased/escaped like a field name.\n*/\nfunction toEnumMemberName(value) {\n\tif (VALID_IDENTIFIER_PATTERN.test(value) && !needsEscaping(value)) return value;\n\treturn escapeIfNeeded(snakeToCamelCase(value));\n}\nfunction pluralize(word) {\n\treturn pluralizeLib.plural(word);\n}\nfunction deriveRelationFieldName(fkColumns, referencedTableName) {\n\tif (fkColumns.length === 1) {\n\t\tconst [col = referencedTableName] = fkColumns;\n\t\tconst stripped = col.replace(/_id$/i, \"\").replace(/Id$/, \"\");\n\t\tif (stripped.length > 0 && stripped !== col) return escapeIfNeeded(snakeToCamelCase(stripped));\n\t\treturn escapeIfNeeded(snakeToCamelCase(referencedTableName));\n\t}\n\treturn escapeIfNeeded(snakeToCamelCase(referencedTableName));\n}\nfunction deriveBackRelationFieldName(childModelName, isOneToOne) {\n\tconst base = childModelName.charAt(0).toLowerCase() + childModelName.slice(1);\n\treturn isOneToOne ? base : pluralize(base);\n}\n//#endregion\n//#region src/core/psl-contract-infer/raw-default-parser.ts\nconst NEXTVAL_PATTERN = /^nextval\\s*\\(/i;\nconst NOW_FUNCTION_PATTERN = /^(now\\s*\\(\\s*\\)|CURRENT_TIMESTAMP)$/i;\nconst CLOCK_TIMESTAMP_PATTERN = /^clock_timestamp\\s*\\(\\s*\\)$/i;\nconst TIMESTAMP_CAST_SUFFIX = /::timestamp(?:tz|\\s+(?:with|without)\\s+time\\s+zone)?$/i;\nconst TEXT_CAST_SUFFIX = /::text$/i;\nconst NOW_LITERAL_PATTERN = /^'now'$/i;\nconst UUID_PATTERN = /^gen_random_uuid\\s*\\(\\s*\\)$/i;\nconst UUID_OSSP_PATTERN = /^uuid_generate_v4\\s*\\(\\s*\\)$/i;\nconst NULL_PATTERN = /^NULL(?:::.+)?$/i;\nconst TRUE_PATTERN = /^true$/i;\nconst FALSE_PATTERN = /^false$/i;\nconst NUMERIC_PATTERN = /^-?\\d+(\\.\\d+)?$/;\nconst JSON_CAST_SUFFIX = /::jsonb?$/i;\nconst STRING_LITERAL_PATTERN = /^'((?:[^']|'')*)'(?:::(?:\"[^\"]+\"|[\\w\\s]+)(?:\\(\\d+\\))?)?$/;\nfunction canonicalizeTimestampDefault(expr) {\n\tif (NOW_FUNCTION_PATTERN.test(expr)) return \"now()\";\n\tif (CLOCK_TIMESTAMP_PATTERN.test(expr)) return \"clock_timestamp()\";\n\tif (!TIMESTAMP_CAST_SUFFIX.test(expr)) return void 0;\n\tlet inner = expr.replace(TIMESTAMP_CAST_SUFFIX, \"\").trim();\n\tif (inner.startsWith(\"(\") && inner.endsWith(\")\")) inner = inner.slice(1, -1).trim();\n\tif (NOW_FUNCTION_PATTERN.test(inner)) return \"now()\";\n\tif (CLOCK_TIMESTAMP_PATTERN.test(inner)) return \"clock_timestamp()\";\n\tinner = inner.replace(TEXT_CAST_SUFFIX, \"\").trim();\n\tif (NOW_LITERAL_PATTERN.test(inner)) return \"now()\";\n}\nfunction parseRawDefault(rawDefault, nativeType) {\n\tconst trimmed = rawDefault.trim();\n\tconst normalizedType = nativeType?.toLowerCase();\n\tif (NEXTVAL_PATTERN.test(trimmed)) return {\n\t\tkind: \"function\",\n\t\texpression: \"autoincrement()\"\n\t};\n\tconst canonicalTimestamp = canonicalizeTimestampDefault(trimmed);\n\tif (canonicalTimestamp) return {\n\t\tkind: \"function\",\n\t\texpression: canonicalTimestamp\n\t};\n\tif (UUID_PATTERN.test(trimmed) || UUID_OSSP_PATTERN.test(trimmed)) return {\n\t\tkind: \"function\",\n\t\texpression: \"gen_random_uuid()\"\n\t};\n\tif (NULL_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: null\n\t};\n\tif (TRUE_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: true\n\t};\n\tif (FALSE_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: false\n\t};\n\tif (NUMERIC_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tvalue: Number(trimmed)\n\t};\n\tconst stringMatch = trimmed.match(STRING_LITERAL_PATTERN);\n\tif (stringMatch?.[1] !== void 0) {\n\t\tconst unescaped = stringMatch[1].replace(/''/g, \"'\");\n\t\tif (normalizedType === \"json\" || normalizedType === \"jsonb\") {\n\t\t\tif (JSON_CAST_SUFFIX.test(trimmed)) return {\n\t\t\t\tkind: \"function\",\n\t\t\t\texpression: trimmed\n\t\t\t};\n\t\t\ttry {\n\t\t\t\treturn {\n\t\t\t\t\tkind: \"literal\",\n\t\t\t\t\tvalue: JSON.parse(unescaped)\n\t\t\t\t};\n\t\t\t} catch {}\n\t\t}\n\t\treturn {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: unescaped\n\t\t};\n\t}\n\treturn {\n\t\tkind: \"function\",\n\t\texpression: trimmed\n\t};\n}\n//#endregion\n//#region src/core/psl-contract-infer/relation-inference.ts\nconst DEFAULT_ON_DELETE = \"noAction\";\nconst DEFAULT_ON_UPDATE = \"noAction\";\nconst REFERENTIAL_ACTION_PSL = {\n\tnoAction: \"NoAction\",\n\trestrict: \"Restrict\",\n\tcascade: \"Cascade\",\n\tsetNull: \"SetNull\",\n\tsetDefault: \"SetDefault\"\n};\nfunction inferRelations(tables, modelNameMap) {\n\tconst relationsByTable = /* @__PURE__ */ new Map();\n\tconst fkCountByPair = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(tables)) for (const fk of table.foreignKeys) {\n\t\tconst pairKey = `${table.name}→${fk.referencedTable}`;\n\t\tfkCountByPair.set(pairKey, (fkCountByPair.get(pairKey) ?? 0) + 1);\n\t}\n\tconst usedFieldNames = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(tables)) {\n\t\tconst names = /* @__PURE__ */ new Set();\n\t\tfor (const col of Object.values(table.columns)) names.add(col.name);\n\t\tusedFieldNames.set(table.name, names);\n\t}\n\tfor (const table of Object.values(tables)) for (const fk of table.foreignKeys) {\n\t\tconst childTableName = table.name;\n\t\tconst parentTableName = fk.referencedTable;\n\t\tconst childUsed = usedFieldNames.get(childTableName);\n\t\tconst childModelName = modelNameMap.get(childTableName) ?? childTableName;\n\t\tconst parentModelName = modelNameMap.get(parentTableName) ?? parentTableName;\n\t\tconst pairKey = `${childTableName}→${parentTableName}`;\n\t\tconst isSelfRelation = childTableName === parentTableName;\n\t\tconst needsRelationName = fkCountByPair.get(pairKey) > 1 || isSelfRelation;\n\t\tconst isOneToOne = detectOneToOne(fk, table);\n\t\tconst childRelFieldName = resolveUniqueFieldName(deriveRelationFieldName(fk.columns, parentTableName), childUsed, parentModelName);\n\t\tconst relationName = needsRelationName ? deriveRelationName(fk, childRelFieldName, parentModelName, isSelfRelation) : void 0;\n\t\taddRelationField(relationsByTable, childTableName, buildChildRelationField(childRelFieldName, parentModelName, fk, fk.columns.some((columnName) => table.columns[columnName]?.nullable ?? false), relationName, table));\n\t\tchildUsed.add(childRelFieldName);\n\t\tconst parentUsed = usedFieldNames.get(parentTableName) ?? /* @__PURE__ */ new Set();\n\t\tusedFieldNames.set(parentTableName, parentUsed);\n\t\tconst backRelFieldName = resolveUniqueFieldName(deriveBackRelationFieldName(childModelName, isOneToOne), parentUsed, childModelName);\n\t\taddRelationField(relationsByTable, parentTableName, {\n\t\t\tfieldName: backRelFieldName,\n\t\t\ttypeName: childModelName,\n\t\t\toptional: isOneToOne,\n\t\t\tlist: !isOneToOne,\n\t\t\trelationName\n\t\t});\n\t\tparentUsed.add(backRelFieldName);\n\t}\n\treturn { relationsByTable };\n}\nfunction detectOneToOne(fk, table) {\n\tconst fkCols = [...fk.columns].sort();\n\tif (table.primaryKey) {\n\t\tconst pkCols = [...table.primaryKey.columns].sort();\n\t\tif (pkCols.length === fkCols.length && pkCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\tfor (const unique of table.uniques) {\n\t\tconst uniqueCols = [...unique.columns].sort();\n\t\tif (uniqueCols.length === fkCols.length && uniqueCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\tfor (const index of table.indexes) {\n\t\tif (!index.unique || index.partial || index.columns === void 0) continue;\n\t\tconst indexCols = [...index.columns].sort();\n\t\tif (indexCols.length === fkCols.length && indexCols.every((c, i) => c === fkCols[i])) return true;\n\t}\n\treturn false;\n}\nfunction deriveRelationName(fk, childRelationFieldName, parentModelName, isSelfRelation) {\n\tif (fk.name) return fk.name;\n\tif (isSelfRelation) return `${childRelationFieldName.charAt(0).toUpperCase() + childRelationFieldName.slice(1)}${pluralize(parentModelName)}`;\n\treturn fk.columns.join(\"_\");\n}\n/**\n* Builds the child-side {@link RelationField} for a single foreign key:\n* `typeName` is the parent model name, `fields`/`references` are the FK's raw\n* columns, and `onDelete`/`onUpdate` are normalized to their PSL spelling.\n* Exported so a caller resolving a foreign key against a model outside\n* `tables` (e.g. a cross-space reference into another contract) can reuse the\n* same normalization instead of duplicating it.\n*\n* `hostTable` is the table the FK is declared on (i.e. `table`, not the\n* referenced parent) — its own indexes/uniques/primary key are what a\n* backing index for this FK would be. When none of them exactly match the\n* FK's source columns (in order), `index: false` is stamped so the emitted\n* `@relation` opts out of the framework's default derived backing-index\n* expectation, matching what `db verify` will find live. Passing the table\n* is optional so existing single-FK callers (e.g. cross-space resolution\n* before a host table reference is threaded through) can omit it and keep\n* the framework default.\n*/\nfunction buildChildRelationField(fieldName, parentModelName, fk, optional, relationName, hostTable) {\n\tconst onDelete = fk.onDelete && fk.onDelete !== DEFAULT_ON_DELETE ? fk.onDelete : void 0;\n\tconst onUpdate = fk.onUpdate && fk.onUpdate !== DEFAULT_ON_UPDATE ? fk.onUpdate : void 0;\n\tconst index = hostTable && !isBackedByColumnKeys(fk.columns, backingIndexColumnKeys({\n\t\tindexes: hostTable.indexes.filter((i) => i.where === void 0),\n\t\tuniques: hostTable.uniques,\n\t\tprimaryKey: hostTable.primaryKey\n\t})) ? false : void 0;\n\treturn {\n\t\tfieldName,\n\t\ttypeName: parentModelName,\n\t\treferencedTableName: fk.referencedTable,\n\t\toptional,\n\t\tlist: false,\n\t\trelationName,\n\t\tfkName: fk.name,\n\t\tfields: fk.columns,\n\t\treferences: fk.referencedColumns,\n\t\tonDelete: onDelete ? REFERENTIAL_ACTION_PSL[onDelete] : void 0,\n\t\tonUpdate: onUpdate ? REFERENTIAL_ACTION_PSL[onUpdate] : void 0,\n\t\tindex\n\t};\n}\nfunction resolveUniqueFieldName(desired, usedNames, fallbackSuffix) {\n\tif (!usedNames.has(desired)) return desired;\n\tconst withSuffix = `${desired}${fallbackSuffix}`;\n\tif (!usedNames.has(withSuffix)) return withSuffix;\n\tlet counter = 2;\n\twhile (usedNames.has(`${desired}${counter}`)) counter++;\n\treturn `${desired}${counter}`;\n}\nfunction addRelationField(map, tableName, field) {\n\tconst existing = map.get(tableName);\n\tif (existing) existing.push(field);\n\telse map.set(tableName, [field]);\n}\n//#endregion\nexport { buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, mapDefault, parseRawDefault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G,aAAa,oBAAoB,GAAG,WAAW,KAAK;CACvF,MAAM,WAAW,GAAG,YAAY,GAAG,aAAa,oBAAoB,GAAG,WAAW,KAAK;CACvF,MAAM,QAAQ,aAAa,CAAC,qBAAqB,GAAG,SAAS,uBAAuB;EACnF,SAAS,UAAU,QAAQ,QAAQ,MAAM,EAAE,UAAU,KAAK,CAAC;EAC3D,SAAS,UAAU;EACnB,YAAY,UAAU;CACvB,CAAC,CAAC,IAAI,QAAQ,KAAK;CACnB,OAAO;EACN;EACA,UAAU;EACV,qBAAqB,GAAG;EACxB;EACA,MAAM;EACN;EACA,QAAQ,GAAG;EACX,QAAQ,GAAG;EACX,YAAY,GAAG;EACf,UAAU,WAAW,uBAAuB,YAAY,KAAK;EAC7D,UAAU,WAAW,uBAAuB,YAAY,KAAK;EAC7D;CACD;AACD;AACA,SAAS,uBAAuB,SAAS,WAAW,gBAAgB;CACnE,IAAI,CAAC,UAAU,IAAI,OAAO,GAAG,OAAO;CACpC,MAAM,aAAa,GAAG,UAAU;CAChC,IAAI,CAAC,UAAU,IAAI,UAAU,GAAG,OAAO;CACvC,IAAI,UAAU;CACd,OAAO,UAAU,IAAI,GAAG,UAAU,SAAS,GAAG;CAC9C,OAAO,GAAG,UAAU;AACrB;AACA,SAAS,iBAAiB,KAAK,WAAW,OAAO;CAChD,MAAM,WAAW,IAAI,IAAI,SAAS;CAClC,IAAI,UAAU,SAAS,KAAK,KAAK;MAC5B,IAAI,IAAI,WAAW,CAAC,KAAK,CAAC;AAChC"}
@@ -1,7 +1,7 @@
1
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { a as SqlOperationRegistry } from "./index-DbDTloZS.mjs";
4
- import { O as ContractCodecRegistry, s as AnyExpression } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { a as SqlOperationRegistry } from "./index-C5I8D-MB.mjs";
4
+ import { O as ContractCodecRegistry, s as AnyExpression } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
5
5
  import { Contract } from "@prisma/orm-framework/contract/types";
6
6
  import { AggregateDescriptor, AggregateResultNullability } from "@prisma/orm-framework/components/components";
7
7
  import { CodecDescriptor, CodecRef } from "@prisma/orm-framework/components/codec";
@@ -148,4 +148,4 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
148
148
  }
149
149
  //#endregion
150
150
  export { MutationDefaultsOptions as a, SqlAggregateDescriptorRegistry as c, TypeHelperRegistry as d, isSqlAggregateDescriptor as f, MutationDefaultsOp as i, SqlAggregateLowering as l, CodecDescriptorRegistry as n, ResolvedSqlAggregate as o, ExecutionContext as r, SqlAggregateDescriptor as s, AppliedMutationDefault as t, SqlAggregateLoweringContext as u };
151
- //# sourceMappingURL=query-lane-context-DyDSQVS--ByM80KpV.d.mts.map
151
+ //# sourceMappingURL=query-lane-context-DyDSQVS--CyCznt67.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-lane-context-DyDSQVS--ByM80KpV.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-DyDSQVS-.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;;EAchC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;EAI3B,aAAa,8BAA8B;;;;;;;KAOxC,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;KAKxB,qBAAqB;KACrB;KACA;WACM;WACA;;KAEN;WACM,IAAI;WACJ;;;;;;;;WAQA;WACA,QAAQ;;;;;WAKR,oBAAoB;;;;;;;UAOrB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS;WAClE,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,OAAO;;;;EAIhB,sBAAsB,SAAS,0BAA0B,cAAc"}
1
+ {"version":3,"file":"query-lane-context-DyDSQVS--CyCznt67.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-DyDSQVS-.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;;EAchC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;EAI3B,aAAa,8BAA8B;;;;;;;KAOxC,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;KAKxB,qBAAqB;KACrB;KACA;WACM;WACA;;KAEN;WACM,IAAI;WACJ;;;;;;;;WAQA;WACA,QAAQ;;;;;WAKR,oBAAoB;;;;;;;UAOrB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS;WAClE,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,OAAO;;;;EAIhB,sBAAsB,SAAS,0BAA0B,cAAc"}
@@ -0,0 +1 @@
1
+ import "./query-lane-context-DyDSQVS--CyCznt67.mjs";
@@ -1,12 +1,12 @@
1
- import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
2
- import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Dsz9N7Wm.mjs";
3
- import { $ as sqlTextDecode, A as SqlTimestampCodec, B as sqlCharEncode, C as SqlFloatDescriptor, D as SqlStatementStats, E as SqlQueryable, F as collectOrderedParamRefs, G as sqlFloatDescriptor, H as sqlFloatColumn, I as compact, J as sqlIntColumn, K as sqlFloatEncode, L as sqlCharColumn, M as SqlTransaction, N as SqlVarcharCodec, O as SqlTextCodec, P as SqlVarcharDescriptor, Q as sqlTextColumn, R as sqlCharDecode, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlFloatDecode, V as sqlCharRenderOutputType, W as sqlFloatDecodeJson, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SqlConnection, a as LowererContext, at as sqlTimestampDescriptor, b as SqlExecuteRequest, c as PreparedStatementHandle, ct as sqlTimestampRenderOutputType, d as SQL_INT_CODEC_ID, dt as sqlVarcharDescriptor, et as sqlTextDescriptor, f as SQL_TEXT_CODEC_ID, ft as sqlVarcharEncode, g as SqlCharDescriptor, h as SqlCharCodec, i as Lowerer, it as sqlTimestampDecodeJson, j as SqlTimestampDescriptor, k as SqlTextDescriptor, l as SQL_CHAR_CODEC_ID, lt as sqlVarcharColumn, m as SQL_VARCHAR_CODEC_ID, n as AdapterProfile, nt as sqlTimestampColumn, o as MarkerReadResult, ot as sqlTimestampEncode, p as SQL_TIMESTAMP_CODEC_ID, pt as sqlVarcharRenderOutputType, q as sqlFloatEncodeJson, r as AdapterTarget, rt as sqlTimestampDecode, s as PreparedExecuteRequest, st as sqlTimestampEncodeJson, t as Adapter, tt as sqlTextEncode, u as SQL_FLOAT_CODEC_ID, ut as sqlVarcharDecode, v as SqlDriver, w as SqlIntCodec, x as SqlExplainResult, y as SqlDriverState, z as sqlCharDescriptor } from "./ast-Px7aAd_0.mjs";
4
- import { a as Expression, c as RawSqlTag, d as TraitExpression, f as buildOperation, g as toExpr, h as param, i as CodecValue, l as ScalarListExpression, m as createRawSql, n as CodecExpression, o as RawCodecInferer, p as codecOf, r as CodecTypesBase, s as RawSqlBuilder, t as BuildOperationSpec, u as ScopeField } from "./expression-E67TGFZA.mjs";
5
- import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-DdIwfSmv.mjs";
6
- import { n as planFromAst, t as SqlQueryPlan } from "./plan-DfLDIdep-CoshEetE.mjs";
7
- import "./plan-DduVZV0X.mjs";
8
- import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-DyDSQVS--ByM80KpV.mjs";
9
- import "./query-lane-context-DojOMvih.mjs";
10
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-Bp5oIYM0-9a28aLnt.mjs";
11
- import { C as TableDef, E as TablesOf, S as SqlPlan, T as TableMetadata, _ as RawTemplateFactory, a as ColumnsOf, b as SqlBuilderOptions, c as META, d as ModelMetadata, f as OperationTypeSignature, g as RawFunctionOptions, h as RawFactory, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as RawTemplateOptions, w as TableKey, x as SqlOrmPlan, y as RuntimeScope } from "./types-CLN9Y3BH-B9xrXW2L.mjs";
1
+ import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
2
+ import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Bv46yIe9.mjs";
3
+ import { $ as sqlTextDecode, A as SqlTimestampCodec, B as sqlCharEncode, C as SqlFloatDescriptor, D as SqlStatementStats, E as SqlQueryable, F as collectOrderedParamRefs, G as sqlFloatDescriptor, H as sqlFloatColumn, I as compact, J as sqlIntColumn, K as sqlFloatEncode, L as sqlCharColumn, M as SqlTransaction, N as SqlVarcharCodec, O as SqlTextCodec, P as SqlVarcharDescriptor, Q as sqlTextColumn, R as sqlCharDecode, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlFloatDecode, V as sqlCharRenderOutputType, W as sqlFloatDecodeJson, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SqlConnection, a as LowererContext, at as sqlTimestampDescriptor, b as SqlExecuteRequest, c as PreparedStatementHandle, ct as sqlTimestampRenderOutputType, d as SQL_INT_CODEC_ID, dt as sqlVarcharDescriptor, et as sqlTextDescriptor, f as SQL_TEXT_CODEC_ID, ft as sqlVarcharEncode, g as SqlCharDescriptor, h as SqlCharCodec, i as Lowerer, it as sqlTimestampDecodeJson, j as SqlTimestampDescriptor, k as SqlTextDescriptor, l as SQL_CHAR_CODEC_ID, lt as sqlVarcharColumn, m as SQL_VARCHAR_CODEC_ID, n as AdapterProfile, nt as sqlTimestampColumn, o as MarkerReadResult, ot as sqlTimestampEncode, p as SQL_TIMESTAMP_CODEC_ID, pt as sqlVarcharRenderOutputType, q as sqlFloatEncodeJson, r as AdapterTarget, rt as sqlTimestampDecode, s as PreparedExecuteRequest, st as sqlTimestampEncodeJson, t as Adapter, tt as sqlTextEncode, u as SQL_FLOAT_CODEC_ID, ut as sqlVarcharDecode, v as SqlDriver, w as SqlIntCodec, x as SqlExplainResult, y as SqlDriverState, z as sqlCharDescriptor } from "./ast-DRbUiQ-9.mjs";
4
+ import { a as Expression, c as RawSqlTag, d as TraitExpression, f as buildOperation, g as toExpr, h as param, i as CodecValue, l as ScalarListExpression, m as createRawSql, n as CodecExpression, o as RawCodecInferer, p as codecOf, r as CodecTypesBase, s as RawSqlBuilder, t as BuildOperationSpec, u as ScopeField } from "./expression-D7H1kyVG.mjs";
5
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-HjRSS3l9.mjs";
6
+ import { n as planFromAst, t as SqlQueryPlan } from "./plan-DfLDIdep-6R1mLkcW.mjs";
7
+ import "./plan-HWPzzUxh.mjs";
8
+ import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-DyDSQVS--CyCznt67.mjs";
9
+ import "./query-lane-context-qfJzguc9.mjs";
10
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-Bp5oIYM0-Ek8bISDH.mjs";
11
+ import { C as TableDef, E as TablesOf, S as SqlPlan, T as TableMetadata, _ as RawTemplateFactory, a as ColumnsOf, b as SqlBuilderOptions, c as META, d as ModelMetadata, f as OperationTypeSignature, g as RawFunctionOptions, h as RawFactory, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as RawTemplateOptions, w as TableKey, x as SqlOrmPlan, y as RuntimeScope } from "./types-CLN9Y3BH-BHUrV7MD.mjs";
12
12
  export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AppliedMutationDefault, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecDescriptorRegistry, CodecExpression, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, CodecTypes, CodecTypesBase, CodecValue, ColumnRef, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, MutationDefaultsOp, MutationDefaultsOptions, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawCodecInferer, RawExpr, RawFactory, RawFunctionOptions, RawSqlBuilder, RawSqlExpr, RawSqlLiteral, RawSqlTag, RawTemplateFactory, RawTemplateOptions, ResolvedSqlAggregate, type RuntimeScope, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, ScalarListExpression, ScopeField, SelectAst, SelectAstOptions, SqlAggregateDescriptorRegistry, SqlBuilderOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, type SqlExecutionPlan, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, type SqlOrmPlan, type SqlParamRefMutator, type SqlParamRefMutatorInternal, SqlPlan, SqlQueryPlan, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, TypeHelperRegistry, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
@@ -1,4 +1,4 @@
1
- import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-DyDSQVS--ByM80KpV.mjs";
1
+ import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-DyDSQVS--CyCznt67.mjs";
2
2
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
3
3
  //#region src/aggregate-descriptor-registry.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
2
- import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Dsz9N7Wm.mjs";
3
- import { $ as sqlTextDecode, A as SqlTimestampCodec, B as sqlCharEncode, C as SqlFloatDescriptor, D as SqlStatementStats, E as SqlQueryable, F as collectOrderedParamRefs, G as sqlFloatDescriptor, H as sqlFloatColumn, I as compact, J as sqlIntColumn, K as sqlFloatEncode, L as sqlCharColumn, M as SqlTransaction, N as SqlVarcharCodec, O as SqlTextCodec, P as SqlVarcharDescriptor, Q as sqlTextColumn, R as sqlCharDecode, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlFloatDecode, V as sqlCharRenderOutputType, W as sqlFloatDecodeJson, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SqlConnection, a as LowererContext, at as sqlTimestampDescriptor, b as SqlExecuteRequest, c as PreparedStatementHandle, ct as sqlTimestampRenderOutputType, d as SQL_INT_CODEC_ID, dt as sqlVarcharDescriptor, et as sqlTextDescriptor, f as SQL_TEXT_CODEC_ID, ft as sqlVarcharEncode, g as SqlCharDescriptor, h as SqlCharCodec, i as Lowerer, it as sqlTimestampDecodeJson, j as SqlTimestampDescriptor, k as SqlTextDescriptor, l as SQL_CHAR_CODEC_ID, lt as sqlVarcharColumn, m as SQL_VARCHAR_CODEC_ID, n as AdapterProfile, nt as sqlTimestampColumn, o as MarkerReadResult, ot as sqlTimestampEncode, p as SQL_TIMESTAMP_CODEC_ID, pt as sqlVarcharRenderOutputType, q as sqlFloatEncodeJson, r as AdapterTarget, rt as sqlTimestampDecode, s as PreparedExecuteRequest, st as sqlTimestampEncodeJson, t as Adapter, tt as sqlTextEncode, u as SQL_FLOAT_CODEC_ID, ut as sqlVarcharDecode, v as SqlDriver, w as SqlIntCodec, x as SqlExplainResult, y as SqlDriverState, z as sqlCharDescriptor } from "./ast-Px7aAd_0.mjs";
1
+ import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
2
+ import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Bv46yIe9.mjs";
3
+ import { $ as sqlTextDecode, A as SqlTimestampCodec, B as sqlCharEncode, C as SqlFloatDescriptor, D as SqlStatementStats, E as SqlQueryable, F as collectOrderedParamRefs, G as sqlFloatDescriptor, H as sqlFloatColumn, I as compact, J as sqlIntColumn, K as sqlFloatEncode, L as sqlCharColumn, M as SqlTransaction, N as SqlVarcharCodec, O as SqlTextCodec, P as SqlVarcharDescriptor, Q as sqlTextColumn, R as sqlCharDecode, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlFloatDecode, V as sqlCharRenderOutputType, W as sqlFloatDecodeJson, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SqlConnection, a as LowererContext, at as sqlTimestampDescriptor, b as SqlExecuteRequest, c as PreparedStatementHandle, ct as sqlTimestampRenderOutputType, d as SQL_INT_CODEC_ID, dt as sqlVarcharDescriptor, et as sqlTextDescriptor, f as SQL_TEXT_CODEC_ID, ft as sqlVarcharEncode, g as SqlCharDescriptor, h as SqlCharCodec, i as Lowerer, it as sqlTimestampDecodeJson, j as SqlTimestampDescriptor, k as SqlTextDescriptor, l as SQL_CHAR_CODEC_ID, lt as sqlVarcharColumn, m as SQL_VARCHAR_CODEC_ID, n as AdapterProfile, nt as sqlTimestampColumn, o as MarkerReadResult, ot as sqlTimestampEncode, p as SQL_TIMESTAMP_CODEC_ID, pt as sqlVarcharRenderOutputType, q as sqlFloatEncodeJson, r as AdapterTarget, rt as sqlTimestampDecode, s as PreparedExecuteRequest, st as sqlTimestampEncodeJson, t as Adapter, tt as sqlTextEncode, u as SQL_FLOAT_CODEC_ID, ut as sqlVarcharDecode, v as SqlDriver, w as SqlIntCodec, x as SqlExplainResult, y as SqlDriverState, z as sqlCharDescriptor } from "./ast-DRbUiQ-9.mjs";
4
4
  export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ExprVisitor, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawExpr, RawSqlExpr, RawSqlLiteral, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SelectAstOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableRef, TableSource, ToWhereExpr, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, collectOrderedParamRefs, compact, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, whereExprKinds };
@@ -1,7 +1,7 @@
1
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { o as AnyCodecDescriptor$1 } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
4
- import { n as CodecDescriptorRegistry } from "./query-lane-context-DyDSQVS--ByM80KpV.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { o as AnyCodecDescriptor$1 } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
4
+ import { n as CodecDescriptorRegistry } from "./query-lane-context-DyDSQVS--CyCznt67.mjs";
5
5
  import { CodecRef } from "@prisma/orm-framework/components/codec";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
7
7
  //#region src/codec-descriptor-registry.d.ts
@@ -1,2 +1,2 @@
1
- import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-DMUcCfyb.mjs";
1
+ import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-N0dhtKaH.mjs";
2
2
  export { buildCodecDescriptorRegistry, codecRefForStorageColumn };
@@ -1,7 +1,7 @@
1
1
  import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { $ as JoinAst, D as ColumnRef, Nt as UpdateAst, T as CodecRef$1, X as InsertAst, bt as ProjectionItem, c as AnyFromSource, gt as OrderByItem, jt as TableSource, s as AnyExpression, wt as SelectAst } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
4
- import { d as LiteralColumnDefault, f as PrimaryKeyConstraint, l as ForeignKeyConstraint, n as CheckExpressionConstraint, p as UniqueConstraint, r as DdlColumn, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Dsz9N7Wm.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { $ as JoinAst, D as ColumnRef, Nt as UpdateAst, T as CodecRef$1, X as InsertAst, bt as ProjectionItem, c as AnyFromSource, gt as OrderByItem, jt as TableSource, s as AnyExpression, wt as SelectAst } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
4
+ import { d as LiteralColumnDefault, f as PrimaryKeyConstraint, l as ForeignKeyConstraint, n as CheckExpressionConstraint, p as UniqueConstraint, r as DdlColumn, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CnLSuwXa-Bv46yIe9.mjs";
5
5
  import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
6
6
  import { ParamSpec } from "@prisma/orm-framework/operations";
7
7
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/contract-free.d.mts
@@ -1,2 +1,2 @@
1
- import { a as Expression, c as RawSqlTag, d as TraitExpression, f as buildOperation, g as toExpr, h as param, i as CodecValue, l as ScalarListExpression, m as createRawSql, n as CodecExpression, o as RawCodecInferer, p as codecOf, r as CodecTypesBase, s as RawSqlBuilder, t as BuildOperationSpec, u as ScopeField } from "./expression-E67TGFZA.mjs";
1
+ import { a as Expression, c as RawSqlTag, d as TraitExpression, f as buildOperation, g as toExpr, h as param, i as CodecValue, l as ScalarListExpression, m as createRawSql, n as CodecExpression, o as RawCodecInferer, p as codecOf, r as CodecTypesBase, s as RawSqlBuilder, t as BuildOperationSpec, u as ScopeField } from "./expression-D7H1kyVG.mjs";
2
2
  export { BuildOperationSpec, CodecExpression, CodecTypesBase, CodecValue, Expression, RawCodecInferer, RawSqlBuilder, RawSqlTag, ScalarListExpression, ScopeField, TraitExpression, buildOperation, codecOf, createRawSql, param, toExpr };
@@ -1,3 +1,3 @@
1
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-Bp5oIYM0-9a28aLnt.mjs";
2
- import "./middleware-Pe2hkf2T.mjs";
1
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-Bp5oIYM0-Ek8bISDH.mjs";
2
+ import "./middleware-aFpB1ZhU.mjs";
3
3
  export { type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, type SqlParamRefMutator, type SqlParamRefMutatorInternal, createSqlParamRefMutator };
@@ -1,4 +1,4 @@
1
- import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-DdIwfSmv.mjs";
2
- import { n as planFromAst, t as SqlQueryPlan } from "./plan-DfLDIdep-CoshEetE.mjs";
3
- import "./plan-DduVZV0X.mjs";
1
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-qxvHnFcA-HjRSS3l9.mjs";
2
+ import { n as planFromAst, t as SqlQueryPlan } from "./plan-DfLDIdep-6R1mLkcW.mjs";
3
+ import "./plan-HWPzzUxh.mjs";
4
4
  export { type SqlExecutionPlan, SqlQueryPlan, planFromAst };