@prisma/orm-family-sql 8.0.0-rc.1-dev.45 → 8.0.0-rc.10

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 (233) hide show
  1. package/README.md +2 -6
  2. package/dist/{aggregate-descriptor-registry-CTo0ry7h.mjs → aggregate-descriptor-registry-C7hel5O7.mjs} +2 -2
  3. package/dist/{aggregate-descriptor-registry-CTo0ry7h.mjs.map → aggregate-descriptor-registry-C7hel5O7.mjs.map} +1 -1
  4. package/dist/{ast-BJdOHZrL.mjs → ast-5tg0fGPQ.mjs} +3 -59
  5. package/dist/ast-5tg0fGPQ.mjs.map +1 -0
  6. package/dist/{ast-D8qqdDX_.d.mts → ast-DuLukI6f.d.mts} +4 -36
  7. package/dist/ast-DuLukI6f.d.mts.map +1 -0
  8. package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BEvfamnI.mjs} +2 -2
  9. package/dist/{authored-check-naming-Hf9990DV.mjs.map → authored-check-naming-BEvfamnI.mjs.map} +1 -1
  10. package/dist/{authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs → authoring-type-constructors-BD-XuavC-CJV-TxFh.mjs} +10 -4
  11. package/dist/authoring-type-constructors-BD-XuavC-CJV-TxFh.mjs.map +1 -0
  12. package/dist/builder.d.mts +3 -3
  13. package/dist/builder__runtime.d.mts +26 -9
  14. package/dist/builder__runtime.d.mts.map +1 -1
  15. package/dist/builder__runtime.mjs +32 -6
  16. package/dist/builder__runtime.mjs.map +1 -1
  17. package/dist/builder__types.d.mts +3 -3
  18. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-ECZ4ohtG.mjs} +2 -2
  19. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs.map → codec-descriptor-registry-ECZ4ohtG.mjs.map} +1 -1
  20. package/dist/{config-types-B6cQRwJw.mjs → config-types-BNJgLUUQ.mjs} +2 -2
  21. package/dist/{config-types-B6cQRwJw.mjs.map → config-types-BNJgLUUQ.mjs.map} +1 -1
  22. package/dist/{config-types-D9fdKG3g.d.mts → config-types-Bd3ud-mX.d.mts} +3 -3
  23. package/dist/{config-types-D9fdKG3g.d.mts.map → config-types-Bd3ud-mX.d.mts.map} +1 -1
  24. package/dist/{contract-builder-vdfvmuiO.mjs → contract-builder-BOmEsrRi.mjs} +24 -5
  25. package/dist/contract-builder-BOmEsrRi.mjs.map +1 -0
  26. package/dist/{contract-builder-CG_tGDbB.d.mts → contract-builder-De_sioHE.d.mts} +15 -3
  27. package/dist/contract-builder-De_sioHE.d.mts.map +1 -0
  28. package/dist/contract-emitter.mjs +1 -1
  29. package/dist/contract-psl.d.mts +1 -1
  30. package/dist/contract-psl.mjs +1 -1
  31. package/dist/contract-psl__attribute-specs.d.mts +77 -0
  32. package/dist/contract-psl__attribute-specs.d.mts.map +1 -0
  33. package/dist/contract-psl__attribute-specs.mjs +2 -0
  34. package/dist/contract-psl__provider.d.mts +1 -1
  35. package/dist/contract-psl__provider.mjs +3 -3
  36. package/dist/contract-psl__provider.mjs.map +1 -1
  37. package/dist/contract-ts.d.mts +3 -3
  38. package/dist/contract-ts.mjs +3 -3
  39. package/dist/contract-ts__config-types.d.mts +1 -1
  40. package/dist/contract-ts__config-types.mjs +1 -1
  41. package/dist/contract-ts__contract-builder.d.mts +2 -2
  42. package/dist/contract-ts__contract-builder.mjs +2 -2
  43. package/dist/contract.d.mts +4 -4
  44. package/dist/contract.mjs +6 -6
  45. package/dist/contract__authored-check-naming.mjs +1 -1
  46. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  47. package/dist/contract__foreign-key-materialization.mjs +1 -1
  48. package/dist/contract__index-naming.mjs +1 -1
  49. package/dist/contract__types.d.mts +2 -2
  50. package/dist/contract__types.mjs +2 -2
  51. package/dist/contract__validators.d.mts +2 -2
  52. package/dist/contract__validators.mjs +2 -2
  53. package/dist/{control-DAkNosoF.mjs → control-BIIMOKMy.mjs} +11 -9
  54. package/dist/control-BIIMOKMy.mjs.map +1 -0
  55. package/dist/{control-adapter-C99J7aEF-Vx9xXYOy.d.mts → control-adapter-C99J7aEF-GODO43Ai.d.mts} +5 -5
  56. package/dist/{control-adapter-C99J7aEF-Vx9xXYOy.d.mts.map → control-adapter-C99J7aEF-GODO43Ai.d.mts.map} +1 -1
  57. package/dist/control-adapter-DzTFiMaG.d.mts +1 -0
  58. package/dist/{control-DssujEJW.d.mts → control-b-6t8eI_.d.mts} +138 -19
  59. package/dist/control-b-6t8eI_.d.mts.map +1 -0
  60. package/dist/{db-C5jmOFPM-Cd-fni61.d.mts → db-BhQdL6Za-DubRGJvv.d.mts} +161 -9
  61. package/dist/db-BhQdL6Za-DubRGJvv.d.mts.map +1 -0
  62. package/dist/{ddl-types-BtT82FGO-Du_-9SlZ.d.mts → ddl-types-CXx4vPz6-Dko-GTTj.d.mts} +4 -4
  63. package/dist/{ddl-types-BtT82FGO-Du_-9SlZ.d.mts.map → ddl-types-CXx4vPz6-Dko-GTTj.d.mts.map} +1 -1
  64. package/dist/{derived-checks-DFMRmiAu-8jmha26I.mjs → derived-checks-DGjY5t7S-B3txNm7X.mjs} +48 -15
  65. package/dist/derived-checks-DGjY5t7S-B3txNm7X.mjs.map +1 -0
  66. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DPdD01O0-DNBs1ZDA.d.mts} +2 -2
  67. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts.map → derived-checks-DPdD01O0-DNBs1ZDA.d.mts.map} +1 -1
  68. package/dist/{diff-pl1Xal4J.d.mts → diff-CN1ou7vM.d.mts} +5 -5
  69. package/dist/{diff-pl1Xal4J.d.mts.map → diff-CN1ou7vM.d.mts.map} +1 -1
  70. package/dist/{dist-ZK6oeI5e.mjs → dist-D5__KJs-.mjs} +2 -1
  71. package/dist/dist-D5__KJs-.mjs.map +1 -0
  72. package/dist/{expression-D30W-gkF.mjs → expression-B2Ox7zKM.mjs} +59 -16
  73. package/dist/expression-B2Ox7zKM.mjs.map +1 -0
  74. package/dist/{expression-Q_yaDQPb.d.mts → expression-mku9I7Ue.d.mts} +108 -8
  75. package/dist/expression-mku9I7Ue.d.mts.map +1 -0
  76. package/dist/family.d.mts +10 -10
  77. package/dist/family.mjs +8 -8
  78. package/dist/family__control-adapter.d.mts +2 -2
  79. package/dist/family__control.d.mts +4 -4
  80. package/dist/family__control.mjs +4 -4
  81. package/dist/family__diff.d.mts +2 -2
  82. package/dist/family__diff.mjs +1 -1
  83. package/dist/family__ir.d.mts +1 -1
  84. package/dist/family__ir.mjs +1 -1
  85. package/dist/family__migration.d.mts +1 -1
  86. package/dist/family__pack.d.mts +72 -0
  87. package/dist/family__pack.d.mts.map +1 -1
  88. package/dist/family__pack.mjs +4 -2
  89. package/dist/family__pack.mjs.map +1 -1
  90. package/dist/family__psl-infer.mjs +1 -1
  91. package/dist/family__runtime.d.mts +1 -1
  92. package/dist/family__runtime.mjs +1 -1
  93. package/dist/family__verify.mjs +1 -1
  94. package/dist/{foreign-key-materialization-DLOi1Ps0.mjs → foreign-key-materialization-0TrwfShD.mjs} +7 -6
  95. package/dist/foreign-key-materialization-0TrwfShD.mjs.map +1 -0
  96. package/dist/{foreign-key-materialization-DO9dvG7v.d.mts → foreign-key-materialization-CkvOzJWy.d.mts} +4 -4
  97. package/dist/{foreign-key-materialization-DO9dvG7v.d.mts.map → foreign-key-materialization-CkvOzJWy.d.mts.map} +1 -1
  98. package/dist/{index-C5I8D-MB.d.mts → index-CLAshwKN.d.mts} +2 -2
  99. package/dist/{index-C5I8D-MB.d.mts.map → index-CLAshwKN.d.mts.map} +1 -1
  100. package/dist/{index-DIHXLCbY.d.mts → index-DzBzeTAy.d.mts} +10 -10
  101. package/dist/{index-DIHXLCbY.d.mts.map → index-DzBzeTAy.d.mts.map} +1 -1
  102. package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-fQMLqyC4-4FzPVtCR.mjs} +4 -4
  103. package/dist/index-naming-fQMLqyC4-4FzPVtCR.mjs.map +1 -0
  104. package/dist/{interpreter-DaBA2fm--FFkq_gGd.mjs → interpreter-CZ_iVQV4-CJ6COgSE.mjs} +125 -304
  105. package/dist/interpreter-CZ_iVQV4-CJ6COgSE.mjs.map +1 -0
  106. package/dist/ir-I-xciGUH.mjs.map +1 -1
  107. package/dist/{ir-Bghjt-FG.d.mts → ir-R9GE8gsm.d.mts} +2 -2
  108. package/dist/{ir-Bghjt-FG.d.mts.map → ir-R9GE8gsm.d.mts.map} +1 -1
  109. package/dist/{middleware-BS7u8VFR-DyUcAFid.d.mts → middleware-AhTz1BOW-CtQWS4mb.d.mts} +3 -3
  110. package/dist/{middleware-BS7u8VFR-DyUcAFid.d.mts.map → middleware-AhTz1BOW-CtQWS4mb.d.mts.map} +1 -1
  111. package/dist/middleware-Cev-ZFyS.d.mts +1 -0
  112. package/dist/{migration-CGlaINey.d.mts → migration-Bhce5i_m.d.mts} +3 -3
  113. package/dist/{migration-CGlaINey.d.mts.map → migration-Bhce5i_m.d.mts.map} +1 -1
  114. package/dist/operations.d.mts +1 -1
  115. package/dist/orm-client.d.mts +131 -95
  116. package/dist/orm-client.d.mts.map +1 -1
  117. package/dist/orm-client.mjs +1022 -943
  118. package/dist/orm-client.mjs.map +1 -1
  119. package/dist/plan-C7VP7jOh.d.mts +2 -0
  120. package/dist/{plan-BC_trt1i-In5gOKCT.d.mts → plan-CDxduYaN-B2kMLIQQ.d.mts} +10 -9
  121. package/dist/plan-CDxduYaN-B2kMLIQQ.d.mts.map +1 -0
  122. package/dist/{plan-CkpcgUaM.mjs → plan-Dh0LbYIv-Crx5-ThG.mjs} +8 -7
  123. package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +1 -0
  124. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +22 -0
  125. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +1 -0
  126. package/dist/{prepared-statement-z9bBbTph-BlzhaRTY.d.mts → prepared-statement-9QpkE6JG-B9xqBu5T.d.mts} +85 -20
  127. package/dist/prepared-statement-9QpkE6JG-B9xqBu5T.d.mts.map +1 -0
  128. package/dist/{psl-infer-YhbKkybN.mjs → psl-infer-TBwKfKgU.mjs} +2 -2
  129. package/dist/{psl-infer-YhbKkybN.mjs.map → psl-infer-TBwKfKgU.mjs.map} +1 -1
  130. package/dist/query-lane-context-CGdMIEuv.d.mts +1 -0
  131. package/dist/{query-lane-context-gwWUcacE-DdWNrc8q.d.mts → query-lane-context-Qa-eddrE-BQV6J9nV.d.mts} +5 -5
  132. package/dist/{query-lane-context-gwWUcacE-DdWNrc8q.d.mts.map → query-lane-context-Qa-eddrE-BQV6J9nV.d.mts.map} +1 -1
  133. package/dist/relational-core.d.mts +12 -12
  134. package/dist/relational-core.mjs +5 -5
  135. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  136. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  137. package/dist/relational-core__ast.d.mts +4 -4
  138. package/dist/relational-core__ast.mjs +3 -3
  139. package/dist/relational-core__codec-descriptor-registry.d.mts +3 -3
  140. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  141. package/dist/relational-core__contract-free.d.mts +3 -3
  142. package/dist/relational-core__contract-free.mjs +1 -1
  143. package/dist/relational-core__contract-free.mjs.map +1 -1
  144. package/dist/relational-core__expression.d.mts +2 -2
  145. package/dist/relational-core__expression.mjs +1 -1
  146. package/dist/relational-core__middleware.d.mts +2 -2
  147. package/dist/relational-core__plan.d.mts +3 -3
  148. package/dist/relational-core__plan.mjs +1 -1
  149. package/dist/relational-core__query-lane-context.d.mts +2 -2
  150. package/dist/relational-core__types.d.mts +3 -3
  151. package/dist/{runtime-cPrAp99G.d.mts → runtime-CzCx0TKe.d.mts} +3 -3
  152. package/dist/{runtime-cPrAp99G.d.mts.map → runtime-CzCx0TKe.d.mts.map} +1 -1
  153. package/dist/{runtime-tIHpGCcG.mjs → runtime-PknWErjr.mjs} +2 -2
  154. package/dist/{runtime-tIHpGCcG.mjs.map → runtime-PknWErjr.mjs.map} +1 -1
  155. package/dist/runtime.d.mts +5 -5
  156. package/dist/runtime.mjs +145 -18
  157. package/dist/runtime.mjs.map +1 -1
  158. package/dist/runtime__internal__prepared-query.d.mts +2 -2
  159. package/dist/runtime__internal__prepared-query.mjs +2 -2
  160. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DpG_gnur-BICVtTHY.d.mts} +2 -2
  161. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts.map → schema-differ-DpG_gnur-BICVtTHY.d.mts.map} +1 -1
  162. package/dist/schema-ir.mjs +1 -1
  163. package/dist/schema-ir__types.mjs +1 -1
  164. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C_PEdlAr-CmXrFuW1.mjs} +2 -2
  165. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map → schema-verify-C_PEdlAr-CmXrFuW1.mjs.map} +1 -1
  166. package/dist/sql-attribute-specs-CG0yitvD-CG-0eW98.mjs +275 -0
  167. package/dist/sql-attribute-specs-CG0yitvD-CG-0eW98.mjs.map +1 -0
  168. package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-Bxu4a5oQ-D0lKpb4a.mjs} +24 -5
  169. package/dist/sql-contract-serializer-Bxu4a5oQ-D0lKpb4a.mjs.map +1 -0
  170. package/dist/{sql-execution-plan-D0ZTnszb-DnCRtfQO.d.mts → sql-execution-plan--jKyLpe5-Bcz9QM2s.d.mts} +5 -6
  171. package/dist/sql-execution-plan--jKyLpe5-Bcz9QM2s.d.mts.map +1 -0
  172. package/dist/{timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs → timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs} +27 -19
  173. package/dist/timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs.map +1 -0
  174. package/dist/{types-4YenawkP-CwaaZSid.mjs → types-BvupgHcG-c8QDupnu.mjs} +13 -6
  175. package/dist/types-BvupgHcG-c8QDupnu.mjs.map +1 -0
  176. package/dist/{types-UcHa2cTe.d.mts → types-C36_3E6_.d.mts} +3 -2
  177. package/dist/types-C36_3E6_.d.mts.map +1 -0
  178. package/dist/{types-C9FZXc9Q-C6LM1k-O.d.mts → types-CyxGtOOh-BJnoWm0f.d.mts} +10 -21
  179. package/dist/{types-C9FZXc9Q-C6LM1k-O.d.mts.map → types-CyxGtOOh-BJnoWm0f.d.mts.map} +1 -1
  180. package/dist/{types-CUsJrvEl.mjs → types-D0B65hip.mjs} +3 -2
  181. package/dist/types-D0B65hip.mjs.map +1 -0
  182. package/dist/{types-B7_v-z12-De5tf8LE.mjs → types-Dt4e_jC--COeP8xzN.mjs} +68 -28
  183. package/dist/{types-B7_v-z12-De5tf8LE.mjs.map → types-Dt4e_jC--COeP8xzN.mjs.map} +1 -1
  184. package/dist/types-DvsoMNLs.d.mts +1 -0
  185. package/dist/{types-IqZMLrFC-B0YziCVx.d.mts → types-IqZMLrFC-BIRftuU7.d.mts} +4 -4
  186. package/dist/{types-IqZMLrFC-B0YziCVx.d.mts.map → types-IqZMLrFC-BIRftuU7.d.mts.map} +1 -1
  187. package/dist/{types-DH6Sqzxu-DfzaLX0o.d.mts → types-v3qxLLxo-Clw_yBAh.d.mts} +44 -23
  188. package/dist/{types-DH6Sqzxu-DfzaLX0o.d.mts.map → types-v3qxLLxo-Clw_yBAh.d.mts.map} +1 -1
  189. package/dist/{validators-Belo8QqM.d.mts → validators-CbqMxQfW.d.mts} +23 -4
  190. package/dist/validators-CbqMxQfW.d.mts.map +1 -0
  191. package/dist/{validators-CrWD6bSP.mjs → validators-DD98VrpC.mjs} +0 -0
  192. package/dist/validators-DD98VrpC.mjs.map +1 -0
  193. package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-ChiDeTk8-HEewdjrM.mjs} +3 -3
  194. package/dist/verify-ChiDeTk8-HEewdjrM.mjs.map +1 -0
  195. package/package.json +20 -21
  196. package/dist/ast-BJdOHZrL.mjs.map +0 -1
  197. package/dist/ast-D8qqdDX_.d.mts.map +0 -1
  198. package/dist/authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs.map +0 -1
  199. package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
  200. package/dist/contract-builder-vdfvmuiO.mjs.map +0 -1
  201. package/dist/control-DAkNosoF.mjs.map +0 -1
  202. package/dist/control-DssujEJW.d.mts.map +0 -1
  203. package/dist/control-adapter-CLID4Q6Z.d.mts +0 -1
  204. package/dist/db-C5jmOFPM-Cd-fni61.d.mts.map +0 -1
  205. package/dist/derived-checks-DFMRmiAu-8jmha26I.mjs.map +0 -1
  206. package/dist/dist-ZK6oeI5e.mjs.map +0 -1
  207. package/dist/expression-D30W-gkF.mjs.map +0 -1
  208. package/dist/expression-Q_yaDQPb.d.mts.map +0 -1
  209. package/dist/foreign-key-materialization-DLOi1Ps0.mjs.map +0 -1
  210. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
  211. package/dist/interpreter-DaBA2fm--FFkq_gGd.mjs.map +0 -1
  212. package/dist/lane-query-builder.d.mts +0 -236
  213. package/dist/lane-query-builder.d.mts.map +0 -1
  214. package/dist/lane-query-builder.mjs +0 -67
  215. package/dist/lane-query-builder.mjs.map +0 -1
  216. package/dist/middleware-Cy_OqpBi.d.mts +0 -1
  217. package/dist/plan-BC_trt1i-In5gOKCT.d.mts.map +0 -1
  218. package/dist/plan-CkpcgUaM.mjs.map +0 -1
  219. package/dist/plan-DrOMooQt.d.mts +0 -2
  220. package/dist/prepared-query-BDLztUzY-CaDR0Rqc.mjs +0 -14
  221. package/dist/prepared-query-BDLztUzY-CaDR0Rqc.mjs.map +0 -1
  222. package/dist/prepared-statement-z9bBbTph-BlzhaRTY.d.mts.map +0 -1
  223. package/dist/query-lane-context-D62vkQhf.d.mts +0 -1
  224. package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
  225. package/dist/sql-execution-plan-D0ZTnszb-DnCRtfQO.d.mts.map +0 -1
  226. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
  227. package/dist/types-0c4HyrXd.d.mts +0 -1
  228. package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
  229. package/dist/types-CUsJrvEl.mjs.map +0 -1
  230. package/dist/types-UcHa2cTe.d.mts.map +0 -1
  231. package/dist/validators-Belo8QqM.d.mts.map +0 -1
  232. package/dist/validators-CrWD6bSP.mjs.map +0 -1
  233. package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { O as ContractCodecRegistry, m as AnyQueryAst, ut as LoweredStatement } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
4
- import { t as Adapter } from "./ast-D8qqdDX_.mjs";
5
- import { t as SqlExecutionPlan } from "./sql-execution-plan-D0ZTnszb-DnCRtfQO.mjs";
6
- import { t as SqlQueryPlan } from "./plan-BC_trt1i-In5gOKCT.mjs";
7
- import "./plan-DrOMooQt.mjs";
8
- import { n as CodecDescriptorRegistry } from "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
9
- import "./query-lane-context-D62vkQhf.mjs";
10
- import { T as SqlMiddleware } from "./prepared-statement-z9bBbTph-BlzhaRTY.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { O as ContractCodecRegistry, m as AnyQueryAst, ut as LoweredStatement } from "./types-v3qxLLxo-Clw_yBAh.mjs";
4
+ import { t as Adapter } from "./ast-DuLukI6f.mjs";
5
+ import { t as SqlQueryPlan } from "./plan-CDxduYaN-B2kMLIQQ.mjs";
6
+ import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-Bcz9QM2s.mjs";
7
+ import "./plan-C7VP7jOh.mjs";
8
+ import { n as CodecDescriptorRegistry } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
9
+ import "./query-lane-context-CGdMIEuv.mjs";
10
+ import { k as SqlMiddleware } from "./prepared-statement-9QpkE6JG-B9xqBu5T.mjs";
11
11
  import { Contract } from "@prisma/orm-framework/contract/types";
12
12
  import { AfterExecuteResult as AfterExecuteResult$1, AfterQueryResult as AfterQueryResult$1, ExecuteInterceptResult as ExecuteInterceptResult$1, QueryInterceptResult as QueryInterceptResult$1, RuntimeLog as Log } from "@prisma/orm-framework/components/runtime";
13
13
  //#region ../../../2-sql/5-runtime/dist/index.d.mts
@@ -81,4 +81,4 @@ interface LintsOptions {
81
81
  declare function lints(options?: LintsOptions): SqlMiddleware;
82
82
  //#endregion
83
83
  export { LintsOptions as a, budgets as c, lints as d, lowerSqlPlan as f, ExecuteInterceptResult$1 as i, createAstCodecRegistry as l, validateContractCodecMappings as m, AfterQueryResult$1 as n, Log as o, validateCodecRegistryCompleteness as p, BudgetsOptions as r, QueryInterceptResult$1 as s, AfterExecuteResult$1 as t, extractCodecIds as u };
84
- //# sourceMappingURL=index-DIHXLCbY.d.mts.map
84
+ //# sourceMappingURL=index-DzBzeTAy.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DIHXLCbY.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
1
+ {"version":3,"file":"index-DzBzeTAy.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
@@ -1,7 +1,7 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
2
  import { a as computeIndexContentHash, n as assertWireNamePrefixLength, o as defaultIndexName } from "./naming-DKr4TJd7-Cszhq9RV.mjs";
3
3
  import { flushAuthoringWarnings } from "@prisma/orm-framework/components/authoring";
4
- //#region ../../../2-sql/1-core/contract/dist/index-naming-DREt6js7.mjs
4
+ //#region ../../../2-sql/1-core/contract/dist/index-naming-fQMLqyC4.mjs
5
5
  const EXACT_NAME_BODY_PREAMBLE = "Drift detection compares the authored SQL text byte-for-byte against Postgres's reprinted form, which is only reliable when the text was captured by contract infer.";
6
6
  /**
7
7
  * Per-subject remediation: an index or check moves to wire naming via
@@ -9,9 +9,9 @@ const EXACT_NAME_BODY_PREAMBLE = "Drift detection compares the authored SQL text
9
9
  * block's head the wire prefix.
10
10
  */
11
11
  const EXACT_NAME_BODY_REMEDIATION = {
12
- index: "For hand-authored definitions, use name: and let Prisma Next manage the physical name; to migrate an adopted object to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration.",
12
+ index: "For hand-authored definitions, use name: and let Prisma 8 manage the physical name; to migrate an adopted object to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration.",
13
13
  policy: "For hand-authored definitions, drop @@map and let the policy block's head name the policy; to migrate an adopted policy to wire naming, remove @@map (keeping the body text unchanged) and apply the resulting rename migration.",
14
- check: "For hand-authored definitions, use name: and let Prisma Next manage the physical name; to migrate an adopted check to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration."
14
+ check: "For hand-authored definitions, use name: and let Prisma 8 manage the physical name; to migrate an adopted check to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration."
15
15
  };
16
16
  /** What the user actually wrote, per subject: index and check `map:`, policy `@@map`. */
17
17
  const EXACT_NAME_FEATURE = {
@@ -107,4 +107,4 @@ function lowerAuthoredIndex(tableName, authored, warnings) {
107
107
  //#endregion
108
108
  export { lowerAuthoredIndex as n, exactNameBodyWarning as t };
109
109
 
110
- //# sourceMappingURL=index-naming-DREt6js7-CRH27yUv.mjs.map
110
+ //# sourceMappingURL=index-naming-fQMLqyC4-4FzPVtCR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-naming-fQMLqyC4-4FzPVtCR.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/index-naming-fQMLqyC4.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { flushAuthoringWarnings } from \"@internal/framework-components/authoring\";\nimport { assertWireNamePrefixLength, computeIndexContentHash, defaultIndexName } from \"@internal/sql-schema-ir/naming\";\n//#region src/index-naming.ts\nconst EXACT_NAME_BODY_PREAMBLE = \"Drift detection compares the authored SQL text byte-for-byte against Postgres's reprinted form, which is only reliable when the text was captured by contract infer.\";\n/**\n* Per-subject remediation: an index or check moves to wire naming via\n* `name:`; a policy has no such parameter — dropping `@@map` makes the\n* block's head the wire prefix.\n*/\nconst EXACT_NAME_BODY_REMEDIATION = {\n\tindex: \"For hand-authored definitions, use name: and let Prisma 8 manage the physical name; to migrate an adopted object to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration.\",\n\tpolicy: \"For hand-authored definitions, drop @@map and let the policy block's head name the policy; to migrate an adopted policy to wire naming, remove @@map (keeping the body text unchanged) and apply the resulting rename migration.\",\n\tcheck: \"For hand-authored definitions, use name: and let Prisma 8 manage the physical name; to migrate an adopted check to wire naming, replace map: with name: (keeping the body text unchanged) and apply the resulting rename migration.\"\n};\n/** What the user actually wrote, per subject: index and check `map:`, policy `@@map`. */\nconst EXACT_NAME_FEATURE = {\n\tindex: \"map:\",\n\tpolicy: \"@@map\",\n\tcheck: \"map:\"\n};\nconst EXACT_NAME_BODY_WARNING_CODE = \"PN_EXACT_NAME_BODY_COMPARISON\";\n/**\n* Mints the exact-name body-comparison warning for a `map:`-named object\n* carrying a hand-authorable SQL body — fully formed, so the transport and\n* the flush stay generic. `subject` distinguishes the index, policy, and\n* check callers that mint this same warning; the feature name and the\n* remediation are subject-specific end to end, so a batched summary\n* (grouped on code + summary) is true of every object it covers.\n*/\nfunction exactNameBodyWarning(subject, exactName) {\n\tconst item = `${subject} \"${exactName}\"`;\n\tconst feature = EXACT_NAME_FEATURE[subject];\n\tconst tail = `with a SQL body. ${EXACT_NAME_BODY_PREAMBLE} ${EXACT_NAME_BODY_REMEDIATION[subject]}`;\n\treturn {\n\t\tcode: EXACT_NAME_BODY_WARNING_CODE,\n\t\tmessage: `${item} uses ${feature} ${tail}`,\n\t\titem,\n\t\tsummary: `objects use ${feature} ${tail}`\n\t};\n}\n/**\n* Lowers an authored index into the name-identified entity `contract.json`\n* persists: exact mode adopts `map` verbatim (no prefix, no hash); wire\n* mode appends the content-hash suffix to the authored or default prefix.\n* The cross-field guards are the shared enforcement backstop for both\n* authoring surfaces (PSL pre-empts them with span-anchored diagnostics).\n*/\nfunction lowerAuthoredIndex(tableName, authored, warnings) {\n\tif (authored.columns === void 0 === (authored.expression === void 0)) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Index on table \"${tableName}\": an index takes either fields (columns) or an expression — exactly one, not both.`);\n\tif (authored.map !== void 0 && authored.name !== void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Index \"${authored.map}\" on table \"${tableName}\": map and name are mutually exclusive — map adopts an exact physical name, name is a wire prefix.`);\n\tif (authored.expression !== void 0 && authored.name === void 0 && authored.map === void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Index on table \"${tableName}\": an expression index requires an explicit name (name:) or exact physical name (map:) — a default name cannot be derived from an expression.`);\n\tif (authored.options !== void 0 && authored.type === void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Index on table \"${tableName}\": options requires an explicit type — an index with options but no type cannot round-trip through contract infer (the emitted type: would change the wire name).`);\n\tconst unique = authored.unique ?? false;\n\tif (authored.map !== void 0) {\n\t\tif (authored.expression !== void 0 || authored.where !== void 0) {\n\t\t\tconst warning = exactNameBodyWarning(\"index\", authored.map);\n\t\t\tif (warnings !== void 0) warnings.push(warning);\n\t\t\telse flushAuthoringWarnings([warning]);\n\t\t}\n\t\tconst carried = {\n\t\t\tnaming: {\n\t\t\t\tkind: \"exact\",\n\t\t\t\tname: authored.map\n\t\t\t},\n\t\t\twhere: authored.where,\n\t\t\tunique,\n\t\t\ttype: authored.type,\n\t\t\toptions: authored.options\n\t\t};\n\t\treturn authored.expression !== void 0 ? {\n\t\t\t...carried,\n\t\t\texpression: authored.expression\n\t\t} : {\n\t\t\t...carried,\n\t\t\tcolumns: authored.columns ?? []\n\t\t};\n\t}\n\tconst prefix = authored.name ?? defaultIndexName(tableName, authored.columns ?? []);\n\tassertWireNamePrefixLength(prefix, \"index prefix\");\n\tconst carried = {\n\t\tnaming: {\n\t\t\tkind: \"wire\",\n\t\t\tprefix,\n\t\t\thash: computeIndexContentHash({\n\t\t\t\t...authored.columns !== void 0 && { columns: authored.columns },\n\t\t\t\t...authored.expression !== void 0 && { expression: authored.expression },\n\t\t\t\t...authored.where !== void 0 && { where: authored.where },\n\t\t\t\tunique,\n\t\t\t\t...authored.type !== void 0 && { type: authored.type },\n\t\t\t\t...authored.options !== void 0 && { options: authored.options }\n\t\t\t})\n\t\t},\n\t\twhere: authored.where,\n\t\tunique,\n\t\ttype: authored.type,\n\t\toptions: authored.options\n\t};\n\treturn authored.expression !== void 0 ? {\n\t\t...carried,\n\t\texpression: authored.expression\n\t} : {\n\t\t...carried,\n\t\tcolumns: authored.columns ?? []\n\t};\n}\n//#endregion\nexport { lowerAuthoredIndex as n, exactNameBodyWarning as t };\n\n//# sourceMappingURL=index-naming-fQMLqyC4.mjs.map"],"mappings":";;;;AAIA,MAAM,2BAA2B;;;;;;AAMjC,MAAM,8BAA8B;CACnC,OAAO;CACP,QAAQ;CACR,OAAO;AACR;;AAEA,MAAM,qBAAqB;CAC1B,OAAO;CACP,QAAQ;CACR,OAAO;AACR;AACA,MAAM,+BAA+B;;;;;;;;;AASrC,SAAS,qBAAqB,SAAS,WAAW;CACjD,MAAM,OAAO,GAAG,QAAQ,IAAI,UAAU;CACtC,MAAM,UAAU,mBAAmB;CACnC,MAAM,OAAO,oBAAoB,yBAAyB,GAAG,4BAA4B;CACzF,OAAO;EACN,MAAM;EACN,SAAS,GAAG,KAAK,QAAQ,QAAQ,GAAG;EACpC;EACA,SAAS,eAAe,QAAQ,GAAG;CACpC;AACD;;;;;;;;AAQA,SAAS,mBAAmB,WAAW,UAAU,UAAU;CAC1D,IAAI,SAAS,YAAY,KAAK,OAAO,SAAS,eAAe,KAAK,IAAI,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,oFAAoF;CACxO,IAAI,SAAS,QAAQ,KAAK,KAAK,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,UAAU,SAAS,IAAI,cAAc,UAAU,mGAAmG;CAC5P,IAAI,SAAS,eAAe,KAAK,KAAK,SAAS,SAAS,KAAK,KAAK,SAAS,QAAQ,KAAK,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,8IAA8I;CACvT,IAAI,SAAS,YAAY,KAAK,KAAK,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,kKAAkK;CAC7S,MAAM,SAAS,SAAS,UAAU;CAClC,IAAI,SAAS,QAAQ,KAAK,GAAG;EAC5B,IAAI,SAAS,eAAe,KAAK,KAAK,SAAS,UAAU,KAAK,GAAG;GAChE,MAAM,UAAU,qBAAqB,SAAS,SAAS,GAAG;GAC1D,IAAI,aAAa,KAAK,GAAG,SAAS,KAAK,OAAO;QACzC,uBAAuB,CAAC,OAAO,CAAC;EACtC;EACA,MAAM,UAAU;GACf,QAAQ;IACP,MAAM;IACN,MAAM,SAAS;GAChB;GACA,OAAO,SAAS;GAChB;GACA,MAAM,SAAS;GACf,SAAS,SAAS;EACnB;EACA,OAAO,SAAS,eAAe,KAAK,IAAI;GACvC,GAAG;GACH,YAAY,SAAS;EACtB,IAAI;GACH,GAAG;GACH,SAAS,SAAS,WAAW,CAAC;EAC/B;CACD;CACA,MAAM,SAAS,SAAS,QAAQ,iBAAiB,WAAW,SAAS,WAAW,CAAC,CAAC;CAClF,2BAA2B,QAAQ,cAAc;CACjD,MAAM,UAAU;EACf,QAAQ;GACP,MAAM;GACN;GACA,MAAM,wBAAwB;IAC7B,GAAG,SAAS,YAAY,KAAK,KAAK,EAAE,SAAS,SAAS,QAAQ;IAC9D,GAAG,SAAS,eAAe,KAAK,KAAK,EAAE,YAAY,SAAS,WAAW;IACvE,GAAG,SAAS,UAAU,KAAK,KAAK,EAAE,OAAO,SAAS,MAAM;IACxD;IACA,GAAG,SAAS,SAAS,KAAK,KAAK,EAAE,MAAM,SAAS,KAAK;IACrD,GAAG,SAAS,YAAY,KAAK,KAAK,EAAE,SAAS,SAAS,QAAQ;GAC/D,CAAC;EACF;EACA,OAAO,SAAS;EAChB;EACA,MAAM,SAAS;EACf,SAAS,SAAS;CACnB;CACA,OAAO,SAAS,eAAe,KAAK,IAAI;EACvC,GAAG;EACH,YAAY,SAAS;CACtB,IAAI;EACH,GAAG;EACH,SAAS,SAAS,WAAW,CAAC;CAC/B;AACD"}