@prisma/orm-family-sql 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1

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 (564) hide show
  1. package/README.md +2 -6
  2. package/dist/{aggregate-descriptor-registry-C7hel5O7.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +5 -5
  3. package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
  4. package/dist/ast-D0miQ1B6.mjs +372 -0
  5. package/dist/ast-D0miQ1B6.mjs.map +1 -0
  6. package/dist/ast-YEMe_B8z.d.mts +292 -0
  7. package/dist/ast-YEMe_B8z.d.mts.map +1 -0
  8. package/dist/attribute-specs-DA_RwQFB.d.mts +114 -0
  9. package/dist/attribute-specs-DA_RwQFB.d.mts.map +1 -0
  10. package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
  11. package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
  12. package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
  13. package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
  14. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts +9 -0
  15. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map +1 -0
  16. package/dist/builder.d.mts +4 -3
  17. package/dist/builder__runtime.d.mts +29 -31
  18. package/dist/builder__runtime.d.mts.map +1 -1
  19. package/dist/builder__runtime.mjs +261 -191
  20. package/dist/builder__runtime.mjs.map +1 -1
  21. package/dist/builder__types.d.mts +6 -3
  22. package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
  23. package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
  24. package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
  25. package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
  26. package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
  27. package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
  28. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +13 -40
  29. package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
  30. package/dist/collection-methods-BB8YH69u.d.mts +1 -0
  31. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts +77 -0
  32. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map +1 -0
  33. package/dist/{config-types-D9fdKG3g.d.mts → config-types-C-1mIiJO.d.mts} +5 -5
  34. package/dist/config-types-C-1mIiJO.d.mts.map +1 -0
  35. package/dist/{config-types-gAm54C_v.mjs → config-types-DkEeq_qq.mjs} +10 -6
  36. package/dist/config-types-DkEeq_qq.mjs.map +1 -0
  37. package/dist/{contract-builder-D4a5dT7j.mjs → contract-builder-50lF0kz1.mjs} +431 -226
  38. package/dist/contract-builder-50lF0kz1.mjs.map +1 -0
  39. package/dist/contract-builder-C_Zi57iD.d.mts +1967 -0
  40. package/dist/contract-builder-C_Zi57iD.d.mts.map +1 -0
  41. package/dist/contract-emitter.d.mts +4 -7
  42. package/dist/contract-emitter.d.mts.map +1 -1
  43. package/dist/contract-emitter.mjs +1 -1
  44. package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
  45. package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
  46. package/dist/contract-prisma7__provider.d.mts +97 -0
  47. package/dist/contract-prisma7__provider.d.mts.map +1 -0
  48. package/dist/contract-prisma7__provider.mjs +2011 -0
  49. package/dist/contract-prisma7__provider.mjs.map +1 -0
  50. package/dist/contract-psl.d.mts +18 -29
  51. package/dist/contract-psl.d.mts.map +1 -1
  52. package/dist/contract-psl.mjs +1 -1
  53. package/dist/contract-psl__attribute-specs.d.mts +2 -0
  54. package/dist/contract-psl__attribute-specs.mjs +2 -0
  55. package/dist/contract-psl__default-table-name.d.mts +7 -0
  56. package/dist/contract-psl__default-table-name.d.mts.map +1 -0
  57. package/dist/contract-psl__default-table-name.mjs +2 -0
  58. package/dist/contract-psl__diagnostics.d.mts +12 -0
  59. package/dist/contract-psl__diagnostics.d.mts.map +1 -0
  60. package/dist/contract-psl__diagnostics.mjs +2 -0
  61. package/dist/contract-psl__map-names.d.mts +16 -0
  62. package/dist/contract-psl__map-names.d.mts.map +1 -0
  63. package/dist/contract-psl__map-names.mjs +21 -0
  64. package/dist/contract-psl__map-names.mjs.map +1 -0
  65. package/dist/contract-psl__provider.d.mts +3 -3
  66. package/dist/contract-psl__provider.d.mts.map +1 -1
  67. package/dist/contract-psl__provider.mjs +95 -46
  68. package/dist/contract-psl__provider.mjs.map +1 -1
  69. package/dist/contract-ts.d.mts +5 -5
  70. package/dist/contract-ts.mjs +5 -4
  71. package/dist/contract-ts__config-types.d.mts +1 -1
  72. package/dist/contract-ts__config-types.mjs +1 -1
  73. package/dist/contract-ts__contract-builder.d.mts +4 -4
  74. package/dist/contract-ts__contract-builder.mjs +4 -3
  75. package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
  76. package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
  77. package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-DuB35or0.d.mts} +3 -3
  78. package/dist/contract-view-DuB35or0.d.mts.map +1 -0
  79. package/dist/contract.d.mts +30 -28
  80. package/dist/contract.mjs +23 -18
  81. package/dist/contract__authored-check-naming.d.mts +1 -1
  82. package/dist/contract__authored-check-naming.mjs +1 -1
  83. package/dist/contract__canonicalization-hooks.d.mts +1 -1
  84. package/dist/contract__canonicalization-hooks.mjs +1 -1
  85. package/dist/contract__contract-view.d.mts +1 -1
  86. package/dist/contract__contract-view.mjs +1 -1
  87. package/dist/contract__data-type-support.d.mts +2 -0
  88. package/dist/contract__data-type-support.mjs +2 -0
  89. package/dist/contract__data-type.d.mts +2 -0
  90. package/dist/contract__data-type.mjs +3 -0
  91. package/dist/contract__entity-handle-lowering-hook.d.mts +2 -2
  92. package/dist/contract__entity-handle-lowering-hook.mjs +2 -2
  93. package/dist/contract__entity-kinds.d.mts +1 -1
  94. package/dist/contract__entity-kinds.mjs +1 -1
  95. package/dist/contract__factories.d.mts +1 -1
  96. package/dist/contract__factories.mjs +1 -1
  97. package/dist/contract__foreign-key-materialization.d.mts +2 -2
  98. package/dist/contract__foreign-key-materialization.mjs +3 -2
  99. package/dist/contract__index-naming.d.mts +2 -2
  100. package/dist/contract__index-naming.mjs +2 -2
  101. package/dist/contract__index-type-validation.d.mts +2 -2
  102. package/dist/contract__index-type-validation.mjs +1 -1
  103. package/dist/contract__index-types.d.mts +3 -3
  104. package/dist/contract__index-types.mjs +2 -2
  105. package/dist/contract__referential-action-sql.d.mts +1 -1
  106. package/dist/contract__referential-action-sql.mjs +1 -1
  107. package/dist/contract__resolve-storage-table.d.mts +1 -1
  108. package/dist/contract__resolve-storage-table.mjs +1 -1
  109. package/dist/contract__sql-expression.d.mts +2 -0
  110. package/dist/contract__sql-expression.mjs +2 -0
  111. package/dist/contract__types.d.mts +12 -12
  112. package/dist/contract__types.mjs +4 -4
  113. package/dist/contract__validators.d.mts +2 -2
  114. package/dist/contract__validators.mjs +3 -3
  115. package/dist/contract__value-set-derivation-hook.d.mts +1 -1
  116. package/dist/contract__value-set-derivation-hook.mjs +1 -1
  117. package/dist/control-BK50zF6c.mjs +2721 -0
  118. package/dist/control-BK50zF6c.mjs.map +1 -0
  119. package/dist/control-ChAUdOOu.d.mts +1416 -0
  120. package/dist/control-ChAUdOOu.d.mts.map +1 -0
  121. package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts} +27 -44
  122. package/dist/control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map +1 -0
  123. package/dist/control-adapter-NZ2kKc4x.d.mts +13 -0
  124. package/dist/control-adapter-NZ2kKc4x.d.mts.map +1 -0
  125. package/dist/control-adapter-SlQkTEwT.mjs +16 -0
  126. package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
  127. package/dist/data-type-BFSpaotu.mjs +52 -0
  128. package/dist/data-type-BFSpaotu.mjs.map +1 -0
  129. package/dist/data-type-DJIvKQHf.d.mts +158 -0
  130. package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
  131. package/dist/data-type-support-BhSoPUFj.mjs +9 -0
  132. package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
  133. package/dist/data-type-support-CXpA0ex-.d.mts +7 -0
  134. package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
  135. package/dist/{db-D18PrXKW-DvTv4JFn.d.mts → db-D1d75IvM-D4mRDC6w.d.mts} +123 -128
  136. package/dist/db-D1d75IvM-D4mRDC6w.d.mts.map +1 -0
  137. package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-By5mT2_S-CdaaFvsX.d.mts} +24 -29
  138. package/dist/ddl-types-By5mT2_S-CdaaFvsX.d.mts.map +1 -0
  139. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts +39 -0
  140. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
  141. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs +9 -0
  142. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
  143. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs +1508 -0
  144. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
  145. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DpPkO6Dt-9U9UJZOo.d.mts} +4 -4
  146. package/dist/derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map +1 -0
  147. package/dist/diagnostics-RHJxoiIk.mjs +23 -0
  148. package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
  149. package/dist/{diff-DbTNVm2f.d.mts → diff-1qHOLoUB.d.mts} +23 -10
  150. package/dist/diff-1qHOLoUB.d.mts.map +1 -0
  151. package/dist/diff-C1rFOhek.mjs +21 -0
  152. package/dist/diff-C1rFOhek.mjs.map +1 -0
  153. package/dist/{dist-ZK6oeI5e.mjs → dist-C8Y-PPuE.mjs} +36 -212
  154. package/dist/dist-C8Y-PPuE.mjs.map +1 -0
  155. package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
  156. package/dist/dist-CHz1hF8M.mjs.map +1 -0
  157. package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
  158. package/dist/dist-CMDXybwm.mjs.map +1 -0
  159. package/dist/{driver-types-BQtRkOJ0-Bv2RPSfr.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +11 -2
  160. package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
  161. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs +16 -0
  162. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
  163. package/dist/{entity-handle-lowering-hook-CIvRKBfa.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +8 -11
  164. package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
  165. package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
  166. package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
  167. package/dist/{entity-kinds-D7vwoN_T-CCBwFJy0.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +31 -28
  168. package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
  169. package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
  170. package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
  171. package/dist/errors.d.mts +1 -1
  172. package/dist/errors.d.mts.map +1 -1
  173. package/dist/errors.mjs +1 -1
  174. package/dist/exports-C3wGYtID-D65DEUTC.mjs +2389 -0
  175. package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
  176. package/dist/{expression-FJK6Ar-d.d.mts → expression-6ld_ZQL6-fOuazzzm.d.mts} +37 -16
  177. package/dist/expression-6ld_ZQL6-fOuazzzm.d.mts.map +1 -0
  178. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts +22 -0
  179. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +1 -0
  180. package/dist/expression-D8HstQiB.d.mts +2 -0
  181. package/dist/{expression-CX5mTA-z.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +41 -18
  182. package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
  183. package/dist/{factories-SVor5xIT.mjs → factories-Crobuxwn.mjs} +27 -20
  184. package/dist/factories-Crobuxwn.mjs.map +1 -0
  185. package/dist/{factories-P3qBQhO-.d.mts → factories-DbNP9qfs.d.mts} +16 -10
  186. package/dist/factories-DbNP9qfs.d.mts.map +1 -0
  187. package/dist/family.d.mts +17 -13
  188. package/dist/family.mjs +17 -12
  189. package/dist/family__control-adapter.d.mts +3 -3
  190. package/dist/family__control-adapter.mjs +2 -1
  191. package/dist/family__control.d.mts +5 -4
  192. package/dist/family__control.mjs +4 -4
  193. package/dist/family__diff.d.mts +2 -3
  194. package/dist/family__diff.mjs +2 -2
  195. package/dist/family__ir.d.mts +1 -1
  196. package/dist/family__ir.mjs +2 -2
  197. package/dist/family__migration.d.mts +1 -1
  198. package/dist/family__migration.mjs +1 -1
  199. package/dist/family__pack.d.mts +2 -249
  200. package/dist/family__pack.mjs +3 -18
  201. package/dist/family__psl-build.d.mts +3 -0
  202. package/dist/family__psl-build.mjs +3 -0
  203. package/dist/family__psl-infer.d.mts +2 -2
  204. package/dist/family__psl-infer.mjs +2 -2
  205. package/dist/family__runtime.d.mts +2 -2
  206. package/dist/family__runtime.mjs +2 -2
  207. package/dist/family__verify.d.mts +1 -1
  208. package/dist/family__verify.mjs +1 -1
  209. package/dist/foreign-key-materialization-48P2V8on.d.mts +98 -0
  210. package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
  211. package/dist/foreign-key-materialization-BM59w_Xg.mjs +287 -0
  212. package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
  213. package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +21 -5
  214. package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
  215. package/dist/functions-CsOoN7I3.mjs +88 -0
  216. package/dist/functions-CsOoN7I3.mjs.map +1 -0
  217. package/dist/functions-EW-RrRn3.d.mts +73 -0
  218. package/dist/functions-EW-RrRn3.d.mts.map +1 -0
  219. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs +544 -0
  220. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs.map +1 -0
  221. package/dist/index-7nHHQsAj.d.mts +606 -0
  222. package/dist/index-7nHHQsAj.d.mts.map +1 -0
  223. package/dist/{index-C5I8D-MB.d.mts → index-Nqc3OHR_.d.mts} +4 -5
  224. package/dist/index-Nqc3OHR_.d.mts.map +1 -0
  225. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs +109 -0
  226. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
  227. package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +35 -9
  228. package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
  229. package/dist/{index-naming-Ct65z5Xk.d.mts → index-naming-Cs6wwia3.d.mts} +15 -5
  230. package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
  231. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts +67 -0
  232. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts.map +1 -0
  233. package/dist/index-reference-BQSrkRfT.mjs +55 -0
  234. package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
  235. package/dist/index-reference-D8ewQRJr.d.mts +1 -0
  236. package/dist/index-type-validation-DJEMmmw0.mjs +42 -0
  237. package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
  238. package/dist/index-type-validation-fGGwAHWc.d.mts +16 -0
  239. package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
  240. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts +66 -0
  241. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
  242. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs +95 -0
  243. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
  244. package/dist/index-types-snhtt_Fo.d.mts +1 -0
  245. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs +2280 -0
  246. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +1 -0
  247. package/dist/{ir-Bghjt-FG.d.mts → ir-BvptQsFW.d.mts} +11 -5
  248. package/dist/ir-BvptQsFW.d.mts.map +1 -0
  249. package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
  250. package/dist/ir-DzsUDO8e.mjs.map +1 -0
  251. package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-DHkW6pRr-DM6hd9iZ.d.mts} +5 -5
  252. package/dist/middleware-DHkW6pRr-DM6hd9iZ.d.mts.map +1 -0
  253. package/dist/middleware-gqy3l13N.d.mts +1 -0
  254. package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
  255. package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
  256. package/dist/{migration-CK4oePIo.mjs → migration-BJQjkqFz.mjs} +4 -4
  257. package/dist/migration-BJQjkqFz.mjs.map +1 -0
  258. package/dist/{migration-CjDRZNep.d.mts → migration-Cxmpzaz0.d.mts} +6 -6
  259. package/dist/migration-Cxmpzaz0.d.mts.map +1 -0
  260. package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +9 -14
  261. package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
  262. package/dist/{naming-DKr4TJd7-Cszhq9RV.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +20 -31
  263. package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
  264. package/dist/{ddl-types-BGdnAbXo-DKPHPUGx.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +24 -11
  265. package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
  266. package/dist/operations.d.mts +1 -1
  267. package/dist/operations.mjs +1 -1
  268. package/dist/orm-client.d.mts +817 -267
  269. package/dist/orm-client.d.mts.map +1 -1
  270. package/dist/orm-client.mjs +4719 -2942
  271. package/dist/orm-client.mjs.map +1 -1
  272. package/dist/pack-DA8HZ2mo.d.mts +535 -0
  273. package/dist/pack-DA8HZ2mo.d.mts.map +1 -0
  274. package/dist/pack-gSvGQWqs.mjs +80 -0
  275. package/dist/pack-gSvGQWqs.mjs.map +1 -0
  276. package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-Cr4azjnG-CuL8FqXC.d.mts} +12 -8
  277. package/dist/plan-Cr4azjnG-CuL8FqXC.d.mts.map +1 -0
  278. package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
  279. package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
  280. package/dist/plan-Di6Gs2JD.d.mts +2 -0
  281. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs +42 -0
  282. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
  283. package/dist/psl-build-DFBG6vhz.mjs +426 -0
  284. package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
  285. package/dist/psl-build-RelubU2E.d.mts +112 -0
  286. package/dist/psl-build-RelubU2E.d.mts.map +1 -0
  287. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts +24 -0
  288. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +1 -0
  289. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs +1960 -0
  290. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
  291. package/dist/psl-infer--g4i84Go.mjs +201 -0
  292. package/dist/psl-infer--g4i84Go.mjs.map +1 -0
  293. package/dist/psl-infer-DzoxPZGd.d.mts +80 -0
  294. package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
  295. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs +66 -0
  296. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
  297. package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-BCEoKy0_-CzmyavC9.d.mts} +20 -49
  298. package/dist/query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map +1 -0
  299. package/dist/query-lane-context-VqH0mS9B.d.mts +1 -0
  300. package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
  301. package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
  302. package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
  303. package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
  304. package/dist/relational-core.d.mts +14 -13
  305. package/dist/relational-core.mjs +8 -8
  306. package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
  307. package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
  308. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  309. package/dist/relational-core__ast.d.mts +5 -5
  310. package/dist/relational-core__ast.mjs +5 -5
  311. package/dist/relational-core__codec-descriptor-registry.d.mts +7 -8
  312. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
  313. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  314. package/dist/relational-core__collection-methods.d.mts +3 -0
  315. package/dist/relational-core__contract-free.d.mts +18 -8
  316. package/dist/relational-core__contract-free.d.mts.map +1 -1
  317. package/dist/relational-core__contract-free.mjs +26 -10
  318. package/dist/relational-core__contract-free.mjs.map +1 -1
  319. package/dist/relational-core__expression.d.mts +4 -2
  320. package/dist/relational-core__expression.mjs +2 -2
  321. package/dist/relational-core__functions.d.mts +2 -0
  322. package/dist/relational-core__functions.mjs +2 -0
  323. package/dist/relational-core__index-reference.d.mts +3 -0
  324. package/dist/relational-core__index-reference.mjs +2 -0
  325. package/dist/relational-core__middleware.d.mts +2 -2
  326. package/dist/relational-core__middleware.mjs +1 -1
  327. package/dist/relational-core__plan.d.mts +4 -4
  328. package/dist/relational-core__plan.mjs +1 -1
  329. package/dist/relational-core__query-lane-context.d.mts +3 -3
  330. package/dist/relational-core__types.d.mts +2 -2
  331. package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
  332. package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
  333. package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
  334. package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
  335. package/dist/{runtime-tIHpGCcG.mjs → runtime-6tH1yOxK.mjs} +6 -6
  336. package/dist/runtime-6tH1yOxK.mjs.map +1 -0
  337. package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CF6rAlE5.d.mts} +7 -8
  338. package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
  339. package/dist/runtime.d.mts +5 -5
  340. package/dist/runtime.mjs +2 -1799
  341. package/dist/runtime__internal__prepared-query.d.mts +2 -2
  342. package/dist/runtime__internal__prepared-query.mjs +2 -2
  343. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DmP74bB8-tqHKiJ88.d.mts} +6 -6
  344. package/dist/schema-differ-DmP74bB8-tqHKiJ88.d.mts.map +1 -0
  345. package/dist/schema-ir.d.mts +2 -2
  346. package/dist/schema-ir.mjs +2 -2
  347. package/dist/schema-ir__naming.d.mts +1 -1
  348. package/dist/schema-ir__naming.mjs +1 -1
  349. package/dist/schema-ir__types.d.mts +3 -3
  350. package/dist/schema-ir__types.mjs +2 -2
  351. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +50 -8
  352. package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
  353. package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
  354. package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
  355. package/dist/{serialized-index-nBTwanKy-_ddEK4tk.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
  356. package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
  357. package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +41 -16
  358. package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
  359. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs +400 -0
  360. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
  361. package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts} +3 -3
  362. package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +1 -0
  363. package/dist/sql-expression-B4BrhGPi.d.mts +62 -0
  364. package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
  365. package/dist/sql-expression-CKgKznXS.mjs +137 -0
  366. package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
  367. package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
  368. package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
  369. package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
  370. package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
  371. package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +19 -22
  372. package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
  373. package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +17 -24
  374. package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
  375. package/dist/{storage-table-ZzbR-xzQ-BRoTQE_2.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +12 -9
  376. package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
  377. package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
  378. package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
  379. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs +45 -0
  380. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
  381. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts +115 -0
  382. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts.map +1 -0
  383. package/dist/types-B9wSEUsV.d.mts +1 -0
  384. package/dist/{types-CUsJrvEl.mjs → types-CTdSkl0s.mjs} +13 -6
  385. package/dist/types-CTdSkl0s.mjs.map +1 -0
  386. package/dist/types-CkAd8SWm.d.mts +57 -0
  387. package/dist/types-CkAd8SWm.d.mts.map +1 -0
  388. package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-Cq6ImLAB-RlU4jJAX.d.mts} +27 -41
  389. package/dist/types-Cq6ImLAB-RlU4jJAX.d.mts.map +1 -0
  390. package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +141 -86
  391. package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
  392. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts +273 -0
  393. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
  394. package/dist/{types-4YenawkP-CwaaZSid.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +181 -80
  395. package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
  396. package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-DriMIMNQ-BkbsW7w3.d.mts} +68 -34
  397. package/dist/types-DriMIMNQ-BkbsW7w3.d.mts.map +1 -0
  398. package/dist/{types-Dt4e_jC--COeP8xzN.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +83 -17
  399. package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
  400. package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-TXO7x1BA-CYYIY8NI.d.mts} +14 -14
  401. package/dist/types-TXO7x1BA-CYYIY8NI.d.mts.map +1 -0
  402. package/dist/types-ljUNyiWe.d.mts +1 -0
  403. package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
  404. package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
  405. package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +12 -3
  406. package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
  407. package/dist/{validators-CrWD6bSP.mjs → validators-BwA7ttZM.mjs} +0 -0
  408. package/dist/validators-BwA7ttZM.mjs.map +1 -0
  409. package/dist/{validators-Belo8QqM.d.mts → validators-FJs8HvFr.d.mts} +54 -16
  410. package/dist/validators-FJs8HvFr.d.mts.map +1 -0
  411. package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
  412. package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
  413. package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
  414. package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
  415. package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +8 -7
  416. package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
  417. package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
  418. package/dist/verify-DHXbuZPB.d.mts.map +1 -0
  419. package/package.json +33 -22
  420. package/dist/aggregate-descriptor-registry-C7hel5O7.mjs.map +0 -1
  421. package/dist/ast-HFcfQZr-.d.mts +0 -206
  422. package/dist/ast-HFcfQZr-.d.mts.map +0 -1
  423. package/dist/ast-Lbl4VwqP.mjs +0 -325
  424. package/dist/ast-Lbl4VwqP.mjs.map +0 -1
  425. package/dist/authored-check-naming-BWBe-PVE.d.mts.map +0 -1
  426. package/dist/authored-check-naming-Hf9990DV.mjs.map +0 -1
  427. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs +0 -316
  428. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs.map +0 -1
  429. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
  430. package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
  431. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +0 -1
  432. package/dist/codec-descriptor-registry-N0dhtKaH.mjs.map +0 -1
  433. package/dist/config-types-D9fdKG3g.d.mts.map +0 -1
  434. package/dist/config-types-gAm54C_v.mjs.map +0 -1
  435. package/dist/contract-builder-CG_tGDbB.d.mts +0 -1360
  436. package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
  437. package/dist/contract-builder-D4a5dT7j.mjs.map +0 -1
  438. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
  439. package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
  440. package/dist/contract-view-CPHxoAEX.d.mts.map +0 -1
  441. package/dist/contract__pack-types.d.mts +0 -2
  442. package/dist/control-D3cB5YQp.mjs +0 -1267
  443. package/dist/control-D3cB5YQp.mjs.map +0 -1
  444. package/dist/control-DTLJ1WtZ.d.mts +0 -945
  445. package/dist/control-DTLJ1WtZ.d.mts.map +0 -1
  446. package/dist/control-adapter-C99J7aEF-B7eQd7vD.d.mts.map +0 -1
  447. package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
  448. package/dist/db-D18PrXKW-DvTv4JFn.d.mts.map +0 -1
  449. package/dist/ddl-types-BGdnAbXo-DKPHPUGx.mjs.map +0 -1
  450. package/dist/ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map +0 -1
  451. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs +0 -1057
  452. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs.map +0 -1
  453. package/dist/derived-checks-DPdD01O0-DGqOFjs6.d.mts.map +0 -1
  454. package/dist/diff-B16bL_IR.mjs +0 -13
  455. package/dist/diff-B16bL_IR.mjs.map +0 -1
  456. package/dist/diff-DbTNVm2f.d.mts.map +0 -1
  457. package/dist/dist-C_q1_QR9.mjs.map +0 -1
  458. package/dist/dist-ZK6oeI5e.mjs.map +0 -1
  459. package/dist/dist-x6jvtkKM.mjs.map +0 -1
  460. package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +0 -1
  461. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +0 -1
  462. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +0 -11
  463. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +0 -1
  464. package/dist/entity-kinds-B5cUFU22.d.mts.map +0 -1
  465. package/dist/entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map +0 -1
  466. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
  467. package/dist/expression-CX5mTA-z.mjs.map +0 -1
  468. package/dist/expression-FJK6Ar-d.d.mts.map +0 -1
  469. package/dist/factories-P3qBQhO-.d.mts.map +0 -1
  470. package/dist/factories-SVor5xIT.mjs.map +0 -1
  471. package/dist/family__pack.d.mts.map +0 -1
  472. package/dist/family__pack.mjs.map +0 -1
  473. package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
  474. package/dist/foreign-key-materialization-CkvOzJWy.d.mts +0 -65
  475. package/dist/foreign-key-materialization-CkvOzJWy.d.mts.map +0 -1
  476. package/dist/foreign-key-materialization-Cu7-7LHl.mjs +0 -73
  477. package/dist/foreign-key-materialization-Cu7-7LHl.mjs.map +0 -1
  478. package/dist/index-C-vQOMY_.d.mts +0 -84
  479. package/dist/index-C-vQOMY_.d.mts.map +0 -1
  480. package/dist/index-C5I8D-MB.d.mts.map +0 -1
  481. package/dist/index-naming-Ct65z5Xk.d.mts.map +0 -1
  482. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
  483. package/dist/index-type-validation-COH4d78M.mjs +0 -17
  484. package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
  485. package/dist/index-type-validation-CZ5L2lli.d.mts +0 -10
  486. package/dist/index-type-validation-CZ5L2lli.d.mts.map +0 -1
  487. package/dist/index-types-CNhHgKHi.d.mts +0 -1
  488. package/dist/index-types-DJQ_xwaE.mjs +0 -40
  489. package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
  490. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
  491. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
  492. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs +0 -3680
  493. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs.map +0 -1
  494. package/dist/ir-Bghjt-FG.d.mts.map +0 -1
  495. package/dist/ir-I-xciGUH.mjs.map +0 -1
  496. package/dist/lane-query-builder.d.mts +0 -236
  497. package/dist/lane-query-builder.d.mts.map +0 -1
  498. package/dist/lane-query-builder.mjs +0 -67
  499. package/dist/lane-query-builder.mjs.map +0 -1
  500. package/dist/middleware--TtoxUiW.d.mts +0 -1
  501. package/dist/middleware-AhTz1BOW-th-Suxuf.d.mts.map +0 -1
  502. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +0 -1
  503. package/dist/migration-CK4oePIo.mjs.map +0 -1
  504. package/dist/migration-CjDRZNep.d.mts.map +0 -1
  505. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
  506. package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +0 -1
  507. package/dist/pack-types-BcLTpwbv.d.mts +0 -14
  508. package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
  509. package/dist/plan-BHLdb0Z7.d.mts +0 -2
  510. package/dist/plan-CDxduYaN-pLIyyJaB.d.mts.map +0 -1
  511. package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
  512. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +0 -22
  513. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +0 -1
  514. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts +0 -529
  515. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts.map +0 -1
  516. package/dist/psl-infer-CCAD6FWA.d.mts +0 -119
  517. package/dist/psl-infer-CCAD6FWA.d.mts.map +0 -1
  518. package/dist/psl-infer-Dk5kgKre.mjs +0 -362
  519. package/dist/psl-infer-Dk5kgKre.mjs.map +0 -1
  520. package/dist/query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map +0 -1
  521. package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
  522. package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
  523. package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
  524. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
  525. package/dist/resolve-storage-table-Nyrgk4h8.d.mts.map +0 -1
  526. package/dist/runtime-DpKF2Yu2.d.mts.map +0 -1
  527. package/dist/runtime-tIHpGCcG.mjs.map +0 -1
  528. package/dist/runtime.mjs.map +0 -1
  529. package/dist/schema-differ-DpG_gnur-DFAtGezx.d.mts.map +0 -1
  530. package/dist/schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map +0 -1
  531. package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +0 -1
  532. package/dist/serialized-index-nBTwanKy-_ddEK4tk.mjs.map +0 -1
  533. package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
  534. package/dist/sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map +0 -1
  535. package/dist/sql-index-ByAAE7K8-DKj2V86p.d.mts.map +0 -1
  536. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
  537. package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
  538. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
  539. package/dist/storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map +0 -1
  540. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
  541. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +0 -173
  542. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
  543. package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
  544. package/dist/types-B0msOnBM.d.mts +0 -1
  545. package/dist/types-BDUG29Df-LE85dIXP.d.mts +0 -161
  546. package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +0 -1
  547. package/dist/types-CUsJrvEl.mjs.map +0 -1
  548. package/dist/types-CyxGtOOh-BggSa6Fe.d.mts.map +0 -1
  549. package/dist/types-Dt4e_jC--COeP8xzN.mjs.map +0 -1
  550. package/dist/types-Dwcw0F8X.d.mts +0 -1
  551. package/dist/types-IqZMLrFC-DcH8v_u3.d.mts.map +0 -1
  552. package/dist/types-UcHa2cTe.d.mts +0 -17
  553. package/dist/types-UcHa2cTe.d.mts.map +0 -1
  554. package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
  555. package/dist/types-v3qxLLxo-DCeKv7yY.d.mts.map +0 -1
  556. package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
  557. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
  558. package/dist/validators-Belo8QqM.d.mts.map +0 -1
  559. package/dist/validators-CrWD6bSP.mjs.map +0 -1
  560. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
  561. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
  562. package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
  563. package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
  564. /package/dist/{contract__pack-types.mjs → relational-core__collection-methods.mjs} +0 -0
@@ -0,0 +1,292 @@
1
+ import { Dt as ProjectionItem, E as CodecRef$1, ft as LockWaitPolicy, gt as LoweredStatement, h as AnyQueryAst, m as AnyParamRef } from "./types-DriMIMNQ-BkbsW7w3.mjs";
2
+ import { c as SqlQueryable } from "./driver-types-DRsYeq3j-BimeCnUk.mjs";
3
+ import "./ddl-types-By5mT2_S-CdaaFvsX.mjs";
4
+ import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
5
+ import { CodecCallContext, CodecDescriptorTemplateImpl, CodecImpl, CodecInstanceContext, CodecLookupWithDescriptors, DataTypeValue } from "@prisma/orm-framework/components/codec";
6
+ import { ColumnDefaultLiteralInputValue, ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
7
+ //#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/ast.d.mts
8
+ //#region src/ast/adapter-types.d.ts
9
+ type AdapterTarget = string;
10
+ /**
11
+ * Outcome of an adapter's marker read. `no-table` means the marker storage itself is absent
12
+ * (e.g. attaching to a database that was never `db init`'d); `absent` means the storage exists
13
+ * but holds no row for the requested space; `present` carries the parsed record. Callers
14
+ * distinguish these to produce appropriate log diagnostics for each case.
15
+ */
16
+ type MarkerReadResult = {
17
+ readonly kind: 'present';
18
+ readonly record: ContractMarkerRecord;
19
+ } | {
20
+ readonly kind: 'absent';
21
+ } | {
22
+ readonly kind: 'no-table';
23
+ };
24
+ interface AdapterProfile<TTarget extends AdapterTarget = AdapterTarget> {
25
+ readonly id: string;
26
+ readonly target: TTarget;
27
+ readonly capabilities: Record<string, unknown>;
28
+ /**
29
+ * Reads the contract marker via the supplied queryable. The adapter owns the full flow — probing for the marker storage, issuing the read, and decoding the row — so callers receive a tagged result rather than a raw driver error when the marker storage is absent.
30
+ */
31
+ readMarker(queryable: SqlQueryable): Promise<MarkerReadResult>;
32
+ }
33
+ interface LowererContext<TContract = unknown> {
34
+ readonly contract: TContract;
35
+ readonly params?: readonly unknown[];
36
+ }
37
+ type Lowerer<Ast = unknown, TContract = unknown, TBody = LoweredStatement> = (ast: Ast, context: LowererContext<TContract>) => TBody;
38
+ /**
39
+ * Lowers a query AST into a target-specific executable body (typically `LoweredStatement` for SQL adapters). The `lower` method returns the body directly; per-statement metadata, when needed, lives on the body itself (e.g. `LoweredStatement.annotations`). Adapter-level metadata such as the profile id is reachable via `profile.id` for callers that genuinely need it.
40
+ */
41
+ interface Adapter<Ast = unknown, TContract = unknown, TBody = LoweredStatement> {
42
+ readonly profile: AdapterProfile;
43
+ lower(ast: Ast, context: LowererContext<TContract>): TBody;
44
+ }
45
+ //#endregion
46
+ //#region src/ast/ddl-default.d.ts
47
+ /** What a literal default renders as in DDL: SQL NULL, or the wire value the column's codec encoded. */
48
+ type EncodedLiteralDefault = {
49
+ readonly kind: 'sql-null';
50
+ } | {
51
+ readonly kind: 'wire';
52
+ readonly wire: unknown;
53
+ };
54
+ /** The column whose default is rendered, which a refusal names. */
55
+ interface LiteralDefaultColumn {
56
+ readonly table: string;
57
+ readonly column: string;
58
+ }
59
+ /**
60
+ * Reads a column's literal default as a value of the column's data type, converts it with the column's codec, built with its type parameters, and writes it with `toWire` for the DDL renderer to inline. `undefined` when no codec descriptor has the column's codec id, so the renderer inlines the value as written.
61
+ *
62
+ * A `Date` is the one authored value JSON has no notation for, so the codec reads it into a value of the column's type with `toDataTypeValue`, and the Date it reads back from that value is encoded: the type and the codec check it as they check any other default. A `null` the type or codec refuses is SQL NULL, because SQL NULL has no stored form of its own; a type that stores `null` (a JSON type) makes it the JSON value null. Any other value either refuses is a `CONTRACT.DEFAULT_INVALID` naming the column.
63
+ */
64
+ declare function encodeLiteralDefault(codecLookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, codecRef: CodecRef$1, value: ColumnDefaultLiteralInputValue, where: LiteralDefaultColumn): Promise<EncodedLiteralDefault | undefined>;
65
+ /**
66
+ * Reads and encodes each element of a list column's literal default with the column's codec, as {@link encodeLiteralDefault} does a single value, so a `null` element the codec refuses is SQL NULL. `undefined` when no codec descriptor has the column's codec id. An element the codec refuses is a `CONTRACT.DEFAULT_INVALID` naming the column and the element's 1-based position.
67
+ */
68
+ declare function encodeListLiteralDefault(codecLookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, codecRef: CodecRef$1, elements: readonly JsonValue[], where: LiteralDefaultColumn): Promise<readonly EncodedLiteralDefault[] | undefined>;
69
+ //#endregion
70
+ //#region src/ast/locking.d.ts
71
+ /** What a row lock was combined with when it was refused, as `meta.conflict` of `ORM.LOCK_INCOMPATIBLE`. */
72
+ type LockConflict = 'distinct' | 'distinctOn' | 'groupBy' | 'having' | 'aggregate' | 'subquery' | 'include' | 'includeRefinement' | 'mutation';
73
+ /** The `ORM.LOCK_INCOMPATIBLE` error for a lock refused because of `conflict`. */
74
+ declare function lockIncompatible(conflict: LockConflict, message: string): StructuredError;
75
+ /** A capability requirement: each group's flags that must be reported as `true`. */
76
+ type CapabilityRequirement = {
77
+ readonly [group: string]: {
78
+ readonly [flag: string]: true;
79
+ };
80
+ };
81
+ /** The capability each lock strength needs. */
82
+ declare const lockStrengthCapabilities: {
83
+ readonly forUpdate: {
84
+ readonly sql: {
85
+ readonly forUpdate: true;
86
+ };
87
+ };
88
+ readonly forNoKeyUpdate: {
89
+ readonly postgres: {
90
+ readonly forNoKeyUpdate: true;
91
+ };
92
+ };
93
+ readonly forShare: {
94
+ readonly sql: {
95
+ readonly forShare: true;
96
+ };
97
+ };
98
+ readonly forKeyShare: {
99
+ readonly postgres: {
100
+ readonly forKeyShare: true;
101
+ };
102
+ };
103
+ };
104
+ /** The capability each locking option needs; the wait-policy keys equal the `LockWaitPolicy` values. */
105
+ declare const lockOptionCapabilities: {
106
+ readonly of: {
107
+ readonly sql: {
108
+ readonly lockOf: true;
109
+ };
110
+ };
111
+ readonly nowait: {
112
+ readonly sql: {
113
+ readonly lockNowait: true;
114
+ };
115
+ };
116
+ readonly skipLocked: {
117
+ readonly sql: {
118
+ readonly lockSkipLocked: true;
119
+ };
120
+ };
121
+ };
122
+ type LockStrengthCapabilities = typeof lockStrengthCapabilities;
123
+ type LockOptionCapabilities = typeof lockOptionCapabilities;
124
+ /** The first flag in `requirement` that `capabilities` does not report as `true`, as `group.flag`. */
125
+ declare function missingCapability(capabilities: {
126
+ readonly [group: string]: {
127
+ readonly [flag: string]: unknown;
128
+ } | undefined;
129
+ }, requirement: CapabilityRequirement): string | undefined;
130
+ /** The wait-policy options of a locking method; each key exists only when its capability is reported. */
131
+ type LockWaitOptions<Capabilities> = (Capabilities extends LockOptionCapabilities['nowait'] ? {
132
+ readonly nowait?: true;
133
+ readonly skipLocked?: never;
134
+ } : never) | (Capabilities extends LockOptionCapabilities['skipLocked'] ? {
135
+ readonly skipLocked?: true;
136
+ readonly nowait?: never;
137
+ } : never) | {
138
+ readonly nowait?: never;
139
+ readonly skipLocked?: never;
140
+ };
141
+ /** The wait-policy options as a locking method receives them at run time. */
142
+ interface LockWaitRequest {
143
+ readonly nowait?: true;
144
+ readonly skipLocked?: true;
145
+ }
146
+ /** Turns `{ nowait, skipLocked }` into a wait policy, refusing both together with `ORM.ARGUMENT_INVALID`. */
147
+ declare function lockWaitPolicyOf(methodName: string, options: LockWaitRequest | undefined): LockWaitPolicy | undefined;
148
+ //#endregion
149
+ //#region src/ast/sql-codec-helpers.d.ts
150
+ /**
151
+ * Shared encode/decode constants and codec id literals for the five SQL base codecs (`sql/char@1`, `sql/varchar@1`, `sql/int@1`, `sql/float@1`, `sql/text@1`).
152
+ *
153
+ * The codec implementations live in `sql-codecs.ts` (TML-2357). This module retains only the conversion helpers the codec methods compose with — keeping a single source of truth for non-trivial conversions while the codec methods provide the framework-required `Promise<…>` boundary.
154
+ */
155
+ declare const SQL_CHAR_CODEC_ID: "sql/char@1";
156
+ declare const SQL_VARCHAR_CODEC_ID: "sql/varchar@1";
157
+ declare const SQL_INT_CODEC_ID: "sql/int@1";
158
+ declare const SQL_FLOAT_CODEC_ID: "sql/float@1";
159
+ declare const SQL_TEXT_CODEC_ID: "sql/text@1";
160
+ declare const SQL_RAW_CODEC_ID: "sql/raw@1";
161
+ declare const sqlCharEncode: (value: string) => string;
162
+ /** A `character` value as the database returns it, without the spaces that pad it to its length. Only spaces pad it, so a trailing tab or newline is part of the value. */
163
+ declare const sqlCharDecode: (wire: string) => string;
164
+ declare const sqlVarcharEncode: (value: string) => string;
165
+ declare const sqlVarcharDecode: (wire: string) => string;
166
+ declare const sqlIntEncode: (value: number) => number;
167
+ declare const sqlIntDecode: (wire: number) => number;
168
+ declare const sqlFloatEncode: (value: number) => number;
169
+ declare const sqlFloatDecode: (wire: number) => number;
170
+ declare const sqlTextEncode: (value: string) => string;
171
+ declare const sqlTextDecode: (wire: string) => string;
172
+ //#endregion
173
+ //#region src/ast/sql-codecs.d.ts
174
+ type LengthParams = {
175
+ readonly length?: number;
176
+ };
177
+ declare class SqlTextCodec extends CodecImpl<typeof SQL_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
178
+ toWire(value: string, _ctx: CodecCallContext): Promise<string>;
179
+ fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
180
+ fromDataTypeValue(value: DataTypeValue<string>): string;
181
+ toDataTypeValue(input: string): DataTypeValue;
182
+ }
183
+ declare class SqlTextDescriptor extends CodecDescriptorTemplateImpl<void> {
184
+ readonly codecId: "sql/text@1";
185
+ readonly traits: readonly ["equality", "order", "textual"];
186
+ readonly paramsSchema: undefined;
187
+ factory(): (ctx: CodecInstanceContext) => SqlTextCodec;
188
+ }
189
+ declare const sqlTextDescriptor: SqlTextDescriptor;
190
+ declare const sqlTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlTextCodec, undefined>;
191
+ declare class SqlIntCodec extends CodecImpl<typeof SQL_INT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
192
+ toWire(value: number, _ctx: CodecCallContext): Promise<number>;
193
+ fromWire(wire: number, _ctx: CodecCallContext): Promise<number>;
194
+ /** A `number` holds an integer exactly only within the safe integer range. */
195
+ fromDataTypeValue(value: DataTypeValue): number;
196
+ toDataTypeValue(input: number): DataTypeValue;
197
+ }
198
+ declare class SqlIntDescriptor extends CodecDescriptorTemplateImpl<void> {
199
+ readonly codecId: "sql/int@1";
200
+ readonly traits: readonly ["equality", "order", "numeric"];
201
+ readonly paramsSchema: undefined;
202
+ factory(): (ctx: CodecInstanceContext) => SqlIntCodec;
203
+ }
204
+ declare const sqlIntDescriptor: SqlIntDescriptor;
205
+ declare const sqlIntColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlIntCodec, undefined>;
206
+ declare class SqlFloatCodec extends CodecImpl<typeof SQL_FLOAT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
207
+ toWire(value: number, _ctx: CodecCallContext): Promise<number>;
208
+ fromWire(wire: number, _ctx: CodecCallContext): Promise<number>;
209
+ fromDataTypeValue(value: DataTypeValue): number;
210
+ toDataTypeValue(input: number): DataTypeValue;
211
+ }
212
+ declare class SqlFloatDescriptor extends CodecDescriptorTemplateImpl<void> {
213
+ readonly codecId: "sql/float@1";
214
+ readonly traits: readonly ["equality", "order", "numeric"];
215
+ readonly paramsSchema: undefined;
216
+ factory(): (ctx: CodecInstanceContext) => SqlFloatCodec;
217
+ }
218
+ declare const sqlFloatDescriptor: SqlFloatDescriptor;
219
+ declare const sqlFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlFloatCodec, undefined>;
220
+ declare class SqlCharCodec extends CodecImpl<typeof SQL_CHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
221
+ toWire(value: string, _ctx: CodecCallContext): Promise<string>;
222
+ fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
223
+ fromDataTypeValue(value: DataTypeValue<string>): string;
224
+ toDataTypeValue(input: string): DataTypeValue;
225
+ }
226
+ declare class SqlCharDescriptor extends CodecDescriptorTemplateImpl<LengthParams> {
227
+ readonly codecId: "sql/char@1";
228
+ readonly traits: readonly ["equality", "order", "textual"];
229
+ readonly paramsSchema: undefined;
230
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlCharCodec;
231
+ }
232
+ declare const sqlCharDescriptor: SqlCharDescriptor;
233
+ declare const sqlCharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlCharCodec, LengthParams>;
234
+ declare class SqlVarcharCodec extends CodecImpl<typeof SQL_VARCHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
235
+ toWire(value: string, _ctx: CodecCallContext): Promise<string>;
236
+ fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
237
+ fromDataTypeValue(value: DataTypeValue<string>): string;
238
+ toDataTypeValue(input: string): DataTypeValue;
239
+ }
240
+ declare class SqlVarcharDescriptor extends CodecDescriptorTemplateImpl<LengthParams> {
241
+ readonly codecId: "sql/varchar@1";
242
+ readonly traits: readonly ["equality", "order", "textual"];
243
+ readonly paramsSchema: undefined;
244
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlVarcharCodec;
245
+ }
246
+ declare const sqlVarcharDescriptor: SqlVarcharDescriptor;
247
+ declare const sqlVarcharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlVarcharCodec, LengthParams>;
248
+ type RawParams = {
249
+ readonly sql: string;
250
+ };
251
+ /**
252
+ * The codec of a raw column, whose type no other data type claims. Values pass through unchanged and
253
+ * are typed `unknown`, since nothing is known about them beyond what the database returns. A raw
254
+ * column has no literal values, but that is its data type's rule: the data type's reader refuses
255
+ * every value, so `toDataTypeValue` refuses every literal. ADR 273.
256
+ */
257
+ declare class SqlRawCodec extends CodecImpl<typeof SQL_RAW_CODEC_ID, readonly [], unknown, unknown> {
258
+ toWire(value: unknown, _ctx: CodecCallContext): Promise<unknown>;
259
+ fromWire(wire: unknown, _ctx: CodecCallContext): Promise<unknown>;
260
+ fromDataTypeValue(value: DataTypeValue): unknown;
261
+ toDataTypeValue(input: unknown): DataTypeValue;
262
+ }
263
+ declare class SqlRawDescriptor extends CodecDescriptorTemplateImpl<RawParams> {
264
+ readonly codecId: "sql/raw@1";
265
+ readonly traits: readonly [];
266
+ readonly enumRefusal = "A raw column has a type Prisma does not interpret, so no member can be written as one of its values. No enum can use the raw codec; use a text enum instead.";
267
+ readonly paramsSchema: undefined;
268
+ factory(_params: RawParams): (ctx: CodecInstanceContext) => SqlRawCodec;
269
+ }
270
+ declare const sqlRawDescriptor: SqlRawDescriptor;
271
+ declare const sqlRawColumn: (sql: string) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlRawCodec, {
272
+ sql: string;
273
+ }>;
274
+ //#endregion
275
+ //#region src/ast/util.d.ts
276
+ declare function compact<T extends Record<string, unknown>>(o: T): T;
277
+ /**
278
+ * Walks an AST's parameter references in first-encounter order and dedupes
279
+ * by ParamRef identity. The single canonical helper used by every consumer
280
+ * that aligns `plan.params` with metadata-by-index — the SQL builder lane,
281
+ * the SQL ORM client, the SQL runtime encoder, and the Postgres renderer's
282
+ * `$N` index map — so the four walks cannot drift in dedupe semantics.
283
+ *
284
+ * SQLite's `?`-placeholder renderer intentionally does NOT use this helper
285
+ * because it needs one params entry per occurrence in the SQL.
286
+ */
287
+ declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyParamRef>;
288
+ /** Whether a projection item's top-level expression is an aggregate, `json_agg` or window function. Nested expressions are not inspected. */
289
+ declare function isAggregateProjection(item: ProjectionItem): boolean;
290
+ //#endregion
291
+ export { sqlIntDescriptor as $, SqlTextDescriptor as A, lockStrengthCapabilities as B, SqlFloatCodec as C, SqlRawCodec as D, SqlIntDescriptor as E, encodeListLiteralDefault as F, sqlCharDescriptor as G, missingCapability as H, encodeLiteralDefault as I, sqlFloatDecode as J, sqlCharEncode as K, isAggregateProjection as L, SqlVarcharDescriptor as M, collectOrderedParamRefs as N, SqlRawDescriptor as O, compact as P, sqlIntDecode as Q, lockIncompatible as R, SqlCharDescriptor as S, SqlIntCodec as T, sqlCharColumn as U, lockWaitPolicyOf as V, sqlCharDecode as W, sqlFloatEncode as X, sqlFloatDescriptor as Y, sqlIntColumn as Z, SQL_INT_CODEC_ID as _, EncodedLiteralDefault as a, sqlTextDescriptor as at, SQL_VARCHAR_CODEC_ID as b, LockOptionCapabilities as c, sqlVarcharDecode as ct, LockWaitRequest as d, sqlIntEncode as et, Lowerer as f, SQL_FLOAT_CODEC_ID as g, SQL_CHAR_CODEC_ID as h, CapabilityRequirement as i, sqlTextDecode as it, SqlVarcharCodec as j, SqlTextCodec as k, LockStrengthCapabilities as l, sqlVarcharDescriptor as lt, MarkerReadResult as m, AdapterProfile as n, sqlRawDescriptor as nt, LiteralDefaultColumn as o, sqlTextEncode as ot, LowererContext as p, sqlFloatColumn as q, AdapterTarget as r, sqlTextColumn as rt, LockConflict as s, sqlVarcharColumn as st, Adapter as t, sqlRawColumn as tt, LockWaitOptions as u, sqlVarcharEncode as ut, SQL_RAW_CODEC_ID as v, SqlFloatDescriptor as w, SqlCharCodec as x, SQL_TEXT_CODEC_ID as y, lockOptionCapabilities as z };
292
+ //# sourceMappingURL=ast-YEMe_B8z.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast-YEMe_B8z.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;KAOK;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW,eAAe,QAAQ;;UAErC,eAAe;WACd,UAAU;WACV;;KAEN,QAAQ,eAAe,qBAAqB,QAAQ,qBAAqB,KAAK,KAAK,SAAS,eAAe,eAAe;;;;UAIrH,QAAQ,eAAe,qBAAqB,QAAQ;WACnD,SAAS;EAClB,MAAM,KAAK,KAAK,SAAS,eAAe,aAAa;;;;;KAKlD;WACM;;WAEA;WACA;;;UAGD;WACC;WACA;;;;;;;iBAOM,qBAAqB,aAAa,KAAK,8CAA8C,UAAU,YAAU,OAAO,gCAAgC,OAAO,uBAAuB,QAAQ;;;;iBAItL,yBAAyB,aAAa,KAAK,8CAA8C,UAAU,YAAU,mBAAmB,aAAa,OAAO,uBAAuB,iBAAiB;;;;KAIxM;;iBAEY,iBAAiB,UAAU,cAAc,kBAAkB;;KAEvE;YACO;cACE;;;;cAIA;WACH;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;;;cAKD;WACH;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;;KAIV,kCAAkC;KAClC,gCAAgC;;iBAEpB,kBAAkB;YACvB;cACE;;GAEX,aAAa;;KAEX,gBAAgB,iBAAiB,qBAAqB;WAChD;WACA;cACG,qBAAqB;WACxB;WACA;;WAEA;WACA;;;UAGD;WACC;WACA;;;iBAGM,iBAAiB,oBAAoB,SAAS,8BAA8B;;;;;;;;cAQ/E;cACA;cACA;cACA;cACA;cACA;cACA,gBAAgB;;cAEhB,gBAAgB;cAChB,mBAAmB;cACnB,mBAAmB;cACnB,eAAe;cACf,eAAe;cACf,iBAAiB;cACjB,iBAAiB;cACjB,gBAAgB;cAChB,gBAAgB;;;KAGzB;WACM;;cAEG,qBAAqB,iBAAiB;EAClD,OAAO,eAAe,MAAM,mBAAqB;EACjD,SAAS,cAAc,MAAM,mBAAqB;EAClD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,0BAA0B;WAC7B;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,mBAAmB;cACnB,oEAAoE,WAAW;cAC/E,oBAAoB,iBAAiB;EACjD,OAAO,eAAe,MAAM,mBAAqB;EACjD,SAAS,cAAc,MAAM,mBAAqB;;EAElD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,yBAAyB;WAC5B;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,kBAAkB;cAClB,mEAAmE,WAAW;cAC9E,sBAAsB,iBAAiB;EACnD,OAAO,eAAe,MAAM,mBAAqB;EACjD,SAAS,cAAc,MAAM,mBAAqB;EAClD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,2BAA2B;WAC9B;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,oBAAoB;cACpB,qEAAqE,WAAW;cAChF,qBAAqB,iBAAiB;EAClD,OAAO,eAAe,MAAM,mBAAqB;EACjD,SAAS,cAAc,MAAM,mBAAqB;EAClD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,0BAA0B,4BAA4B;WACzD;WACA;WACA;EACT,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,mBAAmB;cACnB,gBAAgB,SAAS,gEAAgE,WAAW,cAAc;cAClH,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAqB;EACjD,SAAS,cAAc,MAAM,mBAAqB;EAClD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,6BAA6B,4BAA4B;WAC5D;WACA;WACA;EACT,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,sBAAsB;cACtB,mBAAmB,SAAS,gEAAgE,WAAW,iBAAiB;KACjI;WACM;;;;;;;;cAQG,oBAAoB,iBAAiB;EACjD,OAAO,gBAAgB,MAAM,mBAAqB;EAClD,SAAS,eAAe,MAAM,mBAAqB;EACnD,kBAAkB,OAAO;EACzB,gBAAgB,iBAAiB;;cAErB,yBAAyB,4BAA4B;WACxD;WACA;WACA;WACA;EACT,QAAQ,SAAS,aAAa,KAAK,yBAAyB;;cAEhD,kBAAkB;cAClB,eAAe,+DAA+D,WAAW;EACrG;;;;iBAIe,QAAQ,UAAU,yBAAyB,GAAG,IAAI;;;;;;;;;;;iBAWlD,wBAAwB,KAAK,cAAc,cAAc;;iBAEzD,sBAAsB,MAAM"}
@@ -0,0 +1,114 @@
1
+ import "./contract-builder-C_Zi57iD.mjs";
2
+ import "./psl-column-resolution-ChZqioOc-BREg4J7d.mjs";
3
+ import { DataTypeSupport } from "@prisma/orm-framework/components/authoring";
4
+ import { PslSources } from "@prisma/orm-framework/psl-parser/syntax";
5
+ import "@prisma/orm-framework/components/psl-ast";
6
+ import { ControlMutationDefaultEntry } from "@prisma/orm-framework/components/control";
7
+ import { ArgType, AttributeCtx, AttributeSpec, AttributeSpecContext, DescribeUnsupportedAttribute, FieldAttributeCtx, FieldAttributeSpecContext, FuncCallSig, ModelAttributeCtx, ModelSymbol, ParsedWrittenList, ParsedWrittenScalar, PslSpan, TypedFuncCall } from "@prisma/orm-framework/psl-parser";
8
+ //#region ../../../2-sql-family/2-authoring/contract-psl/dist/sql-attribute-specs-CK9iRCBj.d.mts
9
+ //#region src/sql-attribute-specs.d.ts
10
+ interface EnumMemberDefault {
11
+ readonly kind: 'member';
12
+ readonly name: string;
13
+ }
14
+ /** A written `null`, as a nullable field's default or a list element, with its span. */
15
+ interface ParsedNullLiteral {
16
+ readonly kind: 'null';
17
+ readonly span: PslSpan;
18
+ }
19
+ /** An enum list default: its members and nulls. */
20
+ interface EnumMemberListDefault {
21
+ readonly kind: 'member-list';
22
+ readonly elements: readonly (EnumMemberDefault | ParsedNullLiteral)[];
23
+ }
24
+ /** A call to a registered default function, such as `uuid()`. Not the contract's `{ kind: 'function' }` storage default. */
25
+ interface DefaultFunctionCall {
26
+ readonly kind: 'default-function';
27
+ readonly call: TypedFuncCall;
28
+ }
29
+ type DefaultArgValue = ParsedWrittenScalar | ParsedNullLiteral | ParsedWrittenList<ParsedWrittenScalar | ParsedNullLiteral> | DefaultFunctionCall | EnumMemberDefault | EnumMemberListDefault;
30
+ /** A default function's signature, or a function that builds it from the stack's data types when its arguments are values of a data type. */
31
+ type DefaultFunctionSignature = FuncCallSig | ((dataTypes: DataTypeSupport) => FuncCallSig);
32
+ /**
33
+ * A call to the registered default function `name`, with its signature built from the stack's data types when it needs them. Its binding diagnostics name it as a default function.
34
+ */
35
+ declare function defaultFunctionCall(name: string, entry: ControlMutationDefaultEntry, dataTypes: DataTypeSupport): ArgType<TypedFuncCall, AttributeCtx>;
36
+ declare function indexModelSpec(ctx: AttributeSpecContext): AttributeSpec<{
37
+ fields?: string[];
38
+ readonly expression?: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
39
+ readonly where?: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
40
+ readonly unique?: boolean;
41
+ readonly name?: string;
42
+ readonly map?: string;
43
+ readonly type?: string;
44
+ readonly options?: Record<string, string>;
45
+ }, ModelAttributeCtx>;
46
+ declare function checkModelSpec(ctx: AttributeSpecContext): AttributeSpec<{
47
+ readonly expression: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
48
+ readonly name?: string;
49
+ readonly map?: string;
50
+ }, ModelAttributeCtx>;
51
+ /** Every entry is a factory over the spec context, whether or not its spec reads it. ADR 249. */
52
+ declare const sqlAttributeSpecs: {
53
+ readonly model: {
54
+ readonly map: (_ctx: AttributeSpecContext) => AttributeSpec<{
55
+ name: string;
56
+ }, ModelAttributeCtx>;
57
+ readonly id: (_ctx: AttributeSpecContext) => AttributeSpec<{
58
+ fields: string[];
59
+ readonly map?: string;
60
+ }, ModelAttributeCtx>;
61
+ readonly unique: (_ctx: AttributeSpecContext) => AttributeSpec<{
62
+ fields: string[];
63
+ readonly map?: string;
64
+ }, ModelAttributeCtx>;
65
+ readonly index: typeof indexModelSpec;
66
+ readonly check: typeof checkModelSpec;
67
+ readonly control: (_ctx: AttributeSpecContext) => AttributeSpec<{
68
+ policy: "managed" | "tolerated" | "external" | "observed";
69
+ }, ModelAttributeCtx>;
70
+ readonly discriminator: (_ctx: AttributeSpecContext) => AttributeSpec<{
71
+ field: string;
72
+ }, ModelAttributeCtx>;
73
+ readonly base: (_ctx: AttributeSpecContext) => AttributeSpec<{
74
+ base: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<ModelSymbol>;
75
+ value: ParsedWrittenScalar;
76
+ }, ModelAttributeCtx>;
77
+ };
78
+ readonly field: {
79
+ readonly map: (_ctx: FieldAttributeSpecContext) => AttributeSpec<{
80
+ name: string;
81
+ }, FieldAttributeCtx>;
82
+ readonly id: (_ctx: FieldAttributeSpecContext) => AttributeSpec<{
83
+ readonly map?: string;
84
+ }, FieldAttributeCtx>;
85
+ readonly unique: (_ctx: FieldAttributeSpecContext) => AttributeSpec<{
86
+ readonly map?: string;
87
+ }, FieldAttributeCtx>;
88
+ readonly relation: (_ctx: FieldAttributeSpecContext) => AttributeSpec<{
89
+ name?: string;
90
+ readonly fields?: string[];
91
+ readonly references?: string[];
92
+ readonly map?: string;
93
+ readonly onDelete?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
94
+ readonly onUpdate?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
95
+ readonly index?: string | boolean;
96
+ }, FieldAttributeCtx>;
97
+ readonly default: (ctx: FieldAttributeSpecContext) => AttributeSpec<{
98
+ value: DefaultArgValue;
99
+ }, AttributeCtx>;
100
+ readonly onCreate: (ctx: FieldAttributeSpecContext) => AttributeSpec<{
101
+ value: TypedFuncCall;
102
+ }, AttributeCtx>;
103
+ readonly onUpdate: (ctx: FieldAttributeSpecContext) => AttributeSpec<{
104
+ value: TypedFuncCall;
105
+ }, AttributeCtx>;
106
+ };
107
+ };
108
+ //#endregion
109
+ //#region ../../../2-sql-family/2-authoring/contract-psl/dist/attribute-specs.d.mts
110
+ //#region src/psl-field-resolution.d.ts
111
+ declare function describeUnsupportedSqlAttribute(sources: PslSources): DescribeUnsupportedAttribute;
112
+ //#endregion
113
+ export { EnumMemberListDefault as a, sqlAttributeSpecs as c, EnumMemberDefault as i, DefaultFunctionCall as n, ParsedNullLiteral as o, DefaultFunctionSignature as r, defaultFunctionCall as s, describeUnsupportedSqlAttribute as t };
114
+ //# sourceMappingURL=attribute-specs-DA_RwQFB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-specs-DA_RwQFB.d.mts","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-psl/dist/sql-attribute-specs-CK9iRCBj.d.mts","../../../../2-sql-family/2-authoring/contract-psl/dist/attribute-specs.d.mts"],"mappings":";;;;;;;;;UAOU;WACC;WACA;;;UAGD;WACC;WACA,MAAM;;;UAGP;WACC;WACA,oBAAoB,oBAAoB;;;UAGzC;WACC;WACA,MAAM;;KAEZ,kBAAkB,sBAAsB,oBAAoB,kBAAkB,sBAAsB,qBAAqB,sBAAsB,oBAAoB;;KAEnK,2BAA2B,gBAAgB,WAAW,oBAAoB;;;;iBAI9D,oBAAoB,cAAc,OAAO,6BAA6B,WAAW,kBAAkB,QAAQ,eAAe;iBAC1H,eAAe,KAAK,uBAAuB;EAC1D;WACS,4CAA4C;WAC5C,uCAAuC;WACvC;WACA;WACA;WACA;WACA,UAAU;GAClB;iBACc,eAAe,KAAK,uBAAuB;WACjD,2CAA2C;WAC3C;WACA;GACR;;cAEW;WACH;aACE,MAAM,MAAM,yBAAyB;MAC5C;OACC;aACM,KAAK,MAAM,yBAAyB;MAC3C;eACS;OACR;aACM,SAAS,MAAM,yBAAyB;MAC/C;eACS;OACR;aACM,cAAc;aACd,cAAc;aACd,UAAU,MAAM,yBAAyB;MAChD;OACC;aACM,gBAAgB,MAAM,yBAAyB;MACtD;OACC;aACM,OAAO,MAAM,yBAAyB;MAC7C,qCAAqC,wBAAwB;MAC7D,OAAO;OACN;;WAEI;aACE,MAAM,MAAM,8BAA8B;MACjD;OACC;aACM,KAAK,MAAM,8BAA8B;eACvC;OACR;aACM,SAAS,MAAM,8BAA8B;eAC3C;OACR;aACM,WAAW,MAAM,8BAA8B;MACtD;eACS;eACA;eACA;eACA;eACA;eACA;OACR;aACM,UAAU,KAAK,8BAA8B;MACpD,OAAO;OACN;aACM,WAAW,KAAK,8BAA8B;MACrD,OAAO;OACN;aACM,WAAW,KAAK,8BAA8B;MACrD,OAAO;OACN;;;;;;iBC3FU,gCAAgC,SAAS,aAAa"}
@@ -1,8 +1,8 @@
1
- import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
- import { i as computeCheckContentHash, n as assertWireNamePrefixLength } from "./naming-DKr4TJd7-Cszhq9RV.mjs";
3
- import { t as exactNameBodyWarning } from "./index-naming-DREt6js7-CRH27yUv.mjs";
1
+ import { t as contractError } from "./contract-errors-BCN6RVI5-DoH6b_KZ.mjs";
2
+ import { i as computeCheckContentHash, n as assertWireNamePrefixLength } from "./naming-bM5qm5PY-jOg3JFMb.mjs";
3
+ import { t as exactNameBodyWarning } from "./index-naming-BOcJT1B3-mG8Fd6KN.mjs";
4
4
  import { flushAuthoringWarnings } from "@prisma/orm-framework/components/authoring";
5
- //#region ../../../2-sql/1-core/contract/dist/authored-check-naming.mjs
5
+ //#region ../../../2-sql-family/1-core/contract/dist/authored-check-naming.mjs
6
6
  /**
7
7
  * Lowers an authored check constraint into the name-identified entity
8
8
  * `contract.json` persists: exact mode adopts `map` verbatim (no prefix, no
@@ -44,4 +44,4 @@ function lowerAuthoredCheck(tableName, authored, warnings) {
44
44
  //#endregion
45
45
  export { lowerAuthoredCheck as t };
46
46
 
47
- //# sourceMappingURL=authored-check-naming-Hf9990DV.mjs.map
47
+ //# sourceMappingURL=authored-check-naming-BHGJhjqn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authored-check-naming-BHGJhjqn.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/authored-check-naming.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { t as exactNameBodyWarning } from \"./index-naming-BOcJT1B3.mjs\";\nimport { flushAuthoringWarnings } from \"@internal/framework-components/authoring\";\nimport { assertWireNamePrefixLength, computeCheckContentHash } from \"@internal/sql-schema-ir/naming\";\n//#region src/authored-check-naming.ts\n/**\n* Lowers an authored check constraint into the name-identified entity\n* `contract.json` persists: exact mode adopts `map` verbatim (no prefix, no\n* hash) and warns, because a hand-authored body compared verbatim against\n* Postgres's reprint would false-drift; wire mode appends the content-hash\n* suffix to the authored prefix. There is no default prefix to fall back on\n* — a check has no column tuple to derive one from, unlike an index — so an\n* absent `name` is only valid alongside a present `map`. The cross-field\n* guards are the shared enforcement backstop for both authoring surfaces\n* (PSL pre-empts them with span-anchored diagnostics).\n*/\nfunction lowerAuthoredCheck(tableName, authored, warnings) {\n\tif (authored.map !== void 0 && authored.name !== void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check \"${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.trim().length === 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check on table \"${tableName}\": expression must not be empty — an empty predicate is not a constraint.`);\n\tif (authored.map !== void 0) {\n\t\tconst warning = exactNameBodyWarning(\"check\", authored.map);\n\t\tif (warnings !== void 0) warnings.push(warning);\n\t\telse flushAuthoringWarnings([warning]);\n\t\treturn {\n\t\t\tnaming: {\n\t\t\t\tkind: \"exact\",\n\t\t\t\tname: authored.map\n\t\t\t},\n\t\t\texpression: authored.expression\n\t\t};\n\t}\n\tif (authored.name === void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check on table \"${tableName}\": a check constraint requires an explicit name (name:) or exact physical name (map:) — unlike an index there is no column tuple to derive a default name from.`);\n\tconst prefix = authored.name;\n\tassertWireNamePrefixLength(prefix, \"check prefix\");\n\treturn {\n\t\tnaming: {\n\t\t\tkind: \"wire\",\n\t\t\tprefix,\n\t\t\thash: computeCheckContentHash(authored.expression)\n\t\t},\n\t\texpression: authored.expression\n\t};\n}\n//#endregion\nexport { lowerAuthoredCheck };\n\n//# sourceMappingURL=authored-check-naming.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,mBAAmB,WAAW,UAAU,UAAU;CAC1D,IAAI,SAAS,QAAQ,KAAK,KAAK,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,UAAU,SAAS,IAAI,cAAc,UAAU,mGAAmG;CAC5P,IAAI,SAAS,WAAW,KAAK,CAAC,CAAC,WAAW,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,0EAA0E;CACrM,IAAI,SAAS,QAAQ,KAAK,GAAG;EAC5B,MAAM,UAAU,qBAAqB,SAAS,SAAS,GAAG;EAC1D,IAAI,aAAa,KAAK,GAAG,SAAS,KAAK,OAAO;OACzC,uBAAuB,CAAC,OAAO,CAAC;EACrC,OAAO;GACN,QAAQ;IACP,MAAM;IACN,MAAM,SAAS;GAChB;GACA,YAAY,SAAS;EACtB;CACD;CACA,IAAI,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,gKAAgK;CAC5Q,MAAM,SAAS,SAAS;CACxB,2BAA2B,QAAQ,cAAc;CACjD,OAAO;EACN,QAAQ;GACP,MAAM;GACN;GACA,MAAM,wBAAwB,SAAS,UAAU;EAClD;EACA,YAAY,SAAS;CACtB;AACD"}
@@ -1,6 +1,6 @@
1
- import { n as CheckConstraintInput } from "./check-constraint-B7qGu6rc-HvQjjX82.mjs";
1
+ import { n as CheckConstraintInput } from "./check-constraint-B7qGu6rc-Bk2ezWXu.mjs";
2
2
  import { AuthoringWarningSink } from "@prisma/orm-framework/components/authoring";
3
- //#region ../../../2-sql/1-core/contract/dist/authored-check-naming.d.mts
3
+ //#region ../../../2-sql-family/1-core/contract/dist/authored-check-naming.d.mts
4
4
  //#region src/authored-check-naming.d.ts
5
5
  /**
6
6
  * A check constraint as authored, before naming: `map` is an exact physical
@@ -27,4 +27,4 @@ type AuthoredCheckInput = {
27
27
  declare function lowerAuthoredCheck(tableName: string, authored: AuthoredCheckInput, warnings?: AuthoringWarningSink): CheckConstraintInput;
28
28
  //#endregion
29
29
  export { lowerAuthoredCheck as n, AuthoredCheckInput as t };
30
- //# sourceMappingURL=authored-check-naming-BWBe-PVE.d.mts.map
30
+ //# sourceMappingURL=authored-check-naming-D-o196ry.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authored-check-naming-D-o196ry.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/authored-check-naming.d.mts"],"mappings":";;;;;;;;;;KASK;WACM;WACA;WACA;;;;;;;;;;;;;iBAaM,mBAAmB,mBAAmB,UAAU,oBAAoB,WAAW,uBAAuB"}
@@ -0,0 +1,9 @@
1
+ import "./contract-builder-C_Zi57iD.mjs";
2
+ import "@prisma/orm-framework/components/authoring";
3
+ import "@prisma/orm-framework/psl-parser";
4
+ //#region ../../../2-sql-family/9-family/dist/authoring-entity-types-CgKIgWq5.d.mts
5
+ //#region src/core/authoring-entity-types.d.ts
6
+ declare function sqlFamilyEnumSpec(): import("@prisma/orm-framework/psl-parser").MapBlockSpec<Record<string, string | number | boolean | import("@prisma/orm-framework/components/authoring").WrittenScalar | (string | number | boolean | import("@prisma/orm-framework/components/authoring").WrittenScalar)[] | undefined>>;
7
+ //#endregion
8
+ export { sqlFamilyEnumSpec as t };
9
+ //# sourceMappingURL=authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/authoring-entity-types-CgKIgWq5.d.mts"],"mappings":";;;;;iBAIiB,oDAAoD,aAAa,8FAA8F,gGAAgG"}
@@ -1,3 +1,4 @@
1
- import { o as Expression, x as ScopeField } from "./expression-FJK6Ar-d.mjs";
2
- import { c as GroupedQuery, d as QueryContext, f as ResolveRow, h as Subquery, i as DeleteQuery, l as InsertQuery, m as SelectQuery, o as Functions, p as Scope, r as Db, s as GatedMethod, t as AggregateFunctions, v as TableProxy, x as UpdateQuery } from "./db-D18PrXKW-DvTv4JFn.mjs";
3
- export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery };
1
+ import { o as Expression, x as ScopeField } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
2
+ import { a as Subquery, r as Functions } from "./functions-EW-RrRn3.mjs";
3
+ import { C as WhereFilter, S as UpdateQuery, d as QueryContext, g as SelectQuery, h as Scope, i as DeleteQuery, l as InsertQuery, m as ResolveRow, o as GatedMethod, r as Db, s as GroupedQuery, t as AggregateFunctions, y as TableProxy } from "./db-D1d75IvM-D4mRDC6w.mjs";
4
+ export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery, WhereFilter };
@@ -1,40 +1,38 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { i as SqlOperationEntry } from "./index-C5I8D-MB.mjs";
4
- import { s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
5
- import "./ast-HFcfQZr-.mjs";
6
- import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-FJK6Ar-d.mjs";
7
- import { a as FieldProxy, d as QueryContext, o as Functions, p as Scope, r as Db, t as AggregateFunctions, y as TableProxyContract } from "./db-D18PrXKW-DvTv4JFn.mjs";
8
- import { c as SqlAggregateDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
9
- import "./query-lane-context-XMvk7fmY.mjs";
1
+ import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
2
+ import "./types-CkAd8SWm.mjs";
3
+ import { i as SqlOperationEntry } from "./index-Nqc3OHR_.mjs";
4
+ import { l as RawCodecInferer } from "./expression-6ld_ZQL6-fOuazzzm.mjs";
5
+ import { t as ExpressionImpl } from "./expression-CieaNuRM-B1uVqxwd.mjs";
6
+ import "./expression-D8HstQiB.mjs";
7
+ import { s as createFunctions } from "./functions-EW-RrRn3.mjs";
8
+ import { a as FieldProxy, b as TableProxyContract, d as QueryContext, f as RawLane, h as Scope, r as Db, t as AggregateFunctions } from "./db-D1d75IvM-D4mRDC6w.mjs";
9
+ import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-BCEoKy0_-CzmyavC9.mjs";
10
+ import "./query-lane-context-VqH0mS9B.mjs";
10
11
  import { Contract } from "@prisma/orm-framework/contract/types";
11
- import { CodecRef } from "@prisma/orm-framework/components/codec";
12
- //#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts
13
- //#region src/runtime/expression-impl.d.ts
14
- /**
15
- * Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.
16
- *
17
- * `codec` records the column-bound {@link CodecRef} when the field-proxy knows the binding — both the namespaced form (`f.user.email` → `ColumnRef`) and the top-level shortcut (`f.email` → `IdentifierRef`) stamp the ref derived from contract storage. `codecOf(expression)` exposes it for operation implementations forwarding the ref to `toExpr`.
18
- *
19
- * `projectionAst` carries the descriptor-lowered rendering of the expression, where a target declares one (e.g. SQLite's `CAST(count(*) AS TEXT)`). Lowering exists to carry the value across the driver boundary, so only the projection site consumes it — predicate and ordering positions (`buildAst()`) keep the plain form, where the rendering would change SQL semantics.
20
- */
21
- declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expression<T> {
22
- private readonly ast;
23
- private readonly projectionAst;
24
- readonly returnType: T;
25
- readonly codec: CodecRef | undefined;
26
- constructor(ast: AnyExpression, returnType: T, codec?: CodecRef, projectionAst?: AnyExpression);
27
- buildAst(): AnyExpression;
28
- buildProjectionAst(): AnyExpression;
29
- }
30
- //#endregion
12
+ //#region ../../../2-sql-family/4-lanes/sql-builder/dist/runtime/index.d.mts
31
13
  //#region src/runtime/field-proxy.d.ts
32
14
  declare function createFieldProxy<S extends Scope>(scope: S): FieldProxy<S>;
33
15
  //#endregion
34
16
  //#region src/runtime/functions.d.ts
35
- declare function createFunctions<QC extends QueryContext>(operations: Readonly<Record<string, SqlOperationEntry>>, rawCodecInferer: RawCodecInferer): Functions<QC>;
36
17
  declare function createAggregateFunctions<QC extends QueryContext>(operations: Readonly<Record<string, SqlOperationEntry>>, rawCodecInferer: RawCodecInferer, aggregateRegistry: SqlAggregateDescriptorRegistry): AggregateFunctions<QC>;
37
18
  //#endregion
19
+ //#region src/runtime/raw-lane.d.ts
20
+ interface RawLaneOptions<C extends Contract<SqlStorage> & TableProxyContract> {
21
+ readonly context: ExecutionContext<C>;
22
+ readonly rawCodecInferer: RawCodecInferer;
23
+ }
24
+ /**
25
+ * Builds the raw lane a client exposes as `db.raw`.
26
+ *
27
+ * The tag binds the adapter's codec inferer and the contract here, once. An
28
+ * authoring site then carries only its template, its row spec, and a
29
+ * terminator.
30
+ *
31
+ * The row type is phantom: no value holds it. The target-agnostic tag types it
32
+ * as `unknown`, and the contract says what each declared column decodes to.
33
+ */
34
+ declare function createRawLane<C extends Contract<SqlStorage> & TableProxyContract>(options: RawLaneOptions<C>): RawLane<C>;
35
+ //#endregion
38
36
  //#region src/runtime/sql.d.ts
39
37
  interface SqlOptions<C extends Contract<SqlStorage> & TableProxyContract> {
40
38
  readonly context: ExecutionContext<C>;
@@ -42,5 +40,5 @@ interface SqlOptions<C extends Contract<SqlStorage> & TableProxyContract> {
42
40
  }
43
41
  declare function sql<C extends Contract<SqlStorage> & TableProxyContract>(options: SqlOptions<C>): Db<C>;
44
42
  //#endregion
45
- export { type Db, ExpressionImpl, type SqlOptions, createAggregateFunctions, createFieldProxy, createFunctions, sql };
43
+ export { type Db, ExpressionImpl, type RawLaneOptions, type SqlOptions, createAggregateFunctions, createFieldProxy, createFunctions, createRawLane, sql };
46
44
  //# sourceMappingURL=builder__runtime.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder__runtime.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;cAgBc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;WACZ,OAAO;EAChB,YAAY,KAAK,eAAe,YAAY,GAAG,QAAQ,UAAU,gBAAgB;EACjF,YAAY;EACZ,sBAAsB;;;;iBAIP,iBAAiB,UAAU,OAAO,OAAO,IAAI,WAAW;;;iBAGxD,gBAAgB,WAAW,cAAc,YAAY,SAAS,eAAe,qBAAqB,iBAAiB,kBAAkB,UAAU;iBAC/I,yBAAyB,WAAW,cAAc,YAAY,SAAS,eAAe,qBAAqB,iBAAiB,iBAAiB,mBAAmB,iCAAiC,mBAAmB;;;UAG3N,WAAW,UAAU,SAAS,cAAc;WAC3C,SAAS,iBAAiB;WAC1B,iBAAiB;;iBAEX,IAAI,UAAU,SAAS,cAAc,oBAAoB,SAAS,WAAW,KAAK,GAAG"}
1
+ {"version":3,"file":"builder__runtime.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/sql-builder/dist/runtime/index.d.mts"],"mappings":";;;;;;;;;;;;;iBAQiB,iBAAiB,UAAU,OAAO,OAAO,IAAI,WAAW;;;iBAGxD,yBAAyB,WAAW,cAAc,YAAY,SAAS,eAAe,qBAAqB,iBAAiB,iBAAiB,mBAAmB,iCAAiC,mBAAmB;;;UAG3N,eAAe,UAAU,SAAS,cAAc;WAC/C,SAAS,iBAAiB;WAC1B,iBAAiB;;;;;;;;;;;;iBAYX,cAAc,UAAU,SAAS,cAAc,oBAAoB,SAAS,eAAe,KAAK,QAAQ;;;UAG/G,WAAW,UAAU,SAAS,cAAc;WAC3C,SAAS,iBAAiB;WAC1B,iBAAiB;;iBAEX,IAAI,UAAU,SAAS,cAAc,oBAAoB,SAAS,WAAW,KAAK,GAAG"}