@prisma/orm-family-sql 0.16.0-dev.36

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 (325) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/dist/ast-BstHjAoG.mjs +325 -0
  4. package/dist/ast-BstHjAoG.mjs.map +1 -0
  5. package/dist/ast-DSuzmsWn.d.mts +287 -0
  6. package/dist/ast-DSuzmsWn.d.mts.map +1 -0
  7. package/dist/authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs +316 -0
  8. package/dist/authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs.map +1 -0
  9. package/dist/build-contract-DBCz_YSs-DO0wMHai.mjs +778 -0
  10. package/dist/build-contract-DBCz_YSs-DO0wMHai.mjs.map +1 -0
  11. package/dist/builder.d.mts +3 -0
  12. package/dist/builder.mjs +1 -0
  13. package/dist/builder__runtime.d.mts +42 -0
  14. package/dist/builder__runtime.d.mts.map +1 -0
  15. package/dist/builder__runtime.mjs +955 -0
  16. package/dist/builder__runtime.mjs.map +1 -0
  17. package/dist/builder__types.d.mts +3 -0
  18. package/dist/builder__types.mjs +1 -0
  19. package/dist/canonicalization-hooks-CYnW_sGn.d.mts +10 -0
  20. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +1 -0
  21. package/dist/canonicalization-hooks-DfIc_lOO.mjs +87 -0
  22. package/dist/canonicalization-hooks-DfIc_lOO.mjs.map +1 -0
  23. package/dist/codec-descriptor-registry-BJVJRftS.mjs +96 -0
  24. package/dist/codec-descriptor-registry-BJVJRftS.mjs.map +1 -0
  25. package/dist/codec-types-MOaceoPi-C5eL2sao.d.mts +116 -0
  26. package/dist/codec-types-MOaceoPi-C5eL2sao.d.mts.map +1 -0
  27. package/dist/config-types-47qB33rW.d.mts +21 -0
  28. package/dist/config-types-47qB33rW.d.mts.map +1 -0
  29. package/dist/config-types-N7PJc6VN.mjs +65 -0
  30. package/dist/config-types-N7PJc6VN.mjs.map +1 -0
  31. package/dist/contract-builder-MvJJrQ-5.d.mts +1306 -0
  32. package/dist/contract-builder-MvJJrQ-5.d.mts.map +1 -0
  33. package/dist/contract-builder-YjMQcvZ1.mjs +1615 -0
  34. package/dist/contract-builder-YjMQcvZ1.mjs.map +1 -0
  35. package/dist/contract-emitter.d.mts +25 -0
  36. package/dist/contract-emitter.d.mts.map +1 -0
  37. package/dist/contract-emitter.mjs +2 -0
  38. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs +9 -0
  39. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +1 -0
  40. package/dist/contract-psl.d.mts +65 -0
  41. package/dist/contract-psl.d.mts.map +1 -0
  42. package/dist/contract-psl.mjs +2 -0
  43. package/dist/contract-psl__provider.d.mts +23 -0
  44. package/dist/contract-psl__provider.d.mts.map +1 -0
  45. package/dist/contract-psl__provider.mjs +105 -0
  46. package/dist/contract-psl__provider.mjs.map +1 -0
  47. package/dist/contract-ts.d.mts +3 -0
  48. package/dist/contract-ts.mjs +4 -0
  49. package/dist/contract-ts__config-types.d.mts +2 -0
  50. package/dist/contract-ts__config-types.mjs +2 -0
  51. package/dist/contract-ts__contract-builder.d.mts +2 -0
  52. package/dist/contract-ts__contract-builder.mjs +3 -0
  53. package/dist/contract-view-BMR5IWk4.mjs +39 -0
  54. package/dist/contract-view-BMR5IWk4.mjs.map +1 -0
  55. package/dist/contract-view-BbWQp6r4.d.mts +61 -0
  56. package/dist/contract-view-BbWQp6r4.d.mts.map +1 -0
  57. package/dist/contract.d.mts +26 -0
  58. package/dist/contract.mjs +17 -0
  59. package/dist/contract__canonicalization-hooks.d.mts +2 -0
  60. package/dist/contract__canonicalization-hooks.mjs +2 -0
  61. package/dist/contract__contract-view.d.mts +2 -0
  62. package/dist/contract__contract-view.mjs +2 -0
  63. package/dist/contract__entity-handle-lowering-hook.d.mts +2 -0
  64. package/dist/contract__entity-handle-lowering-hook.mjs +2 -0
  65. package/dist/contract__entity-kinds.d.mts +2 -0
  66. package/dist/contract__entity-kinds.mjs +2 -0
  67. package/dist/contract__factories.d.mts +2 -0
  68. package/dist/contract__factories.mjs +2 -0
  69. package/dist/contract__foreign-key-materialization.d.mts +2 -0
  70. package/dist/contract__foreign-key-materialization.mjs +2 -0
  71. package/dist/contract__index-naming.d.mts +2 -0
  72. package/dist/contract__index-naming.mjs +2 -0
  73. package/dist/contract__index-type-validation.d.mts +2 -0
  74. package/dist/contract__index-type-validation.mjs +2 -0
  75. package/dist/contract__index-types.d.mts +3 -0
  76. package/dist/contract__index-types.mjs +2 -0
  77. package/dist/contract__pack-types.d.mts +2 -0
  78. package/dist/contract__pack-types.mjs +1 -0
  79. package/dist/contract__referential-action-sql.d.mts +2 -0
  80. package/dist/contract__referential-action-sql.mjs +2 -0
  81. package/dist/contract__resolve-storage-table.d.mts +2 -0
  82. package/dist/contract__resolve-storage-table.mjs +2 -0
  83. package/dist/contract__types.d.mts +11 -0
  84. package/dist/contract__types.mjs +4 -0
  85. package/dist/contract__validators.d.mts +2 -0
  86. package/dist/contract__validators.mjs +3 -0
  87. package/dist/contract__value-set-derivation-hook.d.mts +2 -0
  88. package/dist/contract__value-set-derivation-hook.mjs +2 -0
  89. package/dist/control-B7iS4jv4.mjs +1326 -0
  90. package/dist/control-B7iS4jv4.mjs.map +1 -0
  91. package/dist/control-BHmsZudH.d.mts +948 -0
  92. package/dist/control-BHmsZudH.d.mts.map +1 -0
  93. package/dist/control-adapter-4y1O8Ps3.d.mts +1 -0
  94. package/dist/control-adapter-C99J7aEF-C-17lFY8.d.mts +191 -0
  95. package/dist/control-adapter-C99J7aEF-C-17lFY8.d.mts.map +1 -0
  96. package/dist/db-DhMsmBS--DKENDi3l.d.mts +365 -0
  97. package/dist/db-DhMsmBS--DKENDi3l.d.mts.map +1 -0
  98. package/dist/ddl-types-BMp2bWVS-D1waZJ4n.mjs +153 -0
  99. package/dist/ddl-types-BMp2bWVS-D1waZJ4n.mjs.map +1 -0
  100. package/dist/ddl-types-rrMsf77U-DGctYf-T.d.mts +149 -0
  101. package/dist/ddl-types-rrMsf77U-DGctYf-T.d.mts.map +1 -0
  102. package/dist/diff-B16bL_IR.mjs +13 -0
  103. package/dist/diff-B16bL_IR.mjs.map +1 -0
  104. package/dist/diff-DhlzHOMD.d.mts +104 -0
  105. package/dist/diff-DhlzHOMD.d.mts.map +1 -0
  106. package/dist/dist-C_q1_QR9.mjs +9 -0
  107. package/dist/dist-C_q1_QR9.mjs.map +1 -0
  108. package/dist/dist-DrScXbhq.mjs +414 -0
  109. package/dist/dist-DrScXbhq.mjs.map +1 -0
  110. package/dist/dist-x6jvtkKM.mjs +68 -0
  111. package/dist/dist-x6jvtkKM.mjs.map +1 -0
  112. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts +92 -0
  113. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +1 -0
  114. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +11 -0
  115. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +1 -0
  116. package/dist/entity-kinds-DKxwKolf-CcsY-iYV.mjs +136 -0
  117. package/dist/entity-kinds-DKxwKolf-CcsY-iYV.mjs.map +1 -0
  118. package/dist/entity-kinds-Dh6VH4uK.d.mts +29 -0
  119. package/dist/entity-kinds-Dh6VH4uK.d.mts.map +1 -0
  120. package/dist/errors-B5g0xWro-mWH2C07F.mjs +9 -0
  121. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +1 -0
  122. package/dist/errors.d.mts +63 -0
  123. package/dist/errors.d.mts.map +1 -0
  124. package/dist/errors.mjs +2 -0
  125. package/dist/expression-DIf8F4Mc.d.mts +167 -0
  126. package/dist/expression-DIf8F4Mc.d.mts.map +1 -0
  127. package/dist/expression-RUO52bJB.mjs +109 -0
  128. package/dist/expression-RUO52bJB.mjs.map +1 -0
  129. package/dist/factories-B7tA4y9D.d.mts +39 -0
  130. package/dist/factories-B7tA4y9D.d.mts.map +1 -0
  131. package/dist/factories-CDG9zBxC.mjs +77 -0
  132. package/dist/factories-CDG9zBxC.mjs.map +1 -0
  133. package/dist/family.d.mts +13 -0
  134. package/dist/family.mjs +12 -0
  135. package/dist/family__control-adapter.d.mts +3 -0
  136. package/dist/family__control-adapter.mjs +1 -0
  137. package/dist/family__control.d.mts +4 -0
  138. package/dist/family__control.mjs +4 -0
  139. package/dist/family__diff.d.mts +3 -0
  140. package/dist/family__diff.mjs +3 -0
  141. package/dist/family__ir.d.mts +2 -0
  142. package/dist/family__ir.mjs +3 -0
  143. package/dist/family__migration.d.mts +2 -0
  144. package/dist/family__migration.mjs +2 -0
  145. package/dist/family__pack.d.mts +249 -0
  146. package/dist/family__pack.d.mts.map +1 -0
  147. package/dist/family__pack.mjs +18 -0
  148. package/dist/family__pack.mjs.map +1 -0
  149. package/dist/family__psl-infer.d.mts +2 -0
  150. package/dist/family__psl-infer.mjs +2 -0
  151. package/dist/family__runtime.d.mts +3 -0
  152. package/dist/family__runtime.mjs +3 -0
  153. package/dist/family__verify.d.mts +2 -0
  154. package/dist/family__verify.mjs +2 -0
  155. package/dist/foreign-key-BSy9u4O4-BnsOe5Nf.d.mts +85 -0
  156. package/dist/foreign-key-BSy9u4O4-BnsOe5Nf.d.mts.map +1 -0
  157. package/dist/foreign-key-materialization-Ca-wRbmj.d.mts +65 -0
  158. package/dist/foreign-key-materialization-Ca-wRbmj.d.mts.map +1 -0
  159. package/dist/foreign-key-materialization-HI7BIQrG.mjs +72 -0
  160. package/dist/foreign-key-materialization-HI7BIQrG.mjs.map +1 -0
  161. package/dist/index-Bb9U36N4.d.mts +511 -0
  162. package/dist/index-Bb9U36N4.d.mts.map +1 -0
  163. package/dist/index-BgaTJRxj.d.mts +25 -0
  164. package/dist/index-BgaTJRxj.d.mts.map +1 -0
  165. package/dist/index-naming-BZWoh45T.d.mts +62 -0
  166. package/dist/index-naming-BZWoh45T.d.mts.map +1 -0
  167. package/dist/index-naming-BoGBcMmI-DiJAr66H.mjs +108 -0
  168. package/dist/index-naming-BoGBcMmI-DiJAr66H.mjs.map +1 -0
  169. package/dist/index-type-validation-COH4d78M.mjs +17 -0
  170. package/dist/index-type-validation-COH4d78M.mjs.map +1 -0
  171. package/dist/index-type-validation-DN0L2mqm.d.mts +10 -0
  172. package/dist/index-type-validation-DN0L2mqm.d.mts.map +1 -0
  173. package/dist/index-types-CNhHgKHi.d.mts +1 -0
  174. package/dist/index-types-DJQ_xwaE.mjs +40 -0
  175. package/dist/index-types-DJQ_xwaE.mjs.map +1 -0
  176. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +31 -0
  177. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +1 -0
  178. package/dist/interpreter-5WgpL-ax-_nqHLUTr.mjs +3526 -0
  179. package/dist/interpreter-5WgpL-ax-_nqHLUTr.mjs.map +1 -0
  180. package/dist/ir-B3bKMnGQ.d.mts +123 -0
  181. package/dist/ir-B3bKMnGQ.d.mts.map +1 -0
  182. package/dist/ir-I-xciGUH.mjs +36 -0
  183. package/dist/ir-I-xciGUH.mjs.map +1 -0
  184. package/dist/lane-query-builder.d.mts +236 -0
  185. package/dist/lane-query-builder.d.mts.map +1 -0
  186. package/dist/lane-query-builder.mjs +67 -0
  187. package/dist/lane-query-builder.mjs.map +1 -0
  188. package/dist/middleware-B4XbF4d4-tfwBl6mX.d.mts +119 -0
  189. package/dist/middleware-B4XbF4d4-tfwBl6mX.d.mts.map +1 -0
  190. package/dist/middleware-ByRsXxxq.d.mts +1 -0
  191. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs +80 -0
  192. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +1 -0
  193. package/dist/migration-CK4oePIo.mjs +44 -0
  194. package/dist/migration-CK4oePIo.mjs.map +1 -0
  195. package/dist/migration-CW0ZJLxP.d.mts +44 -0
  196. package/dist/migration-CW0ZJLxP.d.mts.map +1 -0
  197. package/dist/naming-BwqqVcZy-BgTObIQw.mjs +177 -0
  198. package/dist/naming-BwqqVcZy-BgTObIQw.mjs.map +1 -0
  199. package/dist/naming-jLgdauLi-C84G_UHi.d.mts +133 -0
  200. package/dist/naming-jLgdauLi-C84G_UHi.d.mts.map +1 -0
  201. package/dist/operations.d.mts +2 -0
  202. package/dist/operations.mjs +2 -0
  203. package/dist/orm-client.d.mts +1316 -0
  204. package/dist/orm-client.d.mts.map +1 -0
  205. package/dist/orm-client.mjs +4544 -0
  206. package/dist/orm-client.mjs.map +1 -0
  207. package/dist/pack-types-BcLTpwbv.d.mts +14 -0
  208. package/dist/pack-types-BcLTpwbv.d.mts.map +1 -0
  209. package/dist/plan-BTD8xFfa-Dd_K-A1R.d.mts +45 -0
  210. package/dist/plan-BTD8xFfa-Dd_K-A1R.d.mts.map +1 -0
  211. package/dist/plan-CkpcgUaM.mjs +34 -0
  212. package/dist/plan-CkpcgUaM.mjs.map +1 -0
  213. package/dist/plan-Cm4jaoNM.d.mts +2 -0
  214. package/dist/psl-infer-6je61Z6J.d.mts +119 -0
  215. package/dist/psl-infer-6je61Z6J.d.mts.map +1 -0
  216. package/dist/psl-infer-DGftl-HW.mjs +362 -0
  217. package/dist/psl-infer-DGftl-HW.mjs.map +1 -0
  218. package/dist/query-lane-context-Bz8XJZ45.d.mts +1 -0
  219. package/dist/query-lane-context-DtdVMqoz-C2Tj5QHA.d.mts +94 -0
  220. package/dist/query-lane-context-DtdVMqoz-C2Tj5QHA.d.mts.map +1 -0
  221. package/dist/referential-action-sql-Csd6dA8G.d.mts +12 -0
  222. package/dist/referential-action-sql-Csd6dA8G.d.mts.map +1 -0
  223. package/dist/referential-action-sql-DSqkrySN.mjs +17 -0
  224. package/dist/referential-action-sql-DSqkrySN.mjs.map +1 -0
  225. package/dist/relational-core.d.mts +13 -0
  226. package/dist/relational-core.mjs +8 -0
  227. package/dist/relational-core__ast.d.mts +5 -0
  228. package/dist/relational-core__ast.mjs +5 -0
  229. package/dist/relational-core__codec-descriptor-registry.d.mts +39 -0
  230. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -0
  231. package/dist/relational-core__codec-descriptor-registry.mjs +2 -0
  232. package/dist/relational-core__contract-free.d.mts +220 -0
  233. package/dist/relational-core__contract-free.d.mts.map +1 -0
  234. package/dist/relational-core__contract-free.mjs +393 -0
  235. package/dist/relational-core__contract-free.mjs.map +1 -0
  236. package/dist/relational-core__expression.d.mts +2 -0
  237. package/dist/relational-core__expression.mjs +2 -0
  238. package/dist/relational-core__middleware.d.mts +3 -0
  239. package/dist/relational-core__middleware.mjs +2 -0
  240. package/dist/relational-core__plan.d.mts +4 -0
  241. package/dist/relational-core__plan.mjs +2 -0
  242. package/dist/relational-core__query-lane-context.d.mts +3 -0
  243. package/dist/relational-core__query-lane-context.mjs +1 -0
  244. package/dist/relational-core__types.d.mts +3 -0
  245. package/dist/relational-core__types.mjs +1 -0
  246. package/dist/resolve-storage-table-DUwyRJmP.d.mts +21 -0
  247. package/dist/resolve-storage-table-DUwyRJmP.d.mts.map +1 -0
  248. package/dist/resolve-storage-table-DZsfnzeW.mjs +46 -0
  249. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +1 -0
  250. package/dist/runtime-DNewRuec.d.mts +46 -0
  251. package/dist/runtime-DNewRuec.d.mts.map +1 -0
  252. package/dist/runtime-tIHpGCcG.mjs +55 -0
  253. package/dist/runtime-tIHpGCcG.mjs.map +1 -0
  254. package/dist/runtime.d.mts +4 -0
  255. package/dist/runtime.mjs +1606 -0
  256. package/dist/runtime.mjs.map +1 -0
  257. package/dist/schema-differ-DpG_gnur-g5_iks8G.d.mts +47 -0
  258. package/dist/schema-differ-DpG_gnur-g5_iks8G.d.mts.map +1 -0
  259. package/dist/schema-ir.d.mts +2 -0
  260. package/dist/schema-ir.mjs +2 -0
  261. package/dist/schema-ir__naming.d.mts +2 -0
  262. package/dist/schema-ir__naming.mjs +2 -0
  263. package/dist/schema-ir__types.d.mts +3 -0
  264. package/dist/schema-ir__types.mjs +2 -0
  265. package/dist/schema-verify-vtFZbmGq-BNfTr6fU.mjs +222 -0
  266. package/dist/schema-verify-vtFZbmGq-BNfTr6fU.mjs.map +1 -0
  267. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts +26 -0
  268. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts.map +1 -0
  269. package/dist/serialized-index-Dp5_EjXD-DMsw8jf3.mjs +64 -0
  270. package/dist/serialized-index-Dp5_EjXD-DMsw8jf3.mjs.map +1 -0
  271. package/dist/sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs +171 -0
  272. package/dist/sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs.map +1 -0
  273. package/dist/sql-execution-plan-CJmsCP7n-DoEpNn7r.d.mts +32 -0
  274. package/dist/sql-execution-plan-CJmsCP7n-DoEpNn7r.d.mts.map +1 -0
  275. package/dist/sql-index-DsI8HAeK-BJsn-jvD.d.mts +72 -0
  276. package/dist/sql-index-DsI8HAeK-BJsn-jvD.d.mts.map +1 -0
  277. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts +42 -0
  278. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +1 -0
  279. package/dist/sql-storage-B0QwiTg6-B8DVctJm.d.mts +171 -0
  280. package/dist/sql-storage-B0QwiTg6-B8DVctJm.d.mts.map +1 -0
  281. package/dist/storage-table-BBaAmanc-BwR37LMA.d.mts +130 -0
  282. package/dist/storage-table-BBaAmanc-BwR37LMA.d.mts.map +1 -0
  283. package/dist/storage-table-_LWDmPfv-DFhU2dML.mjs +277 -0
  284. package/dist/storage-table-_LWDmPfv-DFhU2dML.mjs.map +1 -0
  285. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts +41 -0
  286. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +1 -0
  287. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +173 -0
  288. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +1 -0
  289. package/dist/types-BchwQpmO.d.mts +16 -0
  290. package/dist/types-BchwQpmO.d.mts.map +1 -0
  291. package/dist/types-BgkZru_1-H7yfikSQ.mjs +1444 -0
  292. package/dist/types-BgkZru_1-H7yfikSQ.mjs.map +1 -0
  293. package/dist/types-CMMQS6aG.mjs +111 -0
  294. package/dist/types-CMMQS6aG.mjs.map +1 -0
  295. package/dist/types-CuDrWc5v-ISVXBmBs.d.mts +134 -0
  296. package/dist/types-CuDrWc5v-ISVXBmBs.d.mts.map +1 -0
  297. package/dist/types-CvbBw1Jo-3KQdErJY.d.mts +688 -0
  298. package/dist/types-CvbBw1Jo-3KQdErJY.d.mts.map +1 -0
  299. package/dist/types-DIBA80mc-wf5wLmON.d.mts +723 -0
  300. package/dist/types-DIBA80mc-wf5wLmON.d.mts.map +1 -0
  301. package/dist/types-DMxc5KZa.d.mts +1 -0
  302. package/dist/types-Dl20lxky-DC_jdA0T.d.mts +247 -0
  303. package/dist/types-Dl20lxky-DC_jdA0T.d.mts.map +1 -0
  304. package/dist/types-DmhUVq4u-BpqqjPJx.mjs +719 -0
  305. package/dist/types-DmhUVq4u-BpqqjPJx.mjs.map +1 -0
  306. package/dist/types-IqZMLrFC-DtdJNICr.d.mts +426 -0
  307. package/dist/types-IqZMLrFC-DtdJNICr.d.mts.map +1 -0
  308. package/dist/types-TvBZ2Ne9.d.mts +1 -0
  309. package/dist/unique-constraint-jQWfH7dg-zLWtFp99.d.mts +32 -0
  310. package/dist/unique-constraint-jQWfH7dg-zLWtFp99.d.mts.map +1 -0
  311. package/dist/util-DQQgv2j1-D6INZaRG.mjs +34 -0
  312. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +1 -0
  313. package/dist/validators-C4PItWnf.mjs +0 -0
  314. package/dist/validators-C4PItWnf.mjs.map +1 -0
  315. package/dist/validators-CxeHhHrf.d.mts +206 -0
  316. package/dist/validators-CxeHhHrf.d.mts.map +1 -0
  317. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts +35 -0
  318. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +1 -0
  319. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs +22 -0
  320. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +1 -0
  321. package/dist/verify-E6Dd2vYp-gYwnlhLm.mjs +86 -0
  322. package/dist/verify-E6Dd2vYp-gYwnlhLm.mjs.map +1 -0
  323. package/dist/verify-zDRnw0Rn.d.mts +26 -0
  324. package/dist/verify-zDRnw0Rn.d.mts.map +1 -0
  325. package/package.json +112 -0
@@ -0,0 +1,39 @@
1
+ import { buildNamespacedEntities, buildSingleNamespaceView } from "@prisma/orm-framework/components/ir";
2
+ //#region ../../../2-sql/1-core/contract/dist/contract-view.mjs
3
+ /**
4
+ * The SQL family's statically-named built-in entity kinds. `table` and
5
+ * `valueSet` are promoted to top-level view accessors; pack-contributed kinds
6
+ * (e.g. `policy`) stay under `.entries`.
7
+ */
8
+ const SQL_BUILTIN_KINDS = ["table", "valueSet"];
9
+ /**
10
+ * Builds the single-namespace SQL view: unwraps the sole namespace's SQL
11
+ * built-in kinds (`table`, `valueSet`) to the root, attaches the namespace-keyed
12
+ * `namespace` map, and layers both over the deserialized contract. Targets with
13
+ * one default namespace (SQLite) call this directly; Postgres qualifies by
14
+ * schema.
15
+ */
16
+ function buildSqlSingleNamespaceView(contract) {
17
+ const rootAccessors = buildSingleNamespaceView(contract.storage, SQL_BUILTIN_KINDS);
18
+ const namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);
19
+ return {
20
+ ...contract,
21
+ ...rootAccessors,
22
+ namespace
23
+ };
24
+ }
25
+ /**
26
+ * Builds the schema-qualified SQL view: attaches the namespace-keyed `namespace`
27
+ * map over the deserialized contract. Postgres uses this.
28
+ */
29
+ function buildSqlSchemaQualifiedView(contract) {
30
+ const namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);
31
+ return {
32
+ ...contract,
33
+ namespace
34
+ };
35
+ }
36
+ //#endregion
37
+ export { buildSqlSchemaQualifiedView as n, buildSqlSingleNamespaceView as r, SQL_BUILTIN_KINDS as t };
38
+
39
+ //# sourceMappingURL=contract-view-BMR5IWk4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-view-BMR5IWk4.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/contract-view.mjs"],"sourcesContent":["import { buildNamespacedEntities, buildSingleNamespaceView } from \"@internal/framework-components/ir\";\n//#region src/contract-view.ts\n/**\n* The SQL family's statically-named built-in entity kinds. `table` and\n* `valueSet` are promoted to top-level view accessors; pack-contributed kinds\n* (e.g. `policy`) stay under `.entries`.\n*/\nconst SQL_BUILTIN_KINDS = [\"table\", \"valueSet\"];\n/**\n* Builds the single-namespace SQL view: unwraps the sole namespace's SQL\n* built-in kinds (`table`, `valueSet`) to the root, attaches the namespace-keyed\n* `namespace` map, and layers both over the deserialized contract. Targets with\n* one default namespace (SQLite) call this directly; Postgres qualifies by\n* schema.\n*/\nfunction buildSqlSingleNamespaceView(contract) {\n\tconst rootAccessors = buildSingleNamespaceView(contract.storage, SQL_BUILTIN_KINDS);\n\tconst namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);\n\treturn {\n\t\t...contract,\n\t\t...rootAccessors,\n\t\tnamespace\n\t};\n}\n/**\n* Builds the schema-qualified SQL view: attaches the namespace-keyed `namespace`\n* map over the deserialized contract. Postgres uses this.\n*/\nfunction buildSqlSchemaQualifiedView(contract) {\n\tconst namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);\n\treturn {\n\t\t...contract,\n\t\tnamespace\n\t};\n}\n//#endregion\nexport { SQL_BUILTIN_KINDS, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };\n\n//# sourceMappingURL=contract-view.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,oBAAoB,CAAC,SAAS,UAAU;;;;;;;;AAQ9C,SAAS,4BAA4B,UAAU;CAC9C,MAAM,gBAAgB,yBAAyB,SAAS,SAAS,iBAAiB;CAClF,MAAM,YAAY,wBAAwB,SAAS,SAAS,iBAAiB;CAC7E,OAAO;EACN,GAAG;EACH,GAAG;EACH;CACD;AACD;;;;;AAKA,SAAS,4BAA4B,UAAU;CAC9C,MAAM,YAAY,wBAAwB,SAAS,SAAS,iBAAiB;CAC7E,OAAO;EACN,GAAG;EACH;CACD;AACD"}
@@ -0,0 +1,61 @@
1
+ import { c as SqlStorage } from "./sql-storage-B0QwiTg6-B8DVctJm.mjs";
2
+ import { DefaultNamespaceEntries, NamespacedEntities, SingleNamespaceView } from "@prisma/orm-framework/components/ir";
3
+ import { Contract } from "@prisma/orm-framework/contract/types";
4
+ //#region ../../../2-sql/1-core/contract/dist/contract-view.d.mts
5
+ //#region src/contract-view.d.ts
6
+ /**
7
+ * The SQL family's statically-named built-in entity kinds. `table` and
8
+ * `valueSet` are promoted to top-level view accessors; pack-contributed kinds
9
+ * (e.g. `policy`) stay under `.entries`.
10
+ */
11
+ declare const SQL_BUILTIN_KINDS: readonly ["table", "valueSet"];
12
+ type SqlBuiltinKind = (typeof SQL_BUILTIN_KINDS)[number];
13
+ type SqlEntries<TContract extends Contract<SqlStorage>> = DefaultNamespaceEntries<TContract['storage']>;
14
+ /**
15
+ * The single-namespace SQL accessors: `table`/`valueSet` top-level, pack kinds
16
+ * under `entries`. A target that never emits a built-in kind (SQLite has
17
+ * `sql.enums: false`, so it emits no `valueSet`) resolves that slot to an empty
18
+ * map.
19
+ */
20
+ type SqlSingleNamespaceAccessors<TContract extends Contract<SqlStorage>> = SingleNamespaceView<SqlEntries<TContract>, SqlBuiltinKind>;
21
+ /**
22
+ * Single-namespace SQL view: the deserialized contract intersected with the
23
+ * by-name accessors, so the value is substitutable for `Contract` while also
24
+ * exposing:
25
+ * - `view.table.<name>` / `view.valueSet.<name>` — built-in kinds, sole
26
+ * namespace unwrapped to the root; pack kinds under `view.entries.<kind>`.
27
+ * - `view.namespace.<id>` — the namespace-keyed entity map (SQLite's sole
28
+ * namespace is `__unbound__`). Mirrors the runtime `db.enums` pattern.
29
+ */
30
+ type SqlSingleNamespaceView<TContract extends Contract<SqlStorage>> = TContract & SqlSingleNamespaceAccessors<TContract> & {
31
+ readonly namespace: NamespacedEntities<TContract['storage'], SqlBuiltinKind>;
32
+ };
33
+ /**
34
+ * Builds the single-namespace SQL view: unwraps the sole namespace's SQL
35
+ * built-in kinds (`table`, `valueSet`) to the root, attaches the namespace-keyed
36
+ * `namespace` map, and layers both over the deserialized contract. Targets with
37
+ * one default namespace (SQLite) call this directly; Postgres qualifies by
38
+ * schema.
39
+ */
40
+ declare function buildSqlSingleNamespaceView<TContract extends Contract<SqlStorage>>(contract: TContract): SqlSingleNamespaceView<TContract>;
41
+ /**
42
+ * Schema-qualified SQL view: the deserialized contract intersected with a single
43
+ * `view.namespace.<id>` member — every schema reached by raw id
44
+ * (`view.namespace.public.table.users`), mirroring the runtime `db.enums.<ns>`
45
+ * keying exactly (the default schema keeps its literal `__unbound__` id). There
46
+ * is NO root schema-name promotion, so there is no collision with contract
47
+ * envelope fields — `view.storage` is always the contract's `storage`. Postgres
48
+ * uses this; SQLite (single default namespace) uses
49
+ * {@link buildSqlSingleNamespaceView}.
50
+ */
51
+ type SqlSchemaQualifiedView<TContract extends Contract<SqlStorage>> = TContract & {
52
+ readonly namespace: NamespacedEntities<TContract['storage'], SqlBuiltinKind>;
53
+ };
54
+ /**
55
+ * Builds the schema-qualified SQL view: attaches the namespace-keyed `namespace`
56
+ * map over the deserialized contract. Postgres uses this.
57
+ */
58
+ declare function buildSqlSchemaQualifiedView<TContract extends Contract<SqlStorage>>(contract: TContract): SqlSchemaQualifiedView<TContract>;
59
+ //#endregion
60
+ export { SqlSingleNamespaceView as a, SqlSingleNamespaceAccessors as i, SqlBuiltinKind as n, buildSqlSchemaQualifiedView as o, SqlSchemaQualifiedView as r, buildSqlSingleNamespaceView as s, SQL_BUILTIN_KINDS as t };
61
+ //# sourceMappingURL=contract-view-BbWQp6r4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-view-BbWQp6r4.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/contract-view.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,yBAAyB;KACzB,WAAW,kBAAkB,SAAS,eAAe,wBAAwB;;;;;;;KAO7E,4BAA4B,kBAAkB,SAAS,eAAe,oBAAoB,WAAW,YAAY;;;;;;;;;;KAUjH,uBAAuB,kBAAkB,SAAS,eAAe,YAAY,4BAA4B;WACnG,WAAW,mBAAmB,sBAAsB;;;;;;;;;iBAS9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB;;;;;;;;;;;KAW7H,uBAAuB,kBAAkB,SAAS,eAAe;WAC3D,WAAW,mBAAmB,sBAAsB;;;;;;iBAM9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB"}
@@ -0,0 +1,26 @@
1
+ import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
2
+ import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput, r as ForeignKeyReference, t as ForeignKey } from "./foreign-key-BSy9u4O4-BnsOe5Nf.mjs";
3
+ import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-jQWfH7dg-zLWtFp99.mjs";
4
+ import { r as IndexInput, t as Index } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
5
+ import { a as StorageTable, i as StorageColumnInput, n as CheckConstraintInput, o as StorageTableInput, r as StorageColumn, t as CheckConstraint } from "./storage-table-BBaAmanc-BwR37LMA.mjs";
6
+ import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
7
+ import { a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as toStorageTypeInstance, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-B0QwiTg6-B8DVctJm.mjs";
8
+ import { n as indexInputFromSerialized, t as SerializedIndex } from "./serialized-index-B96AwqtU-DcqcB4q_.mjs";
9
+ import { A as TypeMapsPhantomKey, C as SqlControlDriverInstance, D as StorageColumnInputTypesOf, E as SqlQueryOperationTypes, O as StorageColumnTypesOf, S as ResolveCodecTypes, T as SqlModelStorage, _ as QueryOperationReturn, a as ExtractCodecTypes, b as QueryOperationTypesBase, c as ExtractQueryOperationTypes, d as ExtractTypeMapsFromContract, f as FieldInputTypesOf, g as NamespacedStorageColumnTypeMap, h as NamespacedFieldTypeMap, i as DEFAULT_FK_INDEX, j as applyFkDefaults, k as TypeMaps, l as ExtractStorageColumnInputTypes, m as ForeignKeyOptions, n as ContractWithTypeMaps, o as ExtractFieldInputTypes, p as FieldOutputTypesOf, r as DEFAULT_FK_CONSTRAINT, s as ExtractFieldOutputTypes, t as CodecTypesOf, u as ExtractStorageColumnTypes, v as QueryOperationSelfSpec, w as SqlModelFieldStorage, x as QueryOperationTypesOf, y as QueryOperationTypeEntry } from "./types-CuDrWc5v-ISVXBmBs.mjs";
10
+ import { n as StorageColumnTypeAcrossNamespaces, t as StorageColumnMapAt } from "./types-BchwQpmO.mjs";
11
+ import { a as ResolvedPackEntityHandle, c as providesEntityHandleLowering, i as ResolvedEntityHandleRef, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput } from "./entity-handle-lowering-hook-CIvRKBfa.mjs";
12
+ import { i as lowerAuthoredIndex, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-BZWoh45T.mjs";
13
+ import { a as IndexTypeRegistry, i as IndexTypeRegistration, n as IndexTypeEntry, o as createIndexTypeRegistry, r as IndexTypeMap, s as defineIndexTypes, t as IndexTypeBuilder } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
14
+ import "./index-types-CNhHgKHi.mjs";
15
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
16
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BbWQp6r4.mjs";
17
+ import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-Dh6VH4uK.mjs";
18
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-B7tA4y9D.mjs";
19
+ import { a as isBackedByColumnKeys, i as backingIndexColumnKeys, n as ForeignKeyAuthoringInput, o as materializeForeignKeysAndIndexes, r as MaterializedTableConstraints, t as BackingIndexCandidates } from "./foreign-key-materialization-Ca-wRbmj.mjs";
20
+ import { t as validateIndexTypes } from "./index-type-validation-DN0L2mqm.mjs";
21
+ import { t as StorageTypeMetadata } from "./pack-types-BcLTpwbv.mjs";
22
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Csd6dA8G.mjs";
23
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DUwyRJmP.mjs";
24
+ import { S as validateStorageSemantics, _ as validateModel, a as ContractEnumSchema, b as validateSqlStorageConsistency, c as ForeignKeySourceSchema, d as StorageTableSchema, f as StorageValueSetSchema, g as createSqlStorageSchema, h as createSqlContractSchema, i as ColumnDefaultSchema, l as IndexSchema, m as createNamespaceEntrySchema, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as ValidateSqlContractFullyOptions, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as validateModelStorageReferences, x as validateStorage, y as validateSqlContractFully } from "./validators-CxeHhHrf.mjs";
25
+ import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
26
+ export { type AuthoredIndexInput, type AuthoredIndexMethod, type BackingIndexCandidates, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type EntityHandleLoweringInput, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedStorageTable, SQL_BUILTIN_KINDS, type SerializedIndex, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, type StorageTypeMetadata, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, applyFkDefaults, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, providesEntityHandleLowering, providesValueSetDerivation, resolveStorageTable, sqlContractCanonicalizationHooks, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
@@ -0,0 +1,17 @@
1
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-DfIc_lOO.mjs";
2
+ import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
3
+ import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-DwLIKNiS.mjs";
4
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-_LWDmPfv-DFhU2dML.mjs";
5
+ import { n as indexInputFromSerialized, r as isStorageValueSet, t as StorageValueSet } from "./serialized-index-Dp5_EjXD-DMsw8jf3.mjs";
6
+ import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-DKxwKolf-CcsY-iYV.mjs";
7
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-CDG9zBxC.mjs";
8
+ import { n as lowerAuthoredIndex, t as exactNameBodyWarning } from "./index-naming-BoGBcMmI-DiJAr66H.mjs";
9
+ import { n as isBackedByColumnKeys, r as materializeForeignKeysAndIndexes, t as backingIndexColumnKeys } from "./foreign-key-materialization-HI7BIQrG.mjs";
10
+ import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
11
+ import { n as defineIndexTypes, t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
12
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
13
+ import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
14
+ import { a as SqlStorage, c as isSqlAuthoringContributions, i as SqlNamespaceBase, l as isStorageTypeInstance, n as DEFAULT_FK_CONSTRAINT, o as applyFkDefaults, r as DEFAULT_FK_INDEX, s as isMaterializedSqlNamespace, t as CODEC_INSTANCE_KIND, u as toStorageTypeInstance } from "./types-CMMQS6aG.mjs";
15
+ import { a as validateModel, c as validateSqlStorageConsistency, i as createSqlStorageSchema, l as validateStorage, n as createNamespaceEntrySchema, o as validateModelStorageReferences, r as createSqlContractSchema, s as validateSqlContractFully, t as ContractEnumSchema, u as validateStorageSemantics } from "./validators-C4PItWnf.mjs";
16
+ import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
17
+ export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, SQL_BUILTIN_KINDS, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, applyFkDefaults, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, providesEntityHandleLowering, providesValueSetDerivation, resolveStorageTable, sqlContractCanonicalizationHooks, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
@@ -0,0 +1,2 @@
1
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
2
+ export { sqlContractCanonicalizationHooks };
@@ -0,0 +1,2 @@
1
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-DfIc_lOO.mjs";
2
+ export { sqlContractCanonicalizationHooks };
@@ -0,0 +1,2 @@
1
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BbWQp6r4.mjs";
2
+ export { SQL_BUILTIN_KINDS, type SqlBuiltinKind, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
@@ -0,0 +1,2 @@
1
+ import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
2
+ export { SQL_BUILTIN_KINDS, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
@@ -0,0 +1,2 @@
1
+ import { a as ResolvedPackEntityHandle, c as providesEntityHandleLowering, i as ResolvedEntityHandleRef, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput } from "./entity-handle-lowering-hook-CIvRKBfa.mjs";
2
+ export { type EntityHandleLoweringInput, type LoweredPackEntity, type PackEntityHandle, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type SqlEntityHandleLoweringContribution, providesEntityHandleLowering };
@@ -0,0 +1,2 @@
1
+ import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-DwLIKNiS.mjs";
2
+ export { providesEntityHandleLowering };
@@ -0,0 +1,2 @@
1
+ import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-Dh6VH4uK.mjs";
2
+ export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
@@ -0,0 +1,2 @@
1
+ import { f as composeSqlEntityKinds, m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-DKxwKolf-CcsY-iYV.mjs";
2
+ export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
@@ -0,0 +1,2 @@
1
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-B7tA4y9D.mjs";
2
+ export { col, fk, index, model, pk, table, unique };
@@ -0,0 +1,2 @@
1
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-CDG9zBxC.mjs";
2
+ export { col, fk, index, model, pk, table, unique };
@@ -0,0 +1,2 @@
1
+ import { a as isBackedByColumnKeys, i as backingIndexColumnKeys, n as ForeignKeyAuthoringInput, o as materializeForeignKeysAndIndexes, r as MaterializedTableConstraints, t as BackingIndexCandidates } from "./foreign-key-materialization-Ca-wRbmj.mjs";
2
+ export { type BackingIndexCandidates, type ForeignKeyAuthoringInput, type MaterializedTableConstraints, backingIndexColumnKeys, isBackedByColumnKeys, materializeForeignKeysAndIndexes };
@@ -0,0 +1,2 @@
1
+ import { n as isBackedByColumnKeys, r as materializeForeignKeysAndIndexes, t as backingIndexColumnKeys } from "./foreign-key-materialization-HI7BIQrG.mjs";
2
+ export { backingIndexColumnKeys, isBackedByColumnKeys, materializeForeignKeysAndIndexes };
@@ -0,0 +1,2 @@
1
+ import { i as lowerAuthoredIndex, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-BZWoh45T.mjs";
2
+ export { type AuthoredIndexInput, type AuthoredIndexMethod, exactNameBodyWarning, lowerAuthoredIndex };
@@ -0,0 +1,2 @@
1
+ import { n as lowerAuthoredIndex, t as exactNameBodyWarning } from "./index-naming-BoGBcMmI-DiJAr66H.mjs";
2
+ export { exactNameBodyWarning, lowerAuthoredIndex };
@@ -0,0 +1,2 @@
1
+ import { t as validateIndexTypes } from "./index-type-validation-DN0L2mqm.mjs";
2
+ export { validateIndexTypes };
@@ -0,0 +1,2 @@
1
+ import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
2
+ export { validateIndexTypes };
@@ -0,0 +1,3 @@
1
+ import { a as IndexTypeRegistry, i as IndexTypeRegistration, n as IndexTypeEntry, o as createIndexTypeRegistry, r as IndexTypeMap, s as defineIndexTypes, t as IndexTypeBuilder } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
2
+ import "./index-types-CNhHgKHi.mjs";
3
+ export { type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, createIndexTypeRegistry, defineIndexTypes };
@@ -0,0 +1,2 @@
1
+ import { n as defineIndexTypes, t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
2
+ export { createIndexTypeRegistry, defineIndexTypes };
@@ -0,0 +1,2 @@
1
+ import { t as StorageTypeMetadata } from "./pack-types-BcLTpwbv.mjs";
2
+ export type { StorageTypeMetadata };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Csd6dA8G.mjs";
2
+ export { REFERENTIAL_ACTION_SQL };
@@ -0,0 +1,2 @@
1
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
2
+ export { REFERENTIAL_ACTION_SQL };
@@ -0,0 +1,2 @@
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DUwyRJmP.mjs";
2
+ export { type ResolvedStorageTable, resolveStorageTable };
@@ -0,0 +1,2 @@
1
+ import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
+ export { resolveStorageTable };
@@ -0,0 +1,11 @@
1
+ import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
2
+ import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput, r as ForeignKeyReference, t as ForeignKey } from "./foreign-key-BSy9u4O4-BnsOe5Nf.mjs";
3
+ import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-jQWfH7dg-zLWtFp99.mjs";
4
+ import { r as IndexInput, t as Index } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
5
+ import { a as StorageTable, i as StorageColumnInput, n as CheckConstraintInput, o as StorageTableInput, r as StorageColumn, t as CheckConstraint } from "./storage-table-BBaAmanc-BwR37LMA.mjs";
6
+ import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
7
+ import { a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as toStorageTypeInstance, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-B0QwiTg6-B8DVctJm.mjs";
8
+ import { n as indexInputFromSerialized, t as SerializedIndex } from "./serialized-index-B96AwqtU-DcqcB4q_.mjs";
9
+ import { A as TypeMapsPhantomKey, C as SqlControlDriverInstance, D as StorageColumnInputTypesOf, E as SqlQueryOperationTypes, O as StorageColumnTypesOf, S as ResolveCodecTypes, T as SqlModelStorage, _ as QueryOperationReturn, a as ExtractCodecTypes, b as QueryOperationTypesBase, c as ExtractQueryOperationTypes, d as ExtractTypeMapsFromContract, f as FieldInputTypesOf, g as NamespacedStorageColumnTypeMap, h as NamespacedFieldTypeMap, i as DEFAULT_FK_INDEX, j as applyFkDefaults, k as TypeMaps, l as ExtractStorageColumnInputTypes, m as ForeignKeyOptions, n as ContractWithTypeMaps, o as ExtractFieldInputTypes, p as FieldOutputTypesOf, r as DEFAULT_FK_CONSTRAINT, s as ExtractFieldOutputTypes, t as CodecTypesOf, u as ExtractStorageColumnTypes, v as QueryOperationSelfSpec, w as SqlModelFieldStorage, x as QueryOperationTypesOf, y as QueryOperationTypeEntry } from "./types-CuDrWc5v-ISVXBmBs.mjs";
10
+ import { n as StorageColumnTypeAcrossNamespaces, t as StorageColumnMapAt } from "./types-BchwQpmO.mjs";
11
+ export { CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, type CodecTypesOf, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, Index, type IndexInput, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, type ReferentialAction, type ResolveCodecTypes, type SerializedIndex, type SqlAuthoringContributions, type SqlControlDriverInstance, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, applyFkDefaults, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, toStorageTypeInstance };
@@ -0,0 +1,4 @@
1
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-_LWDmPfv-DFhU2dML.mjs";
2
+ import { n as indexInputFromSerialized, r as isStorageValueSet, t as StorageValueSet } from "./serialized-index-Dp5_EjXD-DMsw8jf3.mjs";
3
+ import { a as SqlStorage, c as isSqlAuthoringContributions, i as SqlNamespaceBase, l as isStorageTypeInstance, n as DEFAULT_FK_CONSTRAINT, o as applyFkDefaults, r as DEFAULT_FK_INDEX, s as isMaterializedSqlNamespace, t as CODEC_INSTANCE_KIND, u as toStorageTypeInstance } from "./types-CMMQS6aG.mjs";
4
+ export { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, toStorageTypeInstance };
@@ -0,0 +1,2 @@
1
+ import { S as validateStorageSemantics, _ as validateModel, a as ContractEnumSchema, b as validateSqlStorageConsistency, c as ForeignKeySourceSchema, d as StorageTableSchema, f as StorageValueSetSchema, g as createSqlStorageSchema, h as createSqlContractSchema, i as ColumnDefaultSchema, l as IndexSchema, m as createNamespaceEntrySchema, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as ValidateSqlContractFullyOptions, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as validateModelStorageReferences, x as validateStorage, y as validateSqlContractFully } from "./validators-CxeHhHrf.mjs";
2
+ export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, StorageTableSchema, StorageValueSetSchema, ValidateSqlContractFullyOptions, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics };
@@ -0,0 +1,3 @@
1
+ import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-DKxwKolf-CcsY-iYV.mjs";
2
+ import { a as validateModel, c as validateSqlStorageConsistency, i as createSqlStorageSchema, l as validateStorage, n as createNamespaceEntrySchema, o as validateModelStorageReferences, r as createSqlContractSchema, s as validateSqlContractFully, t as ContractEnumSchema, u as validateStorageSemantics } from "./validators-C4PItWnf.mjs";
3
+ export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, StorageTableSchema, StorageValueSetSchema, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics };
@@ -0,0 +1,2 @@
1
+ import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
2
+ export { type SqlValueSetDerivingEntityTypeOutput, deriveValueSetFromEntity, providesValueSetDerivation };
@@ -0,0 +1,2 @@
1
+ import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
2
+ export { deriveValueSetFromEntity, providesValueSetDerivation };