@prisma/orm-target-sqlite 8.0.0-rc.19-dev.8 → 8.0.0-rc.19-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/{adapter-7m8HU4rt-C6hQAALX.mjs → adapter-7m8HU4rt-DN15_Cn8.mjs} +10 -10
  2. package/dist/adapter-7m8HU4rt-DN15_Cn8.mjs.map +1 -0
  3. package/dist/{adapter-xFPDhkod-BsfRQfp6.d.mts → adapter-xFPDhkod-BsdLsy9N.d.mts} +9 -9
  4. package/dist/adapter-xFPDhkod-BsdLsy9N.d.mts.map +1 -0
  5. package/dist/{adapter-e4_SMdnY.d.mts → adapter-xs2nBMBo.d.mts} +4 -4
  6. package/dist/adapter-xs2nBMBo.d.mts.map +1 -0
  7. package/dist/adapter.d.mts +13 -13
  8. package/dist/adapter.mjs +6 -6
  9. package/dist/adapter__adapter.d.mts +3 -3
  10. package/dist/adapter__adapter.mjs +2 -2
  11. package/dist/adapter__codec-types.d.mts +3 -3
  12. package/dist/adapter__column-types.d.mts +1 -1
  13. package/dist/adapter__column-types.mjs +1 -1
  14. package/dist/adapter__control.d.mts +4 -4
  15. package/dist/adapter__control.mjs +6 -6
  16. package/dist/adapter__control.mjs.map +1 -1
  17. package/dist/adapter__runtime.d.mts +1 -1
  18. package/dist/adapter__runtime.mjs +4 -4
  19. package/dist/adapter__runtime.mjs.map +1 -1
  20. package/dist/adapter__sql-renderer.d.mts +2 -2
  21. package/dist/adapter__sql-renderer.mjs +1 -1
  22. package/dist/adapter__types.d.mts +3 -3
  23. package/dist/{aggregates-exfiPSHR.mjs → aggregates-D5fuFVMC.mjs} +3 -3
  24. package/dist/aggregates-D5fuFVMC.mjs.map +1 -0
  25. package/dist/{aggregates-CP9IZJhO.d.mts → aggregates-DC8nyCjN.d.mts} +2 -2
  26. package/dist/aggregates-DC8nyCjN.d.mts.map +1 -0
  27. package/dist/codec-descriptor-3oN7rtrW-Cc_u7U5-.d.mts +1 -0
  28. package/dist/codec-descriptor-C16gQAdS.d.mts +2 -0
  29. package/dist/{codec-descriptor-DRmF-crq-BzlPCPyM.mjs → codec-descriptor-DRmF-crq-BALI5Jtz.mjs} +2 -2
  30. package/dist/codec-descriptor-DRmF-crq-BALI5Jtz.mjs.map +1 -0
  31. package/dist/{codec-descriptor-DuW-d9ef-CLGWK2wF.d.mts → codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts} +2 -2
  32. package/dist/codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts.map +1 -0
  33. package/dist/codec-ids-CMbhYIsa.d.mts +1 -0
  34. package/dist/{codec-ids-DuJYssXV-BW3y5jTO.d.mts → codec-ids-DuJYssXV-BPKbFNRL.d.mts} +2 -2
  35. package/dist/codec-ids-DuJYssXV-BPKbFNRL.d.mts.map +1 -0
  36. package/dist/{codec-ids-wgEvkCkg-8bxcCujY.mjs → codec-ids-wgEvkCkg-WltuexMR.mjs} +2 -2
  37. package/dist/codec-ids-wgEvkCkg-WltuexMR.mjs.map +1 -0
  38. package/dist/{codec-types-COh75Bop-YF2hiOlF.d.mts → codec-types-COh75Bop-CUehAexc.d.mts} +5 -5
  39. package/dist/codec-types-COh75Bop-CUehAexc.d.mts.map +1 -0
  40. package/dist/codec-types-ELHfd82J.d.mts +2 -0
  41. package/dist/codec-types-PONhVn74.d.mts +1 -0
  42. package/dist/{codecs-BJYruC-a-gv28KlTa.d.mts → codecs-BJYruC-a-BKDGae3k.d.mts} +4 -4
  43. package/dist/codecs-BJYruC-a-BKDGae3k.d.mts.map +1 -0
  44. package/dist/codecs-Dn0xoCuf.d.mts +1 -0
  45. package/dist/{codecs-QLF1GwJG.mjs → codecs-g-YI3BtK.mjs} +4 -4
  46. package/dist/codecs-g-YI3BtK.mjs.map +1 -0
  47. package/dist/{codecs-yZoH21Yj-DfCqJxdc.mjs → codecs-yZoH21Yj-lQXtGlEq.mjs} +6 -6
  48. package/dist/codecs-yZoH21Yj-lQXtGlEq.mjs.map +1 -0
  49. package/dist/{column-types-BmJdcNqR.mjs → column-types-DcbNOYVb.mjs} +3 -3
  50. package/dist/column-types-DcbNOYVb.mjs.map +1 -0
  51. package/dist/{column-types-D4Dmbaa6.d.mts → column-types-Dxm0BpPv.d.mts} +4 -4
  52. package/dist/column-types-Dxm0BpPv.d.mts.map +1 -0
  53. package/dist/{contract-contributions-wweWdXMK-C7LvZMgG.mjs → contract-contributions-wweWdXMK-CN-d35Rj.mjs} +3 -3
  54. package/dist/contract-contributions-wweWdXMK-CN-d35Rj.mjs.map +1 -0
  55. package/dist/{contract-free-CCLAXZV2.d.mts → contract-free-BJwIJN6x.d.mts} +3 -3
  56. package/dist/contract-free-BJwIJN6x.d.mts.map +1 -0
  57. package/dist/{contract-free-jczZy_HM.mjs → contract-free-DetowcoS.mjs} +5 -5
  58. package/dist/contract-free-DetowcoS.mjs.map +1 -0
  59. package/dist/{control-Q2TqoG2O.d.mts → control-BbJiKI2r.d.mts} +8 -8
  60. package/dist/control-BbJiKI2r.d.mts.map +1 -0
  61. package/dist/{control-DKT_rL3s.mjs → control-BxbKU2xs.mjs} +3 -3
  62. package/dist/control-BxbKU2xs.mjs.map +1 -0
  63. package/dist/{control-D9vMRRgU.d.mts → control-C2TjacST.d.mts} +3 -3
  64. package/dist/control-C2TjacST.d.mts.map +1 -0
  65. package/dist/{control-CqSlwRpm.d.mts → control-CmDsxEqb.d.mts} +5 -5
  66. package/dist/control-CmDsxEqb.d.mts.map +1 -0
  67. package/dist/{control-tables-Dua-YcJL.d.mts → control-tables-DKXLHvMU.d.mts} +2 -2
  68. package/dist/control-tables-DKXLHvMU.d.mts.map +1 -0
  69. package/dist/{control-tables-D_o8dKRB-BXi43noL.mjs → control-tables-D_o8dKRB-n_QqsXcm.mjs} +2 -2
  70. package/dist/control-tables-D_o8dKRB-n_QqsXcm.mjs.map +1 -0
  71. package/dist/{data-type-entries-yQ-qYugg-jlWnv7x2.mjs → data-type-entries-yQ-qYugg-C_NnX5WO.mjs} +3 -3
  72. package/dist/data-type-entries-yQ-qYugg-C_NnX5WO.mjs.map +1 -0
  73. package/dist/{data-types-C24Aynr8.d.mts → data-types-Dx3rHsbF.d.mts} +2 -2
  74. package/dist/data-types-Dx3rHsbF.d.mts.map +1 -0
  75. package/dist/{data-types-coQrCWfS-BRcy6yh-.mjs → data-types-coQrCWfS-yMCe4F52.mjs} +2 -2
  76. package/dist/data-types-coQrCWfS-yMCe4F52.mjs.map +1 -0
  77. package/dist/{datetime-text-Bniwehv--Ddt3VS4z.mjs → datetime-text-Bniwehv--BSQhnrdE.mjs} +2 -2
  78. package/dist/datetime-text-Bniwehv--BSQhnrdE.mjs.map +1 -0
  79. package/dist/ddl-31OBcTco.d.mts +1 -0
  80. package/dist/{ddl-CX4tAZ-y-BkaAELc2.mjs → ddl-CX4tAZ-y-Bng-4PWC.mjs} +4 -4
  81. package/dist/ddl-CX4tAZ-y-Bng-4PWC.mjs.map +1 -0
  82. package/dist/{default-normalizer-DNvRFfNg.d.mts → default-normalizer-CkHy3JYk.d.mts} +2 -2
  83. package/dist/default-normalizer-CkHy3JYk.d.mts.map +1 -0
  84. package/dist/{default-normalizer-DGMXypHg-Q0mNIQC6.mjs → default-normalizer-DGMXypHg-CPf7oyZA.mjs} +3 -3
  85. package/dist/default-normalizer-DGMXypHg-CPf7oyZA.mjs.map +1 -0
  86. package/dist/{descriptor-meta-DJWS67Tl-Dy3AJ6lT.mjs → descriptor-meta-DJWS67Tl-OkfyPhdx.mjs} +6 -6
  87. package/dist/descriptor-meta-DJWS67Tl-OkfyPhdx.mjs.map +1 -0
  88. package/dist/{descriptor-meta-DrNwC4vO-2IDztI63.mjs → descriptor-meta-DrNwC4vO-D7vuA6QK.mjs} +4 -4
  89. package/dist/descriptor-meta-DrNwC4vO-D7vuA6QK.mjs.map +1 -0
  90. package/dist/{descriptor-meta-cwy5CXTT-DSRaq_b-.mjs → descriptor-meta-cwy5CXTT-CLOhiryX.mjs} +2 -2
  91. package/dist/descriptor-meta-cwy5CXTT-CLOhiryX.mjs.map +1 -0
  92. package/dist/{descriptor-meta-runtime-DX2JfHWF-BhpYNzHG.mjs → descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs} +3 -3
  93. package/dist/descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs.map +1 -0
  94. package/dist/driver.d.mts +2 -2
  95. package/dist/driver.mjs +1 -1
  96. package/dist/driver__control.d.mts +1 -1
  97. package/dist/driver__control.mjs +1 -1
  98. package/dist/driver__runtime.d.mts +1 -1
  99. package/dist/driver__runtime.mjs +2 -2
  100. package/dist/driver__runtime.mjs.map +1 -1
  101. package/dist/{errors-DnR-sMHS-KkMLIP2U.mjs → errors-DnR-sMHS-D_gh214a.mjs} +2 -2
  102. package/dist/errors-DnR-sMHS-D_gh214a.mjs.map +1 -0
  103. package/dist/{migration-p83G5mtQ.d.mts → migration-WJlUQmsn.d.mts} +4 -4
  104. package/dist/migration-WJlUQmsn.d.mts.map +1 -0
  105. package/dist/{migration-CRgxnwXy.mjs → migration-nqIDkjRz.mjs} +4 -4
  106. package/dist/migration-nqIDkjRz.mjs.map +1 -0
  107. package/dist/{nodes-D8EC1yCx-rpfpuJ4T.d.mts → nodes-D8EC1yCx-BS-fKla6.d.mts} +2 -2
  108. package/dist/nodes-D8EC1yCx-BS-fKla6.d.mts.map +1 -0
  109. package/dist/{nodes-DUZSdX86-BBEEaxXY.mjs → nodes-DUZSdX86-DWyLY3OW.mjs} +2 -2
  110. package/dist/nodes-DUZSdX86-DWyLY3OW.mjs.map +1 -0
  111. package/dist/{op-factory-call-CnufFdpE.d.mts → op-factory-call-De6MX7Yp.d.mts} +4 -4
  112. package/dist/op-factory-call-De6MX7Yp.d.mts.map +1 -0
  113. package/dist/{op-factory-call-ISQk93c4-PEra1nhj.mjs → op-factory-call-emj9Xp05-BFLkxrAK.mjs} +7 -7
  114. package/dist/op-factory-call-emj9Xp05-BFLkxrAK.mjs.map +1 -0
  115. package/dist/{pack-D09sgwDC.d.mts → pack-R00UYGKo.d.mts} +3 -3
  116. package/dist/pack-R00UYGKo.d.mts.map +1 -0
  117. package/dist/{planner-B7LFq_1q-CO6foKgf.mjs → planner-BvwYScnt-9H9LIJFn.mjs} +5 -5
  118. package/dist/planner-BvwYScnt-9H9LIJFn.mjs.map +1 -0
  119. package/dist/{planner-JHs58vqA.d.mts → planner-CjMq9oEt.d.mts} +4 -4
  120. package/dist/planner-CjMq9oEt.d.mts.map +1 -0
  121. package/dist/{planner-produced-sqlite-migration-XLiHMenG-_9p4tPWa.mjs → planner-produced-sqlite-migration-D2jtaItv-ZFZhPfGE.mjs} +4 -4
  122. package/dist/planner-produced-sqlite-migration-D2jtaItv-ZFZhPfGE.mjs.map +1 -0
  123. package/dist/{planner-produced-sqlite-migration-DuM9c3YI-COeeqS8N.d.mts → planner-produced-sqlite-migration-DuM9c3YI-Dacb6zQZ.d.mts} +4 -4
  124. package/dist/planner-produced-sqlite-migration-DuM9c3YI-Dacb6zQZ.d.mts.map +1 -0
  125. package/dist/planner-produced-sqlite-migration-GDP1M36D.d.mts +1 -0
  126. package/dist/{planner-target-details-CIQ789Gc-C5U4yVY9.mjs → planner-target-details-CIQ789Gc-Cug2V5g5.mjs} +2 -2
  127. package/dist/planner-target-details-CIQ789Gc-Cug2V5g5.mjs.map +1 -0
  128. package/dist/{planner-target-details-xR6UfIcz-CMahymzq.d.mts → planner-target-details-xR6UfIcz-BrBPQGOS.d.mts} +2 -2
  129. package/dist/planner-target-details-xR6UfIcz-BrBPQGOS.d.mts.map +1 -0
  130. package/dist/{render-ops-Btxzdp9v-K5GJXCFD.mjs → render-ops-BPLkHR-y-CPoXG5Ap.mjs} +4 -4
  131. package/dist/render-ops-BPLkHR-y-CPoXG5Ap.mjs.map +1 -0
  132. package/dist/{render-ops-B10yqmdG.d.mts → render-ops-Ntl2jBJe.d.mts} +3 -3
  133. package/dist/render-ops-Ntl2jBJe.d.mts.map +1 -0
  134. package/dist/{runtime-B1coahKC.d.mts → runtime-BvMPuBrJ.d.mts} +3 -3
  135. package/dist/runtime-BvMPuBrJ.d.mts.map +1 -0
  136. package/dist/{runtime-8_WfNAcA.d.mts → runtime-CjIoI3sa.d.mts} +4 -4
  137. package/dist/runtime-CjIoI3sa.d.mts.map +1 -0
  138. package/dist/{runtime-BoSV7f77.d.mts → runtime-YfPIbtO6.d.mts} +4 -4
  139. package/dist/runtime-YfPIbtO6.d.mts.map +1 -0
  140. package/dist/sql-renderer-brQ96quu.d.mts +1 -0
  141. package/dist/{sql-utils-0SJZOd7Q.d.mts → sql-utils-BqHka8P6.d.mts} +2 -2
  142. package/dist/sql-utils-BqHka8P6.d.mts.map +1 -0
  143. package/dist/{sql-utils-XGT5Esi2-5k9pvJeF.mjs → sql-utils-XGT5Esi2-Zr2mqJf8.mjs} +3 -3
  144. package/dist/sql-utils-XGT5Esi2-Zr2mqJf8.mjs.map +1 -0
  145. package/dist/{sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts → sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts} +2 -2
  146. package/dist/sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts.map +1 -0
  147. package/dist/{sqlite-contract-view-C8D7iPrj-Cnw69l7b.mjs → sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs} +6 -6
  148. package/dist/sqlite-contract-view-CGfiGvKH-CT-JjNHd.mjs.map +1 -0
  149. package/dist/{sqlite-migration-DmCXBAGI-BNrVD8vm.mjs → sqlite-migration-BAdSmooi-iWFVQgGV.mjs} +11 -11
  150. package/dist/sqlite-migration-BAdSmooi-iWFVQgGV.mjs.map +1 -0
  151. package/dist/{sqlite-migration-CLIMaHLy-BQ6vv7gq.d.mts → sqlite-migration-CLIMaHLy-5ZjJDdDP.d.mts} +6 -6
  152. package/dist/sqlite-migration-CLIMaHLy-5ZjJDdDP.d.mts.map +1 -0
  153. package/dist/{tables-C6oejIsc-BgxW5wBn.d.mts → tables-C6oejIsc-CzK00Kwl.d.mts} +4 -4
  154. package/dist/tables-C6oejIsc-CzK00Kwl.d.mts.map +1 -0
  155. package/dist/target.d.mts +28 -28
  156. package/dist/target.mjs +23 -23
  157. package/dist/target__aggregates.d.mts +1 -1
  158. package/dist/target__aggregates.mjs +1 -1
  159. package/dist/target__codec-descriptor.d.mts +2 -2
  160. package/dist/target__codec-descriptor.mjs +1 -1
  161. package/dist/target__codec-ids.d.mts +2 -2
  162. package/dist/target__codec-ids.mjs +1 -1
  163. package/dist/target__codec-types.d.mts +3 -3
  164. package/dist/target__codecs.d.mts +2 -2
  165. package/dist/target__codecs.mjs +3 -3
  166. package/dist/target__contract-free.d.mts +1 -1
  167. package/dist/target__contract-free.mjs +2 -2
  168. package/dist/target__control-tables.d.mts +1 -1
  169. package/dist/target__control-tables.mjs +1 -1
  170. package/dist/target__control.d.mts +2 -2
  171. package/dist/target__control.mjs +10 -10
  172. package/dist/target__control.mjs.map +1 -1
  173. package/dist/target__data-types.d.mts +1 -1
  174. package/dist/target__data-types.mjs +2 -2
  175. package/dist/target__ddl.d.mts +2 -2
  176. package/dist/target__ddl.mjs +1 -1
  177. package/dist/target__default-normalizer.d.mts +1 -1
  178. package/dist/target__default-normalizer.mjs +1 -1
  179. package/dist/target__migration.d.mts +2 -2
  180. package/dist/target__migration.mjs +2 -2
  181. package/dist/target__op-factory-call.d.mts +1 -1
  182. package/dist/target__op-factory-call.mjs +1 -1
  183. package/dist/target__pack.d.mts +1 -1
  184. package/dist/target__pack.mjs +1 -1
  185. package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
  186. package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
  187. package/dist/target__planner-target-details.d.mts +1 -1
  188. package/dist/target__planner-target-details.mjs +1 -1
  189. package/dist/target__planner.d.mts +1 -1
  190. package/dist/target__planner.mjs +1 -1
  191. package/dist/target__render-ops.d.mts +1 -1
  192. package/dist/target__render-ops.mjs +1 -1
  193. package/dist/target__runtime.d.mts +2 -2
  194. package/dist/target__runtime.mjs +3 -3
  195. package/dist/target__runtime.mjs.map +1 -1
  196. package/dist/target__sql-utils.d.mts +1 -1
  197. package/dist/target__sql-utils.mjs +1 -1
  198. package/dist/{types-RJMd2PlL-EuhZF7B6.d.mts → types-RJMd2PlL-BTGAJrBQ.d.mts} +4 -4
  199. package/dist/types-RJMd2PlL-BTGAJrBQ.d.mts.map +1 -0
  200. package/dist/types-y5JlAv97.d.mts +2 -0
  201. package/package.json +9 -9
  202. package/dist/adapter-7m8HU4rt-C6hQAALX.mjs.map +0 -1
  203. package/dist/adapter-e4_SMdnY.d.mts.map +0 -1
  204. package/dist/adapter-xFPDhkod-BsfRQfp6.d.mts.map +0 -1
  205. package/dist/aggregates-CP9IZJhO.d.mts.map +0 -1
  206. package/dist/aggregates-exfiPSHR.mjs.map +0 -1
  207. package/dist/codec-descriptor-3oN7rtrW-Dk5P8NLm.d.mts +0 -1
  208. package/dist/codec-descriptor-DRmF-crq-BzlPCPyM.mjs.map +0 -1
  209. package/dist/codec-descriptor-DuW-d9ef-CLGWK2wF.d.mts.map +0 -1
  210. package/dist/codec-descriptor-WwE5fA08.d.mts +0 -2
  211. package/dist/codec-ids-DuJYssXV-BW3y5jTO.d.mts.map +0 -1
  212. package/dist/codec-ids-Dyi0HKJw.d.mts +0 -1
  213. package/dist/codec-ids-wgEvkCkg-8bxcCujY.mjs.map +0 -1
  214. package/dist/codec-types-CLxV6VvX.d.mts +0 -1
  215. package/dist/codec-types-COh75Bop-YF2hiOlF.d.mts.map +0 -1
  216. package/dist/codec-types-D0VxUBSx.d.mts +0 -2
  217. package/dist/codecs-BFV0ef0d.d.mts +0 -1
  218. package/dist/codecs-BJYruC-a-gv28KlTa.d.mts.map +0 -1
  219. package/dist/codecs-QLF1GwJG.mjs.map +0 -1
  220. package/dist/codecs-yZoH21Yj-DfCqJxdc.mjs.map +0 -1
  221. package/dist/column-types-BmJdcNqR.mjs.map +0 -1
  222. package/dist/column-types-D4Dmbaa6.d.mts.map +0 -1
  223. package/dist/contract-contributions-wweWdXMK-C7LvZMgG.mjs.map +0 -1
  224. package/dist/contract-free-CCLAXZV2.d.mts.map +0 -1
  225. package/dist/contract-free-jczZy_HM.mjs.map +0 -1
  226. package/dist/control-CqSlwRpm.d.mts.map +0 -1
  227. package/dist/control-D9vMRRgU.d.mts.map +0 -1
  228. package/dist/control-DKT_rL3s.mjs.map +0 -1
  229. package/dist/control-Q2TqoG2O.d.mts.map +0 -1
  230. package/dist/control-tables-D_o8dKRB-BXi43noL.mjs.map +0 -1
  231. package/dist/control-tables-Dua-YcJL.d.mts.map +0 -1
  232. package/dist/data-type-entries-yQ-qYugg-jlWnv7x2.mjs.map +0 -1
  233. package/dist/data-types-C24Aynr8.d.mts.map +0 -1
  234. package/dist/data-types-coQrCWfS-BRcy6yh-.mjs.map +0 -1
  235. package/dist/datetime-text-Bniwehv--Ddt3VS4z.mjs.map +0 -1
  236. package/dist/ddl-CX4tAZ-y-BkaAELc2.mjs.map +0 -1
  237. package/dist/ddl-CfSqNT0M.d.mts +0 -1
  238. package/dist/default-normalizer-DGMXypHg-Q0mNIQC6.mjs.map +0 -1
  239. package/dist/default-normalizer-DNvRFfNg.d.mts.map +0 -1
  240. package/dist/descriptor-meta-DJWS67Tl-Dy3AJ6lT.mjs.map +0 -1
  241. package/dist/descriptor-meta-DrNwC4vO-2IDztI63.mjs.map +0 -1
  242. package/dist/descriptor-meta-cwy5CXTT-DSRaq_b-.mjs.map +0 -1
  243. package/dist/descriptor-meta-runtime-DX2JfHWF-BhpYNzHG.mjs.map +0 -1
  244. package/dist/errors-DnR-sMHS-KkMLIP2U.mjs.map +0 -1
  245. package/dist/migration-CRgxnwXy.mjs.map +0 -1
  246. package/dist/migration-p83G5mtQ.d.mts.map +0 -1
  247. package/dist/nodes-D8EC1yCx-rpfpuJ4T.d.mts.map +0 -1
  248. package/dist/nodes-DUZSdX86-BBEEaxXY.mjs.map +0 -1
  249. package/dist/op-factory-call-CnufFdpE.d.mts.map +0 -1
  250. package/dist/op-factory-call-ISQk93c4-PEra1nhj.mjs.map +0 -1
  251. package/dist/pack-D09sgwDC.d.mts.map +0 -1
  252. package/dist/planner-B7LFq_1q-CO6foKgf.mjs.map +0 -1
  253. package/dist/planner-JHs58vqA.d.mts.map +0 -1
  254. package/dist/planner-produced-sqlite-migration-D0aHh8Z9.d.mts +0 -1
  255. package/dist/planner-produced-sqlite-migration-DuM9c3YI-COeeqS8N.d.mts.map +0 -1
  256. package/dist/planner-produced-sqlite-migration-XLiHMenG-_9p4tPWa.mjs.map +0 -1
  257. package/dist/planner-target-details-CIQ789Gc-C5U4yVY9.mjs.map +0 -1
  258. package/dist/planner-target-details-xR6UfIcz-CMahymzq.d.mts.map +0 -1
  259. package/dist/render-ops-B10yqmdG.d.mts.map +0 -1
  260. package/dist/render-ops-Btxzdp9v-K5GJXCFD.mjs.map +0 -1
  261. package/dist/runtime-8_WfNAcA.d.mts.map +0 -1
  262. package/dist/runtime-B1coahKC.d.mts.map +0 -1
  263. package/dist/runtime-BoSV7f77.d.mts.map +0 -1
  264. package/dist/sql-renderer-CAeE61w9.d.mts +0 -1
  265. package/dist/sql-utils-0SJZOd7Q.d.mts.map +0 -1
  266. package/dist/sql-utils-XGT5Esi2-5k9pvJeF.mjs.map +0 -1
  267. package/dist/sqlite-contract-view-BDw8T5Cp-CbLVOPJq.d.mts.map +0 -1
  268. package/dist/sqlite-contract-view-C8D7iPrj-Cnw69l7b.mjs.map +0 -1
  269. package/dist/sqlite-migration-CLIMaHLy-BQ6vv7gq.d.mts.map +0 -1
  270. package/dist/sqlite-migration-DmCXBAGI-BNrVD8vm.mjs.map +0 -1
  271. package/dist/tables-C6oejIsc-BgxW5wBn.d.mts.map +0 -1
  272. package/dist/types-B-VvUwz6.d.mts +0 -2
  273. package/dist/types-RJMd2PlL-EuhZF7B6.d.mts.map +0 -1
@@ -1,7 +1,7 @@
1
- import { c as sqliteDatetimeText, d as sqliteReal, f as sqliteText, l as sqliteInteger, n as sqliteBlobFromHexText, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from "./data-types-coQrCWfS-BRcy6yh-.mjs";
1
+ import { c as sqliteDatetimeText, d as sqliteReal, f as sqliteText, l as sqliteInteger, n as sqliteBlobFromHexText, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from "./data-types-coQrCWfS-yMCe4F52.mjs";
2
2
  import { createNumberClassifier, numeralText, parseJsonText, signedRange } from "@prisma/orm-framework/components/codec";
3
3
  import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
4
- //#region ../../../3-targets/3-targets/sqlite/dist/data-type-entries-yQ-qYugg.mjs
4
+ //#region ../../../3-targets/sqlite/1-target/dist/data-type-entries-yQ-qYugg.mjs
5
5
  const classifySqliteNumber = createNumberClassifier({
6
6
  integers: [{
7
7
  type: sqliteInteger.id,
@@ -73,4 +73,4 @@ function sqliteDataTypeEntries() {
73
73
  //#endregion
74
74
  export { sqliteDataTypeEntries as t };
75
75
 
76
- //# sourceMappingURL=data-type-entries-yQ-qYugg-jlWnv7x2.mjs.map
76
+ //# sourceMappingURL=data-type-entries-yQ-qYugg-C_NnX5WO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-type-entries-yQ-qYugg-C_NnX5WO.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/data-type-entries-yQ-qYugg.mjs"],"sourcesContent":["import { c as sqliteDatetimeText, d as sqliteReal, f as sqliteText, l as sqliteInteger, n as sqliteBlobFromHexText, s as sqliteDatetime, t as sqliteBlob, u as sqliteJson } from \"./data-types-coQrCWfS.mjs\";\nimport { createNumberClassifier, numeralText, parseJsonText, signedRange } from \"@internal/framework-components/codec\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\n//#region src/core/data-type-entries.ts\nconst classifySqliteNumber = createNumberClassifier({\n\tintegers: [{\n\t\ttype: sqliteInteger.id,\n\t\tform: \"text\",\n\t\t...signedRange(64)\n\t}],\n\tfraction: {\n\t\ttype: sqliteReal.id,\n\t\tform: \"number\"\n\t},\n\twords: {\n\t\ttype: sqliteReal.id,\n\t\tform: \"text\"\n\t}\n});\nfunction printNumber(value) {\n\treturn typeof value === \"number\" ? numeralText(value) : String(value);\n}\nfunction sqliteDataTypeEntries() {\n\treturn {\n\t\t[sqliteText.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"string\",\n\t\t\t\tparse: (text) => text\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"Text.\"\n\t\t},\n\t\t[sqliteReal.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"number\",\n\t\t\t\ttypes: [sqliteInteger.id, sqliteReal.id],\n\t\t\t\tclassify: classifySqliteNumber\n\t\t\t},\n\t\t\tprint: printNumber,\n\t\t\tdocumentation: \"A number, whose type comes from its own size and precision.\"\n\t\t},\n\t\t[sqliteJson.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"json\",\n\t\t\t\tparse: (text) => canonicalizeJson(parseJsonText(text))\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"Reads the text as a JSON document and stores its JSON text as the default value.\"\n\t\t},\n\t\t[sqliteBlob.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"blob\",\n\t\t\t\tparse: sqliteBlobFromHexText\n\t\t\t},\n\t\t\tprint: (value) => String(value).toLowerCase(),\n\t\t\tdocumentation: \"Bytes, written as hex text, two digits for each byte, as in blob`68656c6c6f`.\"\n\t\t},\n\t\t[sqliteDatetime.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"datetime\",\n\t\t\t\tparse: sqliteDatetimeText\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"An instant, as in datetime`2024-01-01T00:00:00Z`. Reads ISO 8601 with a UTC offset and stores the instant in UTC with three fraction digits, the text every row holds.\"\n\t\t}\n\t};\n}\n//#endregion\nexport { sqliteDataTypeEntries as t };\n\n//# sourceMappingURL=data-type-entries-yQ-qYugg.mjs.map"],"mappings":";;;;AAIA,MAAM,uBAAuB,uBAAuB;CACnD,UAAU,CAAC;EACV,MAAM,cAAc;EACpB,MAAM;EACN,GAAG,YAAY,EAAE;CAClB,CAAC;CACD,UAAU;EACT,MAAM,WAAW;EACjB,MAAM;CACP;CACA,OAAO;EACN,MAAM,WAAW;EACjB,MAAM;CACP;AACD,CAAC;AACD,SAAS,YAAY,OAAO;CAC3B,OAAO,OAAO,UAAU,WAAW,YAAY,KAAK,IAAI,OAAO,KAAK;AACrE;AACA,SAAS,wBAAwB;CAChC,OAAO;GACL,WAAW,KAAK;GAChB,SAAS;IACR,MAAM;IACN,QAAQ;IACR,QAAQ,SAAS;GAClB;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;GACC,WAAW,KAAK;GAChB,SAAS;IACR,MAAM;IACN,QAAQ;IACR,OAAO,CAAC,cAAc,IAAI,WAAW,EAAE;IACvC,UAAU;GACX;GACA,OAAO;GACP,eAAe;EAChB;GACC,WAAW,KAAK;GAChB,SAAS;IACR,MAAM;IACN,KAAK;IACL,QAAQ,SAAS,iBAAiB,cAAc,IAAI,CAAC;GACtD;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;GACC,WAAW,KAAK;GAChB,SAAS;IACR,MAAM;IACN,KAAK;IACL,OAAO;GACR;GACA,QAAQ,UAAU,OAAO,KAAK,CAAC,CAAC,YAAY;GAC5C,eAAe;EAChB;GACC,eAAe,KAAK;GACpB,SAAS;IACR,MAAM;IACN,KAAK;IACL,OAAO;GACR;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;CACD;AACD"}
@@ -1,6 +1,6 @@
1
1
  import { DataType, DataTypeId } from "@prisma/orm-framework/components/codec";
2
2
  import { DataTypeAuthoringEntry } from "@prisma/orm-framework/components/authoring";
3
- //#region ../../../3-targets/3-targets/sqlite/dist/data-types.d.mts
3
+ //#region ../../../3-targets/sqlite/1-target/dist/data-types.d.mts
4
4
  //#region src/core/data-type-entries.d.ts
5
5
  declare function sqliteDataTypeEntries(): Readonly<Record<string, DataTypeAuthoringEntry>>;
6
6
  //#endregion
@@ -37,4 +37,4 @@ declare const sqliteDataTypes: readonly DataType[];
37
37
  declare const sqliteTextDataTypes: readonly DataTypeId[];
38
38
  //#endregion
39
39
  export { sqliteCharacterVarying as a, sqliteDatetime as c, sqliteJson as d, sqliteReal as f, sqliteCharacterLengthParams as i, sqliteDatetimeText as l, sqliteTextDataTypes as m, sqliteBlobFromHexText as n, sqliteDataTypeEntries as o, sqliteText as p, sqliteCharacter as r, sqliteDataTypes as s, sqliteBlob as t, sqliteInteger as u };
40
- //# sourceMappingURL=data-types-C24Aynr8.d.mts.map
40
+ //# sourceMappingURL=data-types-Dx3rHsbF.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-Dx3rHsbF.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/data-types.d.mts"],"mappings":";;;;iBAGiB,yBAAyB,SAAS,eAAe;;;cAGpD,uDAAuD,YAAY,SAAS;;cAE5E,0DAA0D,YAAY,SAAS;;cAE/E,uDAAuD,YAAY,SAAS;cAC5E,uDAAuD,YAAY,SAAS;;iBAEzE,sBAAsB;;cAEzB,2EAA2E;EACvF;;cAEY,4DAA4D;EACxE;;cAEY,mEAAmE;EAC/E;;;;;cAKY,qBAAqB;;cAErB,2DAA2D,YAAY,SAAS;;cAEhF,uDAAuD,YAAY,SAAS;;cAE5E,0BAA0B;;cAE1B,8BAA8B"}
@@ -3,7 +3,7 @@ import { structuredError } from "@prisma/orm-framework/utils/structured-error";
3
3
  import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
4
4
  import { sqlDataType, sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
5
5
  import { type } from "arktype";
6
- //#region ../../../3-targets/3-targets/sqlite/dist/data-types-coQrCWfS.mjs
6
+ //#region ../../../3-targets/sqlite/1-target/dist/data-types-coQrCWfS.mjs
7
7
  /** Digit text as `real` stores it: the nearest double, as SQLite converts an integer to a real. */
8
8
  const asReal = (value) => typeof value === "string" ? Number(value) : refuseWrongShape(value, "digit text");
9
9
  /** A type written and reported by `name` and nothing else. */
@@ -137,4 +137,4 @@ const sqliteTextDataTypes = [
137
137
  //#endregion
138
138
  export { sqliteCharacterVarying as a, sqliteDatetimeText as c, sqliteReal as d, sqliteText as f, sqliteCharacterLengthParams as i, sqliteInteger as l, sqliteBlobFromHexText as n, sqliteDataTypes as o, sqliteTextDataTypes as p, sqliteCharacter as r, sqliteDatetime as s, sqliteBlob as t, sqliteJson as u };
139
139
 
140
- //# sourceMappingURL=data-types-coQrCWfS-BRcy6yh-.mjs.map
140
+ //# sourceMappingURL=data-types-coQrCWfS-yMCe4F52.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-coQrCWfS-yMCe4F52.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/data-types-coQrCWfS.mjs"],"sourcesContent":["import { INT64_RANGE, castUnchanged, isoDateStringText, readJsonFloat, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, refuseWrongShape } from \"@internal/framework-components/codec\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { sqlDataType, sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { type } from \"arktype\";\n//#region src/core/data-types.ts\n/** Digit text as `real` stores it: the nearest double, as SQLite converts an integer to a real. */\nconst asReal = (value) => typeof value === \"string\" ? Number(value) : refuseWrongShape(value, \"digit text\");\n/** A type written and reported by `name` and nothing else. */\nconst storedAs = (id, name, read, casts = {}) => sqlDataType(id, {\n\ttexts: [{\n\t\ttext: name,\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread,\n\tcasts\n});\nconst readText = (json) => readJsonString(\"sqlite/text\", json);\nconst UPPERCASE_HEX = /^(?:[0-9A-F]{2})*$/;\nconst sqliteText = storedAs(\"sqlite/text\", \"text\", readText);\n/** Digit text, which holds every 64-bit integer exactly; SQLite reads an INTEGER default back as a number. */\nconst sqliteInteger = sqlDataType(\"sqlite/integer\", {\n\ttexts: [{\n\t\ttext: \"integer\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => {\n\t\treadJsonIntegerText(\"sqlite/integer\", json, INT64_RANGE);\n\t\treturn json;\n\t},\n\tcasts: {}\n});\n/** SQLite cannot store NaN, but a codec refuses it, as ADR 254 places that limit, so the type reads it. */\nconst sqliteReal = storedAs(\"sqlite/real\", \"real\", (json) => {\n\treadJsonFloat(\"sqlite/real\", json);\n\treturn json;\n}, { [sqliteInteger.id]: asReal });\nconst sqliteBlob = storedAs(\"sqlite/blob\", \"blob\", (json) => readJsonMatching(\"sqlite/blob\", json, UPPERCASE_HEX, \"uppercase hexadecimal text\"), {});\nconst HEX_TEXT = /^(?:[0-9A-Fa-f]{2})*$/;\n/** The upper-case hex `sqlite/blob` stores for the hex text a `blob` tag holds, `68656c6c6f`. */\nfunction sqliteBlobFromHexText(text) {\n\tif (!HEX_TEXT.test(text)) throw structuredError(\"CONTRACT.CAST_REFUSED\", `\"${text}\" is not hex text: write two hexadecimal digits for each byte, as in blob\\`68656c6c6f\\`.`, {\n\t\twhy: \"The blob tag reads bytes as hex text, two digits for each byte.\",\n\t\tfix: \"Write the bytes in hex, as in blob`68656c6c6f`.\"\n\t});\n\treturn text.toUpperCase();\n}\n/** The length of `character` and `character varying`, which SQLite accepts and does not enforce, up to SQLite's largest string length, so a double holds every accepted length exactly. */\nconst sqliteCharacterLengthParams = type({ \"length?\": `number.integer >= 1 & number.integer <= 2147483647` });\n/** A character type is written without its length, so its normal form has none. */\nconst withoutLength = ({ length: _length, ...rest }) => rest;\nconst sqliteCharacter = sqlDataType(\"sqlite/character\", {\n\tparams: sqliteCharacterLengthParams,\n\ttexts: [{\n\t\ttext: \"character\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => readJsonString(\"sqlite/character\", json),\n\tnormalize: withoutLength,\n\tcasts: { [sqliteText.id]: castUnchanged }\n});\nconst sqliteCharacterVarying = sqlDataType(\"sqlite/character-varying\", {\n\tparams: sqliteCharacterLengthParams,\n\ttexts: [{\n\t\ttext: \"character varying\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => readJsonString(\"sqlite/character-varying\", json),\n\tnormalize: withoutLength,\n\tcasts: { [sqliteText.id]: castUnchanged }\n});\n/**\n* The value of `sqlite/datetime` (ADR 254): the text `toISOString()` writes for every row. The range and the millisecond precision are those of a JavaScript `Date`, the codec's value.\n*/\nconst sqliteDatetimeText = (text) => isoDateStringText(text, \"sqlite/datetime\");\n/** What `sqliteDatetimeText` writes for `text`, or `undefined` when it names no instant the type holds. */\nfunction storedDatetime(text) {\n\ttry {\n\t\treturn sqliteDatetimeText(text);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** Reads an instant in any spelling the `datetime` tag reads; `spellDatetime` gives it the one it stores. */\nconst readDatetime = (json) => typeof json === \"string\" && storedDatetime(json) !== void 0 ? json : refuseJsonValue(\"sqlite/datetime\", \"ISO 8601 date and time text with a UTC offset and at most three fraction digits, as in \\\"2024-01-01T00:00:00Z\\\"\", json);\n/** An instant is stored in UTC with three fraction digits. */\nconst spellDatetime = (json) => typeof json === \"string\" ? storedDatetime(json) ?? json : json;\n/** The document JSON text holds, or `undefined` when the text is not JSON. */\nfunction documentOf(text) {\n\ttry {\n\t\treturn { value: JSON.parse(text) };\n\t} catch {\n\t\treturn;\n\t}\n}\n/** Reads the JSON text of a document, in any spelling; `spellJson` gives it the one it stores. */\nconst readJson = (json) => typeof json === \"string\" && documentOf(json) !== void 0 ? json : refuseJsonValue(\"sqlite/json\", \"the JSON text of a document\", json);\n/** A document is stored as its JSON text with sorted keys and no added whitespace. */\nconst spellJson = (json) => {\n\tconst document = typeof json === \"string\" ? documentOf(json) : void 0;\n\treturn document === void 0 ? json : canonicalizeJson(document.value);\n};\n/** An instant, stored as text in the form `toISOString()` writes. */\nconst sqliteDatetime = sqlDataType(\"sqlite/datetime\", {\n\tstoredAs: sqliteText.id,\n\tread: readDatetime,\n\tspell: spellDatetime\n});\n/** A JSON document, stored as its JSON text with sorted keys and no added whitespace. A column declared `JSON` would have numeric affinity and store the document `\"42\"` as the integer 42. */\nconst sqliteJson = sqlDataType(\"sqlite/json\", {\n\tstoredAs: sqliteText.id,\n\tread: readJson,\n\tspell: spellJson\n});\n/** Every data type this target registers. */\nconst sqliteDataTypes = [\n\tsqliteText,\n\tsqliteInteger,\n\tsqliteReal,\n\tsqliteBlob,\n\tsqliteCharacter,\n\tsqliteCharacterVarying,\n\tsqliteDatetime,\n\tsqliteJson,\n\tsqlRawDataType\n];\n/** SQLite's text data types: `text`, `character(n)` and `character varying(n)`. */\nconst sqliteTextDataTypes = [\n\tsqliteText.id,\n\tsqliteCharacter.id,\n\tsqliteCharacterVarying.id\n];\n//#endregion\nexport { sqliteCharacterVarying as a, sqliteDatetimeText as c, sqliteReal as d, sqliteText as f, sqliteCharacterLengthParams as i, sqliteInteger as l, sqliteBlobFromHexText as n, sqliteDataTypes as o, sqliteTextDataTypes as p, sqliteCharacter as r, sqliteDatetime as s, sqliteBlob as t, sqliteJson as u };\n\n//# sourceMappingURL=data-types-coQrCWfS.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,UAAU,UAAU,OAAO,UAAU,WAAW,OAAO,KAAK,IAAI,iBAAiB,OAAO,YAAY;;AAE1G,MAAM,YAAY,IAAI,MAAM,MAAM,QAAQ,CAAC,MAAM,YAAY,IAAI;CAChE,OAAO,CAAC;EACP,MAAM;EACN,SAAS;EACT,SAAS;CACV,CAAC;CACD;CACA;AACD,CAAC;AACD,MAAM,YAAY,SAAS,eAAe,eAAe,IAAI;AAC7D,MAAM,gBAAgB;AACtB,MAAM,aAAa,SAAS,eAAe,QAAQ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O,mBAAmB,IAAI;CAC/B,QAAQ;EACP;CACD;AACD;;AAEA,MAAM,gBAAgB,SAAS,OAAO,SAAS,YAAY,eAAe,IAAI,MAAM,KAAK,IAAI,OAAO,gBAAgB,mBAAmB,mHAAmH,IAAI;;AAE9P,MAAM,iBAAiB,SAAS,OAAO,SAAS,WAAW,eAAe,IAAI,KAAK,OAAO;;AAE1F,SAAS,WAAW,MAAM;CACzB,IAAI;EACH,OAAO,EAAE,OAAO,KAAK,MAAM,IAAI,EAAE;CAClC,QAAQ;EACP;CACD;AACD;;AAEA,MAAM,YAAY,SAAS,OAAO,SAAS,YAAY,WAAW,IAAI,MAAM,KAAK,IAAI,OAAO,gBAAgB,eAAe,+BAA+B,IAAI;;AAE9J,MAAM,aAAa,SAAS;CAC3B,MAAM,WAAW,OAAO,SAAS,WAAW,WAAW,IAAI,IAAI,KAAK;CACpE,OAAO,aAAa,KAAK,IAAI,OAAO,iBAAiB,SAAS,KAAK;AACpE;;AAEA,MAAM,iBAAiB,YAAY,mBAAmB;CACrD,UAAU,WAAW;CACrB,MAAM;CACN,OAAO;AACR,CAAC;;AAED,MAAM,aAAa,YAAY,eAAe;CAC7C,UAAU,WAAW;CACrB,MAAM;CACN,OAAO;AACR,CAAC;;AAED,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;;AAEA,MAAM,sBAAsB;CAC3B,WAAW;CACX,gBAAgB;CAChB,uBAAuB;AACxB"}
@@ -1,4 +1,4 @@
1
- //#region ../../../3-targets/3-targets/sqlite/dist/datetime-text-Bniwehv-.mjs
1
+ //#region ../../../3-targets/sqlite/1-target/dist/datetime-text-Bniwehv-.mjs
2
2
  /** The `strftime` format for the text `encodeSqliteDatetime` writes. */
3
3
  const SQLITE_DATETIME_TEXT_FORMAT = "%Y-%m-%dT%H:%M:%fZ";
4
4
  /** The SQLite expression for the current instant, as the text `encodeSqliteDatetime` writes. */
@@ -6,4 +6,4 @@ const SQLITE_NOW_EXPRESSION = `strftime('${SQLITE_DATETIME_TEXT_FORMAT}','now')`
6
6
  //#endregion
7
7
  export { SQLITE_NOW_EXPRESSION as n, SQLITE_DATETIME_TEXT_FORMAT as t };
8
8
 
9
- //# sourceMappingURL=datetime-text-Bniwehv--Ddt3VS4z.mjs.map
9
+ //# sourceMappingURL=datetime-text-Bniwehv--BSQhnrdE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-text-Bniwehv--BSQhnrdE.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/datetime-text-Bniwehv-.mjs"],"sourcesContent":["//#region src/core/datetime-text.ts\n/** The `strftime` format for the text `encodeSqliteDatetime` writes. */\nconst SQLITE_DATETIME_TEXT_FORMAT = \"%Y-%m-%dT%H:%M:%fZ\";\n/** The SQLite expression for the current instant, as the text `encodeSqliteDatetime` writes. */\nconst SQLITE_NOW_EXPRESSION = `strftime('${SQLITE_DATETIME_TEXT_FORMAT}','now')`;\n//#endregion\nexport { SQLITE_NOW_EXPRESSION as n, SQLITE_DATETIME_TEXT_FORMAT as t };\n\n//# sourceMappingURL=datetime-text-Bniwehv-.mjs.map"],"mappings":";;AAEA,MAAM,8BAA8B;;AAEpC,MAAM,wBAAwB,aAAa,4BAA4B"}
@@ -0,0 +1 @@
1
+ import "./nodes-D8EC1yCx-BS-fKla6.mjs";
@@ -1,8 +1,8 @@
1
- import { c as SQLITE_TEXT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
2
- import { t as SqliteCreateTable } from "./nodes-DUZSdX86-BBEEaxXY.mjs";
1
+ import { c as SQLITE_TEXT_CODEC_ID } from "./codec-ids-wgEvkCkg-WltuexMR.mjs";
2
+ import { t as SqliteCreateTable } from "./nodes-DUZSdX86-DWyLY3OW.mjs";
3
3
  import { FunctionSource } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { cfExpr, cfTable, exprSelect } from "@prisma/orm-family-sql/relational-core/contract-free";
5
- //#region ../../../3-targets/3-targets/sqlite/dist/ddl-CX4tAZ-y.mjs
5
+ //#region ../../../3-targets/sqlite/1-target/dist/ddl-CX4tAZ-y.mjs
6
6
  /**
7
7
  * Typed builder for the migration planner's column-existence checks. Produces
8
8
  * `SELECT COUNT(*) {=|>} 0 AS "result" FROM pragma_table_info(?) WHERE "name" = ?`
@@ -100,4 +100,4 @@ function createTable(options) {
100
100
  //#endregion
101
101
  export { tableExistsAst as a, indexExistsAst as i, columnNameTakenAst as n, tableNameTakenAst as o, createTable as r, columnExistsAst as t };
102
102
 
103
- //# sourceMappingURL=ddl-CX4tAZ-y-BkaAELc2.mjs.map
103
+ //# sourceMappingURL=ddl-CX4tAZ-y-Bng-4PWC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ddl-CX4tAZ-y-Bng-4PWC.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/ddl-CX4tAZ-y.mjs"],"sourcesContent":["import { c as SQLITE_TEXT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { t as SqliteCreateTable } from \"./nodes-DUZSdX86.mjs\";\nimport { FunctionSource } from \"@internal/sql-relational-core/ast\";\nimport { cfExpr, cfTable, exprSelect } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/checks.ts\n/**\n* Typed builder for the migration planner's column-existence checks. Produces\n* `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM pragma_table_info(?) WHERE \"name\" = ?`\n* ASTs with the table and column names bound as text parameters — never\n* inlined into the SQL.\n*/\nfunction columnExistsAst(table, column) {\n\tconst source = FunctionSource.of(\"pragma_table_info\", [cfExpr.param(table, SQLITE_TEXT_CODEC_ID).ast]);\n\tconst where = cfExpr.identifierRef(\"name\").eqParam(column, SQLITE_TEXT_CODEC_ID);\n\treturn {\n\t\tcolumnAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tcolumnPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for the check that no column of the table has a name SQLite takes for `column`.\n* Produces `SELECT COUNT(*) = 0 AS \"result\" FROM pragma_table_info(?) WHERE \"name\" COLLATE NOCASE\n* = ?`: SQLite compares column names without regard to the case of ASCII letters, as `NOCASE`\n* does.\n*/\nfunction columnNameTakenAst(table, column) {\n\tconst source = FunctionSource.of(\"pragma_table_info\", [cfExpr.param(table, SQLITE_TEXT_CODEC_ID).ast]);\n\tconst where = cfExpr.fn({\n\t\tmethod: \"collateNocase\",\n\t\ttemplate: \"{{self}} COLLATE NOCASE\",\n\t\tself: cfExpr.identifierRef(\"name\"),\n\t\treturns: {\n\t\t\tcodecId: SQLITE_TEXT_CODEC_ID,\n\t\t\tnullable: false\n\t\t}\n\t}).eqParam(column, SQLITE_TEXT_CODEC_ID);\n\treturn { nameFree: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build() };\n}\n/**\n* Typed builder for table-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ? AND \"name\" = ?`\n* with the table name and the literal `'table'` bound as text parameters.\n*/\nfunction tableExistsAst(tableName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"table\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(tableName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\ttableAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\ttablePresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for the check that no table, index or view has a name SQLite takes for `name`.\n* Produces `SELECT COUNT(*) = 0 AS \"result\" FROM \"sqlite_master\" WHERE \"name\" COLLATE NOCASE = ?`:\n* tables, indexes and views share one set of names, which SQLite compares without regard to the\n* case of ASCII letters.\n*/\nfunction tableNameTakenAst(tableName) {\n\tconst where = cfExpr.fn({\n\t\tmethod: \"collateNocase\",\n\t\ttemplate: \"{{self}} COLLATE NOCASE\",\n\t\tself: cfExpr.identifierRef(\"name\"),\n\t\treturns: {\n\t\t\tcodecId: SQLITE_TEXT_CODEC_ID,\n\t\t\tnullable: false\n\t\t}\n\t}).eqParam(tableName, SQLITE_TEXT_CODEC_ID);\n\treturn { nameFree: () => exprSelect().from(cfTable(\"sqlite_master\")).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build() };\n}\n/**\n* Typed builder for index-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ? AND \"name\" = ?`\n* with the index name and the literal `'index'` bound as text parameters.\n*/\nfunction indexExistsAst(indexName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"index\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(indexName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\tindexAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tindexPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n//#endregion\n//#region src/contract-free/ddl.ts\n/**\n* Build a SQLite `CREATE TABLE` query node.\n*\n* Pass `constraints` for table-level composite primary keys, foreign keys, and\n* unique constraints — use the {@link PrimaryKeyConstraint}, {@link ForeignKeyConstraint},\n* and {@link UniqueConstraint} classes from `@internal/sql-relational-core/ast`.\n*\n* Precondition: identifiers (`table`, column names/types) are emitted to SQL\n* verbatim — they are not quoted or escaped, so callers must pass pre-trusted\n* values (e.g. fixed control-plane identifiers). String-literal default values,\n* by contrast, are single-quote-escaped (embedded `'` doubled) by the renderer.\n* Identifier quoting for untrusted identifiers is added when the migration\n* planner adopts this lowering path.\n*/\nfunction createTable(options) {\n\treturn new SqliteCreateTable(options);\n}\n//#endregion\nexport { tableExistsAst as a, indexExistsAst as i, columnExistsAst as n, tableNameTakenAst as o, columnNameTakenAst as r, createTable as t };\n\n//# sourceMappingURL=ddl-CX4tAZ-y.mjs.map"],"mappings":";;;;;;;;;;;AAWA,SAAS,gBAAgB,OAAO,QAAQ;CACvC,MAAM,SAAS,eAAe,GAAG,qBAAqB,CAAC,OAAO,MAAM,OAAO,oBAAoB,CAAC,CAAC,GAAG,CAAC;CACrG,MAAM,QAAQ,OAAO,cAAc,MAAM,CAAC,CAAC,QAAQ,QAAQ,oBAAoB;CAC/E,OAAO;EACN,oBAAoB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;EAChH,qBAAqB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;CAClH;AACD;;;;;;;AAOA,SAAS,mBAAmB,OAAO,QAAQ;CAC1C,MAAM,SAAS,eAAe,GAAG,qBAAqB,CAAC,OAAO,MAAM,OAAO,oBAAoB,CAAC,CAAC,GAAG,CAAC;CACrG,MAAM,QAAQ,OAAO,GAAG;EACvB,QAAQ;EACR,UAAU;EACV,MAAM,OAAO,cAAc,MAAM;EACjC,SAAS;GACR,SAAS;GACT,UAAU;EACX;CACD,CAAC,CAAC,CAAC,QAAQ,QAAQ,oBAAoB;CACvC,OAAO,EAAE,gBAAgB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE;AACxH;;;;;;AAMA,SAAS,eA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UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;EAC/G,oBAAoB,WAAW,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,QAAQ,UAAU,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;CACjH;AACD;;;;;;;;;;;;;;;AAiBA,SAAS,YAAY,SAAS;CAC7B,OAAO,IAAI,kBAAkB,OAAO;AACrC"}
@@ -1,6 +1,6 @@
1
1
  import { DefaultResolverColumn, ReportedLiteralDefault } from "@prisma/orm-family-sql/family/control";
2
2
  import { ColumnDefault } from "@prisma/orm-framework/contract/types";
3
- //#region ../../../3-targets/3-targets/sqlite/dist/default-normalizer.d.mts
3
+ //#region ../../../3-targets/sqlite/1-target/dist/default-normalizer.d.mts
4
4
  //#region src/core/default-normalizer.d.ts
5
5
  /** What a column's reported default is: a function, SQL NULL, or a literal the column's codec reads. */
6
6
  type SqliteReportedDefault = {
@@ -22,4 +22,4 @@ declare function readSqliteDefault(rawDefault: string, declaredType: string): Sq
22
22
  declare function sqliteResolveDefault(def: ColumnDefault, column: DefaultResolverColumn): ColumnDefault;
23
23
  //#endregion
24
24
  export { readSqliteDefault as n, sqliteResolveDefault as r, SqliteReportedDefault as t };
25
- //# sourceMappingURL=default-normalizer-DNvRFfNg.d.mts.map
25
+ //# sourceMappingURL=default-normalizer-CkHy3JYk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-normalizer-CkHy3JYk.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/default-normalizer.d.mts"],"mappings":";;;;;KAIK;WACM;WACA;;WAEA;;WAEA;WACA,SAAS;;;;;iBAKH,kBAAkB,oBAAoB,uBAAuB;;;;iBAI7D,qBAAqB,KAAK,eAAe,QAAQ,wBAAwB"}
@@ -1,5 +1,5 @@
1
- import { t as SQLITE_DATETIME_TEXT_FORMAT } from "./datetime-text-Bniwehv--Ddt3VS4z.mjs";
2
- //#region ../../../3-targets/3-targets/sqlite/dist/default-normalizer-DGMXypHg.mjs
1
+ import { t as SQLITE_DATETIME_TEXT_FORMAT } from "./datetime-text-Bniwehv--BSQhnrdE.mjs";
2
+ //#region ../../../3-targets/sqlite/1-target/dist/default-normalizer-DGMXypHg.mjs
3
3
  const NULL_PATTERN = /^NULL$/i;
4
4
  const INTEGER_PATTERN = /^[+-]?\d+$/;
5
5
  const REAL_PATTERN = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/;
@@ -109,4 +109,4 @@ function sqliteResolveDefault(def, column) {
109
109
  //#endregion
110
110
  export { sqliteResolveDefault as n, stripOuterParens as r, readSqliteDefault as t };
111
111
 
112
- //# sourceMappingURL=default-normalizer-DGMXypHg-Q0mNIQC6.mjs.map
112
+ //# sourceMappingURL=default-normalizer-DGMXypHg-CPf7oyZA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-normalizer-DGMXypHg-CPf7oyZA.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/default-normalizer-DGMXypHg.mjs"],"sourcesContent":["import { t as SQLITE_DATETIME_TEXT_FORMAT } from \"./datetime-text-Bniwehv-.mjs\";\n//#region src/core/default-normalizer.ts\nconst NULL_PATTERN = /^NULL$/i;\nconst INTEGER_PATTERN = /^[+-]?\\d+$/;\nconst REAL_PATTERN = /^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$/;\nconst STRING_LITERAL_PATTERN = /^'((?:[^']|'')*)'$/;\nconst STRFTIME_NOW_PATTERN = /^strftime\\s*\\(\\s*(['\"])([^'\"]*)\\1\\s*,\\s*(['\"])now\\3\\s*\\)$/i;\nfunction isCurrentTimestamp(expression) {\n\tconst lower = expression.toLowerCase();\n\tif (lower === \"current_timestamp\" || lower === \"datetime('now')\" || lower === \"datetime(\\\"now\\\")\") return true;\n\treturn expression.match(STRFTIME_NOW_PATTERN)?.[2] === SQLITE_DATETIME_TEXT_FORMAT;\n}\n/**\n* Strips a single matched wrapping pair of outer parens from `s`. Conservative:\n* only strips when the leading `(` is matched by the trailing `)` (so\n* `(a) + (b)` is returned unchanged). Mirrors SQLite's own\n* `pragma_table_info.dflt_value` normalization for expression defaults, and\n* is shared with the recreate-table postcheck builder so both sides agree\n* on the text.\n*/\nfunction stripOuterParens(s) {\n\tif (!s.startsWith(\"(\") || !s.endsWith(\")\")) return s;\n\tlet depth = 0;\n\tfor (let i = 0; i < s.length; i++) if (s[i] === \"(\") depth += 1;\n\telse if (s[i] === \")\") {\n\t\tdepth -= 1;\n\t\tif (depth === 0 && i < s.length - 1) return s;\n\t}\n\treturn s.slice(1, -1);\n}\n/** The type affinity SQLite gives a column of `declaredType`, by its rules in order. */\nfunction affinityOf(declaredType) {\n\tconst upper = declaredType.toUpperCase();\n\tif (upper.includes(\"INT\")) return \"integer\";\n\tif (upper.includes(\"CHAR\") || upper.includes(\"CLOB\") || upper.includes(\"TEXT\")) return \"text\";\n\tif (upper.includes(\"BLOB\") || upper.trim() === \"\") return \"blob\";\n\tif (upper.includes(\"REAL\") || upper.includes(\"FLOA\") || upper.includes(\"DOUB\")) return \"real\";\n\treturn \"numeric\";\n}\n/** A numeral as the driver returns it: a number, or digit text for an integer no double holds exactly. */\nfunction numberBody(numeral) {\n\tif (INTEGER_PATTERN.test(numeral)) {\n\t\tconst integer = BigInt(numeral);\n\t\treturn Number.isSafeInteger(Number(integer)) ? Number(integer) : integer.toString();\n\t}\n\treturn Number(numeral);\n}\n/** What the column stores for a literal written as `text` (quoted) or as a numeral, by its affinity. */\nfunction bodyFor(literal, quoted, affinity) {\n\tconst numeral = INTEGER_PATTERN.test(literal) || REAL_PATTERN.test(literal);\n\tif (affinity === \"text\") return literal;\n\tif (affinity === \"blob\") return quoted || !numeral ? literal : numberBody(literal);\n\treturn numeral ? numberBody(literal) : literal;\n}\n/** A blob literal: `X'` or `x'`, an even number of hexadecimal digits, `'`. */\nconst BLOB_LITERAL_PATTERN = /^[xX]'((?:[0-9a-fA-F]{2})*)'$/;\n/**\n* Reads a column's reported default. `CURRENT_TIMESTAMP`, `datetime('now')` and the expression a `now()` default is written as are `now()`. A quoted string, a numeral or a blob literal (`X'6869'`, read as its bytes) is a literal; any other expression is a function default, kept as reported.\n*/\nfunction readSqliteDefault(rawDefault, declaredType) {\n\tlet trimmed = rawDefault.trim();\n\twhile (true) {\n\t\tconst stripped = stripOuterParens(trimmed).trim();\n\t\tif (stripped === trimmed) break;\n\t\ttrimmed = stripped;\n\t}\n\tif (isCurrentTimestamp(trimmed)) return {\n\t\tkind: \"function\",\n\t\texpression: \"now()\"\n\t};\n\tif (NULL_PATTERN.test(trimmed)) return { kind: \"null\" };\n\tconst affinity = affinityOf(declaredType);\n\tconst quoted = STRING_LITERAL_PATTERN.exec(trimmed)?.[1];\n\tif (quoted !== void 0) return {\n\t\tkind: \"literal\",\n\t\tliteral: {\n\t\t\tkind: \"value\",\n\t\t\tbody: bodyFor(quoted.replace(/''/g, \"'\"), true, affinity)\n\t\t}\n\t};\n\tconst blobHex = BLOB_LITERAL_PATTERN.exec(trimmed)?.[1];\n\tif (blobHex !== void 0) return {\n\t\tkind: \"literal\",\n\t\tliteral: {\n\t\t\tkind: \"value\",\n\t\t\tbody: new Uint8Array(Buffer.from(blobHex, \"hex\"))\n\t\t}\n\t};\n\tif (INTEGER_PATTERN.test(trimmed) || REAL_PATTERN.test(trimmed)) return {\n\t\tkind: \"literal\",\n\t\tliteral: {\n\t\t\tkind: \"value\",\n\t\t\tbody: bodyFor(trimmed, false, affinity)\n\t\t}\n\t};\n\treturn {\n\t\tkind: \"function\",\n\t\texpression: trimmed\n\t};\n}\n/**\n* Names a contract's expression default the way {@link readSqliteDefault} names the same function in the database, so `` sql`CURRENT_TIMESTAMP` `` and the database's `datetime('now')` compare equal. A literal default, and an expression that writes a literal, pass through unchanged; introspection reads the latter's literal with the column's codec, and the diff compares the values.\n*/\nfunction sqliteResolveDefault(def, column) {\n\tif (def.kind !== \"function\") return def;\n\tconst read = readSqliteDefault(def.expression, column.typeText);\n\treturn read.kind === \"function\" ? read : def;\n}\n//#endregion\nexport { sqliteResolveDefault as n, stripOuterParens as r, readSqliteDefault as t };\n\n//# sourceMappingURL=default-normalizer-DGMXypHg.mjs.map"],"mappings":";;AAEA,MAAM,eAAe;AACrB,MAAM,kBAAkB;AACxB,MAAM,eAAe;AACrB,MAAM,yBAAyB;AAC/B,MAAM,uBAAuB;AAC7B,SAAS,mBAAmB,YAAY;CACvC,MAAM,QAAQ,WAAW,YAAY;CACrC,IAAI,UAAU,uBAAuB,UAAU,qBAAqB,UAAU,qBAAqB,OAAO;CAC1G,OAAO,WAAW,MAAM,oBAAoB,CAAC,GAAG,OAAO;AACxD;;;;;;;;;AASA,SAAS,iBAAiB,GAAG;CAC5B,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,EAAE,SAAS,GAAG,GAAG,OAAO;CACnD,IAAI,QAAQ;CACZ,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK,IAAI,EAAE,OAAO,KAAK,SAAS;MACzD,IAAI,EAAE,OAAO,KAAK;EACtB,SAAS;EACT,IAAI,UAAU,KAAK,IAAI,EAAE,SAAS,GAAG,OAAO;CAC7C;CACA,OAAO,EAAE,MAAM,GAAG,EAAE;AACrB;;AAEA,SAAS,WAAW,cAAc;CACjC,MAAM,QAAQ,aAAa,YAAY;CACvC,IAAI,MAAM,SAAS,KAAK,GAAG,OAAO;CAClC,IAAI,MAAM,SAAS,MAAM,KAAK,MAAM,SAAS,MAAM,KAAK,MAAM,SAAS,MAAM,GAAG,OAAO;CACvF,IAAI,MAAM,SAAS,MAAM,KAAK,MAAM,KAAK,MAAM,IAAI,OAAO;CAC1D,IAAI,MAAM,SAAS,MAAM,KAAK,MAAM,SAAS,MAAM,KAAK,MAAM,SAAS,MAAM,GAAG,OAAO;CACvF,OAAO;AACR;;AAEA,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OAAO,GAAG,OAAO;EACvE,MAAM;EACN,SAAS;GACR,MAAM;GACN,MAAM,QAAQ,SAAS,OAAO,QAAQ;EACvC;CACD;CACA,OAAO;EACN,MAAM;EACN,YAAY;CACb;AACD;;;;AAIA,SAAS,qBAAqB,KAAK,QAAQ;CAC1C,IAAI,IAAI,SAAS,YAAY,OAAO;CACpC,MAAM,OAAO,kBAAkB,IAAI,YAAY,OAAO,QAAQ;CAC9D,OAAO,KAAK,SAAS,aAAa,OAAO;AAC1C"}
@@ -1,12 +1,12 @@
1
- import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-wgEvkCkg-8bxcCujY.mjs";
2
- import { l as sqliteInteger, p as sqliteTextDataTypes } from "./data-types-coQrCWfS-BRcy6yh-.mjs";
3
- import { t as sqliteDataTypeEntries } from "./data-type-entries-yQ-qYugg-jlWnv7x2.mjs";
4
- import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-DX2JfHWF-BhpYNzHG.mjs";
1
+ import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-wgEvkCkg-WltuexMR.mjs";
2
+ import { l as sqliteInteger, p as sqliteTextDataTypes } from "./data-types-coQrCWfS-yMCe4F52.mjs";
3
+ import { t as sqliteDataTypeEntries } from "./data-type-entries-yQ-qYugg-C_NnX5WO.mjs";
4
+ import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs";
5
5
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
6
6
  import { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from "@prisma/orm-family-sql/family/pack";
7
7
  import { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset, temporalTypeAliases } from "@prisma/orm-framework/components/authoring";
8
8
  import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
9
- //#region ../../../3-targets/3-targets/sqlite/dist/descriptor-meta-DJWS67Tl.mjs
9
+ //#region ../../../3-targets/sqlite/1-target/dist/descriptor-meta-DJWS67Tl.mjs
10
10
  const sqliteAuthoringTypes = {
11
11
  .../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: "sqlite/real" }),
12
12
  BigIntNumber: {
@@ -106,4 +106,4 @@ const sqliteTargetDescriptorMeta = {
106
106
  //#endregion
107
107
  export { sqliteTargetDescriptorMeta as n, sqliteScalarTypeConstructors as t };
108
108
 
109
- //# sourceMappingURL=descriptor-meta-DJWS67Tl-Dy3AJ6lT.mjs.map
109
+ //# sourceMappingURL=descriptor-meta-DJWS67Tl-OkfyPhdx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-DJWS67Tl-OkfyPhdx.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/descriptor-meta-DJWS67Tl.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { l as sqliteInteger, p as sqliteTextDataTypes } from \"./data-types-coQrCWfS.mjs\";\nimport { t as sqliteDataTypeEntries } from \"./data-type-entries-yQ-qYugg.mjs\";\nimport { t as sqliteTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-DX2JfHWF.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset, temporalTypeAliases } from \"@internal/framework-components/authoring\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\n//#region src/core/authoring.ts\nconst sqliteAuthoringTypes = {\n\t.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: \"sqlite/real\" }),\n\tBigIntNumber: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A SQLite integer represented as a JavaScript number within its safe integer range.\",\n\t\toutput: { codecId: \"sqlite/bigintnumber@1\" }\n\t},\n\ttemporal: /* @__PURE__ */ temporalTypeAliases({ codecId: \"sqlite/datetime@1\" }, \"a JavaScript Date\")\n};\nconst sqliteAuthoringFieldPresets = { temporal: {\n\t.../* @__PURE__ */ temporalAuthoringPresets({ codecId: \"sqlite/datetime@1\" }),\n\tdatetime: /* @__PURE__ */ temporalCodecPreset({ codecId: \"sqlite/datetime@1\" })\n} };\n//#endregion\n//#region src/core/generator-functions.ts\nconst sqliteGeneratorFunctions = [\n\t...sqlIntegerArgumentGeneratorFunctions({ integer: sqliteInteger.id }),\n\t{\n\t\tname: \"now\",\n\t\tbindings: [singleGeneratorBinding({\n\t\t\tcodecIds: [SQLITE_DATETIME_CODEC_ID],\n\t\t\tgeneratorId: TIMESTAMP_NOW_GENERATOR_ID\n\t\t})]\n\t},\n\t...idGeneratorFunctionBindings({ text: [SQLITE_TEXT_CODEC_ID] })\n];\n/** The `now` generator SQLite binds. The SQL family registers the identifier generators. */\nconst sqliteGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }];\n//#endregion\n//#region src/core/type-constructors.ts\n/**\n* The base PSL scalars as zero-arg type constructors in the unified authoring\n* channel. Each names a codec; the column's database type is its data type's.\n*\n* The type position is the only storage decider: a mutation-default generator\n* (`@onCreate(uuid())`) never re-picks a column's storage.\n*\n* The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst sqliteScalarTypeConstructors = {\n\tString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Variable-length text stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_TEXT_CODEC_ID }\n\t},\n\tInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An integer stored as SQLite integer and represented as a JavaScript number.\",\n\t\toutput: { codecId: SQLITE_INTEGER_CODEC_ID }\n\t},\n\tBigInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An integer stored as SQLite integer and represented as a JavaScript bigint.\",\n\t\toutput: { codecId: SQLITE_BIGINT_CODEC_ID }\n\t},\n\tFloat: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A floating-point number stored as SQLite real.\",\n\t\toutput: { codecId: SQLITE_REAL_CODEC_ID }\n\t},\n\tDecimal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A decimal value stored and represented as text to preserve precision.\",\n\t\toutput: { codecId: SQLITE_TEXT_CODEC_ID }\n\t},\n\tDateTime: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A date and time stored as SQLite text.\",\n\t\toutput: { codecId: SQLITE_DATETIME_CODEC_ID }\n\t},\n\tJson: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A JSON value serialized to SQLite text.\",\n\t\toutput: { codecId: SQLITE_JSON_CODEC_ID }\n\t},\n\tBytes: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Binary data stored as a SQLite blob.\",\n\t\toutput: { codecId: SQLITE_BLOB_CODEC_ID }\n\t}\n};\nconst sqliteTargetDescriptorMeta = {\n\t...sqliteTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID,\n\tsupportsNamespaces: false,\n\tauthoring: {\n\t\ttype: {\n\t\t\t...sqliteScalarTypeConstructors,\n\t\t\t...sqliteAuthoringTypes\n\t\t},\n\t\tfield: sqliteAuthoringFieldPresets,\n\t\tdataTypes: sqliteDataTypeEntries(),\n\t\ttextDataTypes: sqliteTextDataTypes\n\t},\n\tgeneratorFunctions: sqliteGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: sqliteGeneratorDescriptors\n\t}\n};\n//#endregion\nexport { sqliteScalarTypeConstructors as n, sqliteTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DJWS67Tl.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,uBAAuB;CAC5B,GAAmB,0CAA0B,EAAE,UAAU,cAAc,CAAC;CACxE,cAAc;EACb,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,wBAAwB;CAC5C;CACA,UAA0B,oCAAoB,EAAE,SAAS,oBAAoB,GAAG,mBAAmB;AACpG;AACA,MAAM,8BAA8B,EAAE,UAAU;CAC/C,GAAmB,yCAAyB,EAAE,SAAS,oBAAoB,CAAC;CAC5E,UAA0B,oCAAoB,EAAE,SAAS,oBAAoB,CAAC;AAC/E,EAAE;AAGF,MAAM,2BAA2B;CAChC,GAAG,qCAAqC,EAAE,SAAS,cAAc,GAAG,CAAC;CACrE;EACC,MAAM;EACN,UAAU,CAAC,uBAAuB;GACjC,UAAU,CAAC,wBAAwB;GACnC,aAAa;EACd,CAAC,CAAC;CACH;CACA,GAAG,4BAA4B,EAAE,MAAM,CAAC,oBAAoB,EAAE,CAAC;AAChE;;AAEA,MAAM,6BAA6B,CAAC,EAAE,IAAI,2BAA2B,CAAC;;;;;;;;;;AAYtE,MAAM,+BAA+B;CACpC,QAAQ;EACP,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,KAAK;EACJ,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,wBAAwB;CAC5C;CACA,QAAQ;EACP,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,uBAAuB;CAC3C;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,SAAS;EACR,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,UAAU;EACT,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,yBAAyB;CAC7C;CACA,MAAM;EACL,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,qBAAqB;CACzC;AACD;AACA,MAAM,6BAA6B;CAClC,GAAG;CACH,oBAAoB;CACpB,oBAAoB;CACpB,WAAW;EACV,MAAM;GACL,GAAG;GACH,GAAG;EACJ;EACA,OAAO;EACP,WAAW,sBAAsB;EACjC,eAAe;CAChB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;AACD"}
@@ -1,6 +1,6 @@
1
- import { a as sqliteCodecRegistry } from "./codecs-QLF1GwJG.mjs";
2
- import { n as sqliteAdapterContractContributions } from "./contract-contributions-wweWdXMK-C7LvZMgG.mjs";
3
- //#region ../../../3-targets/6-adapters/sqlite/dist/descriptor-meta-DrNwC4vO.mjs
1
+ import { a as sqliteCodecRegistry } from "./codecs-g-YI3BtK.mjs";
2
+ import { n as sqliteAdapterContractContributions } from "./contract-contributions-wweWdXMK-CN-d35Rj.mjs";
3
+ //#region ../../../3-targets/sqlite/2-adapter/dist/descriptor-meta-DrNwC4vO.mjs
4
4
  const sqliteAdapterDescriptorMeta = {
5
5
  kind: "adapter",
6
6
  familyId: "sql",
@@ -23,4 +23,4 @@ const sqliteAdapterDescriptorMeta = {
23
23
  //#endregion
24
24
  export { sqliteAdapterDescriptorMeta as t };
25
25
 
26
- //# sourceMappingURL=descriptor-meta-DrNwC4vO-2IDztI63.mjs.map
26
+ //# sourceMappingURL=descriptor-meta-DrNwC4vO-D7vuA6QK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-DrNwC4vO-D7vuA6QK.mjs","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/descriptor-meta-DrNwC4vO.mjs"],"sourcesContent":["import { t as sqliteAdapterContractContributions } from \"./contract-contributions-wweWdXMK.mjs\";\nimport { sqliteCodecRegistry } from \"@internal/target-sqlite/codecs\";\n//#region src/core/descriptor-meta.ts\nconst sqliteAdapterDescriptorMeta = {\n\tkind: \"adapter\",\n\tfamilyId: \"sql\",\n\ttargetId: \"sqlite\",\n\tid: \"sqlite\",\n\tversion: \"0.0.1\",\n\tcapabilities: sqliteAdapterContractContributions.capabilities,\n\ttypes: {\n\t\taggregateDescriptors: sqliteAdapterContractContributions.types.aggregateDescriptors,\n\t\tcodecTypes: {\n\t\t\tcodecDescriptors: Array.from(sqliteCodecRegistry.values()),\n\t\t\timport: {\n\t\t\t\tpackage: \"@internal/adapter-sqlite/codec-types\",\n\t\t\t\tnamed: \"CodecTypes\",\n\t\t\t\talias: \"SqliteTypes\"\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\nexport { sqliteAdapterDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DrNwC4vO.mjs.map"],"mappings":";;;AAGA,MAAM,8BAA8B;CACnC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,mCAAmC;CACjD,OAAO;EACN,sBAAsB,mCAAmC,MAAM;EAC/D,YAAY;GACX,kBAAkB,MAAM,KAAK,oBAAoB,OAAO,CAAC;GACzD,QAAQ;IACP,SAAS;IACT,OAAO;IACP,OAAO;GACR;EACD;CACD;AACD"}
@@ -1,7 +1,7 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { blindCast } from "@prisma/orm-framework/utils/casts";
3
3
  import { SqlConnectionError, SqlQueryError } from "@prisma/orm-family-sql/errors";
4
- //#region ../../../3-targets/7-drivers/sqlite/dist/descriptor-meta-cwy5CXTT.mjs
4
+ //#region ../../../3-targets/sqlite/3-driver/dist/descriptor-meta-cwy5CXTT.mjs
5
5
  const SQLITE_CONSTRAINT_BASE = 19;
6
6
  const SQLITE_CONSTRAINT_UNIQUE = 2067;
7
7
  const SQLITE_CONSTRAINT_PRIMARYKEY = 1555;
@@ -81,4 +81,4 @@ const sqliteDriverDescriptorMeta = {
81
81
  //#endregion
82
82
  export { sqliteDriverDescriptorMeta as n, sqliteParams as r, normalizeSqliteError as t };
83
83
 
84
- //# sourceMappingURL=descriptor-meta-cwy5CXTT-DSRaq_b-.mjs.map
84
+ //# sourceMappingURL=descriptor-meta-cwy5CXTT-CLOhiryX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-cwy5CXTT-CLOhiryX.mjs","names":[],"sources":["../../../../3-targets/sqlite/3-driver/dist/descriptor-meta-cwy5CXTT.mjs"],"sourcesContent":["import { SqlConnectionError, SqlQueryError } from \"@internal/sql-errors\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/normalize-error.ts\nconst SQLITE_CONSTRAINT_BASE = 19;\nconst SQLITE_CONSTRAINT_UNIQUE = 2067;\nconst SQLITE_CONSTRAINT_PRIMARYKEY = 1555;\nconst SQLITE_CONSTRAINT_FOREIGNKEY = 787;\nconst SQLITE_CONSTRAINT_NOTNULL = 1299;\nconst SQLITE_CONSTRAINT_CHECK = 275;\nconst SQLITE_BUSY = 5;\nconst SQLITE_LOCKED = 6;\nfunction isConstraintError(errcode) {\n\treturn (errcode & 255) === SQLITE_CONSTRAINT_BASE;\n}\nfunction isBusyOrLocked(errcode) {\n\tconst base = errcode & 255;\n\treturn base === SQLITE_BUSY || base === SQLITE_LOCKED;\n}\nfunction isSqliteError(error) {\n\tif (!(error instanceof Error)) return false;\n\treturn error.code === \"ERR_SQLITE_ERROR\";\n}\nfunction constraintNameFromMessage(message) {\n\treturn /constraint failed: (.+)/.exec(message)?.[1];\n}\nfunction mapErrCodeToSqlState(errcode) {\n\tswitch (errcode) {\n\t\tcase SQLITE_CONSTRAINT_UNIQUE:\n\t\tcase SQLITE_CONSTRAINT_PRIMARYKEY: return \"23505\";\n\t\tcase SQLITE_CONSTRAINT_FOREIGNKEY: return \"23503\";\n\t\tcase SQLITE_CONSTRAINT_NOTNULL: return \"23502\";\n\t\tcase SQLITE_CONSTRAINT_CHECK: return \"23514\";\n\t\tdefault:\n\t\t\tif (isConstraintError(errcode)) return \"23000\";\n\t\t\treturn \"HY000\";\n\t}\n}\nfunction normalizeSqliteError(error) {\n\tif (!(error instanceof Error)) return new Error(String(error));\n\tif (isSqliteError(error)) {\n\t\tconst errcode = error.errcode ?? 0;\n\t\tif (isBusyOrLocked(errcode)) return new SqlConnectionError(error.message, {\n\t\t\tcause: error,\n\t\t\ttransient: true\n\t\t});\n\t\tconst sqlState = mapErrCodeToSqlState(errcode);\n\t\tconst constraint = constraintNameFromMessage(error.message);\n\t\treturn new SqlQueryError(error.message, {\n\t\t\tcause: error,\n\t\t\tsqlState,\n\t\t\t...constraint !== void 0 ? { constraint } : {}\n\t\t});\n\t}\n\tif (error.message.includes(\"database is locked\") || error.message.includes(\"unable to open database\")) return new SqlConnectionError(error.message, {\n\t\tcause: error,\n\t\ttransient: false\n\t});\n\treturn error;\n}\n//#endregion\n//#region src/sqlite-params.ts\n/**\n* The parameters to bind to a SQLite statement. SQLite cannot store NaN and binds it as NULL. The float codecs refuse NaN when they encode, naming the codec; this refuses a NaN no codec encoded, such as a raw SQL parameter, with the same code and `meta.received`, and `meta.paramIndex` in place of `meta.codecId`.\n*/\nfunction sqliteParams(params) {\n\tconst values = params ?? [];\n\tconst nanIndex = values.findIndex((value) => Number.isNaN(value));\n\tif (nanIndex !== -1) throw structuredError(\"RUNTIME.ENCODE_FAILED\", `Parameter ${nanIndex + 1} is NaN, which SQLite cannot store: it would bind it as NULL. Pass null to store no value.`, { meta: {\n\t\tparamIndex: nanIndex,\n\t\treceived: \"NaN\"\n\t} });\n\treturn blindCast(values);\n}\n//#endregion\n//#region src/core/descriptor-meta.ts\nconst sqliteDriverDescriptorMeta = {\n\tkind: \"driver\",\n\tfamilyId: \"sql\",\n\ttargetId: \"sqlite\",\n\tid: \"sqlite\",\n\tversion: \"0.0.1\",\n\tcapabilities: {}\n};\n//#endregion\nexport { sqliteParams as n, normalizeSqliteError as r, sqliteDriverDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-cwy5CXTT.mjs.map"],"mappings":";;;;AAIA,MAAM,yBAAyB;AAC/B,MAAM,2BAA2B;AACjC,MAAM,+BAA+B;AACrC,MAAM,+BAA+B;AACrC,MAAM,4BAA4B;AAClC,MAAM,0BAA0B;AAChC,MAAM,cAAc;AACpB,MAAM,gBAAgB;AACtB,SAAS,kBAAkB,SAAS;CACnC,QAAQ,UAAU,SAAS;AAC5B;AACA,SAAS,eAAe,SAAS;CAChC,MAAM,OAAO,UAAU;CACvB,OAAO,SAAS,eAAe,SAAS;AACzC;AACA,SAAS,cAAc,OAAO;CAC7B,IAAI,EAAE,iBAAiB,QAAQ,OAAO;CACtC,OAAO,MAAM,SAAS;AACvB;AACA,SAAS,0BAA0B,SAAS;CAC3C,OAAO,0BAA0B,KAAK,OAAO,CAAC,GAAG;AAClD;AACA,SAAS,qBAAqB,SAAS;CACtC,QAAQ,SAAR;EACC,KAAK;EACL,KAAK,8BAA8B,OAAO;EAC1C,KAAK,8BAA8B,OAAO;EAC1C,KAAK,2BAA2B,OAAO;EACvC,KAAK,yBAAyB,OAAO;EACrC;GACC,IAAI,kBAAkB,OAAO,GAAG,OAAO;GACvC,OAAO;CACT;AACD;AACA,SAAS,qBAAqB,OAAO;CACpC,IAAI,EAAE,iBAAiB,QAAQ,OAAO,IAAI,MAAM,OAAO,KAAK,CAAC;CAC7D,IAAI,cAAc,KAAK,GAAG;EACzB,MAAM,UAAU,MAAM,WAAW;EACjC,IAAI,eAAe,OAAO,GAAG,OAAO,IAAI,mBAAmB,MAAM,SAAS;GACzE,OAAO;GACP,WAAW;EACZ,CAAC;EACD,MAAM,WAAW,qBAAqB,OAAO;EAC7C,MAAM,aAAa,0BAA0B,MAAM,OAAO;EAC1D,OAAO,IAAI,cAAc,MAAM,SAAS;GACvC,OAAO;GACP;GACA,GAAG,eAAe,KAAK,IAAI,EAAE,WAAW,IAAI,CAAC;EAC9C,CAAC;CACF;CACA,IAAI,MAAM,QAAQ,SAAS,oBAAoB,KAAK,MAAM,QAAQ,SAAS,yBAAyB,GAAG,OAAO,IAAI,mBAAmB,MAAM,SAAS;EACnJ,OAAO;EACP,WAAW;CACZ,CAAC;CACD,OAAO;AACR;;;;AAMA,SAAS,aAAa,QAAQ;CAC7B,MAAM,SAAS,UAAU,CAAC;CAC1B,MAAM,WAAW,OAAO,WAAW,UAAU,OAAO,MAAM,KAAK,CAAC;CAChE,IAAI,aAAa,IAAI,MAAM,gBAAgB,yBAAyB,aAAa,WAAW,EAAE,6FAA6F,EAAE,MAAM;EAClM,YAAY;EACZ,UAAU;CACX,EAAE,CAAC;CACH,OAAO,UAAU,MAAM;AACxB;AAGA,MAAM,6BAA6B;CAClC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;AAChB"}
@@ -1,5 +1,5 @@
1
- import { o as sqliteDataTypes } from "./data-types-coQrCWfS-BRcy6yh-.mjs";
2
- //#region ../../../3-targets/3-targets/sqlite/dist/descriptor-meta-runtime-DX2JfHWF.mjs
1
+ import { o as sqliteDataTypes } from "./data-types-coQrCWfS-yMCe4F52.mjs";
2
+ //#region ../../../3-targets/sqlite/1-target/dist/descriptor-meta-runtime-DX2JfHWF.mjs
3
3
  const sqliteTargetDescriptorMetaRuntime = {
4
4
  kind: "target",
5
5
  familyId: "sql",
@@ -12,4 +12,4 @@ const sqliteTargetDescriptorMetaRuntime = {
12
12
  //#endregion
13
13
  export { sqliteTargetDescriptorMetaRuntime as t };
14
14
 
15
- //# sourceMappingURL=descriptor-meta-runtime-DX2JfHWF-BhpYNzHG.mjs.map
15
+ //# sourceMappingURL=descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-runtime-DX2JfHWF-Dbsh5NP8.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/descriptor-meta-runtime-DX2JfHWF.mjs"],"sourcesContent":["import { o as sqliteDataTypes } from \"./data-types-coQrCWfS.mjs\";\nconst sqliteTargetDescriptorMetaRuntime = {\n\tkind: \"target\",\n\tfamilyId: \"sql\",\n\ttargetId: \"sqlite\",\n\tid: \"sqlite\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\tdataTypes: sqliteDataTypes\n};\n//#endregion\nexport { sqliteTargetDescriptorMetaRuntime as t };\n\n//# sourceMappingURL=descriptor-meta-runtime-DX2JfHWF.mjs.map"],"mappings":";;AACA,MAAM,oCAAoC;CACzC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;CACf,WAAW;AACZ"}
package/dist/driver.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { t as SqliteControlDriver } from "./control-D9vMRRgU.mjs";
2
- import { n as SqliteRuntimeDriver, t as SqliteBinding } from "./runtime-B1coahKC.mjs";
1
+ import { t as SqliteControlDriver } from "./control-C2TjacST.mjs";
2
+ import { n as SqliteRuntimeDriver, t as SqliteBinding } from "./runtime-BvMPuBrJ.mjs";
3
3
  export { type SqliteBinding, SqliteControlDriver, type SqliteRuntimeDriver };
package/dist/driver.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as SqliteControlDriver } from "./control-DKT_rL3s.mjs";
1
+ import { t as SqliteControlDriver } from "./control-BxbKU2xs.mjs";
2
2
  export { SqliteControlDriver };
@@ -1,2 +1,2 @@
1
- import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-D9vMRRgU.mjs";
1
+ import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-C2TjacST.mjs";
2
2
  export { SqliteControlDriver, sqliteDriverDescriptor as default };
@@ -1,2 +1,2 @@
1
- import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-DKT_rL3s.mjs";
1
+ import { n as sqliteDriverDescriptor, t as SqliteControlDriver } from "./control-BxbKU2xs.mjs";
2
2
  export { SqliteControlDriver, sqliteDriverDescriptor as default };
@@ -1,2 +1,2 @@
1
- import { n as SqliteRuntimeDriver, r as sqliteRuntimeDriverDescriptor, t as SqliteBinding } from "./runtime-B1coahKC.mjs";
1
+ import { n as SqliteRuntimeDriver, r as sqliteRuntimeDriverDescriptor, t as SqliteBinding } from "./runtime-BvMPuBrJ.mjs";
2
2
  export { type SqliteBinding, type SqliteRuntimeDriver, sqliteRuntimeDriverDescriptor as default };
@@ -1,7 +1,7 @@
1
- import { n as sqliteDriverDescriptorMeta, r as sqliteParams, t as normalizeSqliteError } from "./descriptor-meta-cwy5CXTT-DSRaq_b-.mjs";
1
+ import { n as sqliteDriverDescriptorMeta, r as sqliteParams, t as normalizeSqliteError } from "./descriptor-meta-cwy5CXTT-CLOhiryX.mjs";
2
2
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
3
3
  import { DatabaseSync } from "node:sqlite";
4
- //#region ../../../3-targets/7-drivers/sqlite/dist/runtime.mjs
4
+ //#region ../../../3-targets/sqlite/3-driver/dist/runtime.mjs
5
5
  function driverError(code, message, details) {
6
6
  const error = new Error(message);
7
7
  Object.defineProperty(error, "name", {
@@ -1 +1 @@
1
- {"version":3,"file":"driver__runtime.mjs","names":["#state","#requireConnected"],"sources":["../../../../3-targets/7-drivers/sqlite/dist/runtime.mjs"],"sourcesContent":["import { n as sqliteParams, r as normalizeSqliteError, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-cwy5CXTT.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/sqlite-driver.ts\nfunction driverError(code, message, details) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"name\", {\n\t\tvalue: \"RuntimeError\",\n\t\tconfigurable: true\n\t});\n\treturn Object.assign(error, {\n\t\tcode,\n\t\tcategory: \"DRIVER\",\n\t\tseverity: \"error\",\n\t\tmessage,\n\t\tdetails\n\t});\n}\nconst NOT_CONNECTED_MESSAGE = \"SQLite driver not connected. Call connect(binding) before acquireConnection or execute.\";\nconst ALREADY_CONNECTED_MESSAGE = \"SQLite driver already connected. Call close() before reconnecting with a new binding.\";\nfunction openConnection(path) {\n\ttry {\n\t\tconst db = new DatabaseSync(path);\n\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\tdb.exec(\"PRAGMA busy_timeout = 5000\");\n\t\treturn db;\n\t} catch (error) {\n\t\tthrow normalizeSqliteError(error);\n\t}\n}\nvar SqliteQueryable = class {\n\tdb;\n\tconstructor(db) {\n\t\tthis.db = db;\n\t}\n\tasync *query(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tfor (const row of stmt.iterate(...sqliteParams(request.params))) yield row;\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync execute(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tif (stmt.columns().length !== 0) throw new InternalError(\"SQLite cannot execute statements that return rows.\");\n\t\t\treturn { affectedRows: Number(stmt.run(...sqliteParams(request.params)).changes) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync explain(request) {\n\t\ttry {\n\t\t\treturn { rows: this.db.prepare(`EXPLAIN QUERY PLAN ${request.sql}`).all(...sqliteParams(request.params)) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteConnectionImpl = class extends SqliteQueryable {\n\tasync beginTransaction() {\n\t\ttry {\n\t\t\tthis.db.exec(\"BEGIN\");\n\t\t\treturn new SqliteTransactionImpl(this.db);\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync release() {\n\t\treturn this.destroy();\n\t}\n\tasync destroy(_reason) {\n\t\ttry {\n\t\t\tthis.db.close();\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteTransactionImpl = class extends SqliteQueryable {\n\tasync commit() {\n\t\ttry {\n\t\t\tthis.db.exec(\"COMMIT\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync rollback() {\n\t\ttry {\n\t\t\tthis.db.exec(\"ROLLBACK\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nfunction unboundQuery() {\n\treturn { [Symbol.asyncIterator]() {\n\t\treturn { async next() {\n\t\t\tthrow driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\t} };\n\t} };\n}\nvar SqliteDriver = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\t#state;\n\tconstructor(initialState) {\n\t\tthis.#state = initialState ?? { kind: \"unbound\" };\n\t}\n\t#requireConnected() {\n\t\tif (this.#state.kind !== \"connected\") throw driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\treturn this.#state;\n\t}\n\tget state() {\n\t\treturn this.#state.kind;\n\t}\n\tasync connect(binding) {\n\t\tif (this.#state.kind === \"connected\") throw driverError(\"DRIVER.ALREADY_CONNECTED\", ALREADY_CONNECTED_MESSAGE, { bindingKind: binding.kind });\n\t\tthis.#state = {\n\t\t\tkind: \"connected\",\n\t\t\tpath: binding.path,\n\t\t\tconn: new SqliteConnectionImpl(openConnection(binding.path))\n\t\t};\n\t}\n\tasync acquireConnection() {\n\t\tconst { path } = this.#requireConnected();\n\t\treturn new SqliteConnectionImpl(openConnection(path));\n\t}\n\tasync close() {\n\t\tif (this.#state.kind !== \"connected\") return;\n\t\tconst { conn } = this.#state;\n\t\tthis.#state = { kind: \"closed\" };\n\t\tawait conn.release();\n\t}\n\tquery(request) {\n\t\tif (this.#state.kind !== \"connected\") return unboundQuery();\n\t\treturn this.#state.conn.query(request);\n\t}\n\tasync execute(request) {\n\t\treturn this.#requireConnected().conn.execute(request);\n\t}\n\tasync explain(request) {\n\t\treturn this.#requireConnected().conn.explain(request);\n\t}\n};\n//#endregion\n//#region src/core/runtime-driver.ts\nconst sqliteRuntimeDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tcreate() {\n\t\treturn new SqliteDriver();\n\t}\n};\n//#endregion\nexport { sqliteRuntimeDriverDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;AAIA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,MAAM,QAAQ,IAAI,MAAM,OAAO;CAC/B,OAAO,eAAe,OAAO,QAAQ;EACpC,OAAO;EACP,cAAc;CACf,CAAC;CACD,OAAO,OAAO,OAAO,OAAO;EAC3B;EACA,UAAU;EACV,UAAU;EACV;EACA;CACD,CAAC;AACF;AACA,MAAM,wBAAwB;AAC9B,MAAM,4BAA4B;AAClC,SAAS,eAAe,MAAM;CAC7B,IAAI;EACH,MAAM,KAAK,IAAI,aAAa,IAAI;EAChC,GAAG,KAAK,0BAA0B;EAClC,GAAG,KAAK,4BAA4B;EACpC,OAAO;CACR,SAAS,OAAO;EACf,MAAM,qBAAqB,KAAK;CACjC;AACD;AACA,IAAI,kBAAkB,MAAM;CAC3B;CACA,YAAY,IAAI;EACf,KAAK,KAAK;CACX;CACA,OAAO,MAAM,SAAS;EACrB,IAAI;GACH,MAAM,OAAO,KAAK,GAAG,QAAQ,QAAQ,GAAG;GACxC,KAAK,MAAM,OAAO,KAAK,QAAQ,GAAG,aAAa,QAAQ,MAAM,CAAC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SAAS;EACR,OAAO,IAAI,aAAa;CACzB;AACD"}
1
+ {"version":3,"file":"driver__runtime.mjs","names":["#state","#requireConnected"],"sources":["../../../../3-targets/sqlite/3-driver/dist/runtime.mjs"],"sourcesContent":["import { n as sqliteParams, r as normalizeSqliteError, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-cwy5CXTT.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/sqlite-driver.ts\nfunction driverError(code, message, details) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"name\", {\n\t\tvalue: \"RuntimeError\",\n\t\tconfigurable: true\n\t});\n\treturn Object.assign(error, {\n\t\tcode,\n\t\tcategory: \"DRIVER\",\n\t\tseverity: \"error\",\n\t\tmessage,\n\t\tdetails\n\t});\n}\nconst NOT_CONNECTED_MESSAGE = \"SQLite driver not connected. Call connect(binding) before acquireConnection or execute.\";\nconst ALREADY_CONNECTED_MESSAGE = \"SQLite driver already connected. Call close() before reconnecting with a new binding.\";\nfunction openConnection(path) {\n\ttry {\n\t\tconst db = new DatabaseSync(path);\n\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\tdb.exec(\"PRAGMA busy_timeout = 5000\");\n\t\treturn db;\n\t} catch (error) {\n\t\tthrow normalizeSqliteError(error);\n\t}\n}\nvar SqliteQueryable = class {\n\tdb;\n\tconstructor(db) {\n\t\tthis.db = db;\n\t}\n\tasync *query(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tfor (const row of stmt.iterate(...sqliteParams(request.params))) yield row;\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync execute(request) {\n\t\ttry {\n\t\t\tconst stmt = this.db.prepare(request.sql);\n\t\t\tif (stmt.columns().length !== 0) throw new InternalError(\"SQLite cannot execute statements that return rows.\");\n\t\t\treturn { affectedRows: Number(stmt.run(...sqliteParams(request.params)).changes) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync explain(request) {\n\t\ttry {\n\t\t\treturn { rows: this.db.prepare(`EXPLAIN QUERY PLAN ${request.sql}`).all(...sqliteParams(request.params)) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteConnectionImpl = class extends SqliteQueryable {\n\tasync beginTransaction() {\n\t\ttry {\n\t\t\tthis.db.exec(\"BEGIN\");\n\t\t\treturn new SqliteTransactionImpl(this.db);\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync release() {\n\t\treturn this.destroy();\n\t}\n\tasync destroy(_reason) {\n\t\ttry {\n\t\t\tthis.db.close();\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nvar SqliteTransactionImpl = class extends SqliteQueryable {\n\tasync commit() {\n\t\ttry {\n\t\t\tthis.db.exec(\"COMMIT\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n\tasync rollback() {\n\t\ttry {\n\t\t\tthis.db.exec(\"ROLLBACK\");\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error);\n\t\t}\n\t}\n};\nfunction unboundQuery() {\n\treturn { [Symbol.asyncIterator]() {\n\t\treturn { async next() {\n\t\t\tthrow driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\t} };\n\t} };\n}\nvar SqliteDriver = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\t#state;\n\tconstructor(initialState) {\n\t\tthis.#state = initialState ?? { kind: \"unbound\" };\n\t}\n\t#requireConnected() {\n\t\tif (this.#state.kind !== \"connected\") throw driverError(\"DRIVER.NOT_CONNECTED\", NOT_CONNECTED_MESSAGE);\n\t\treturn this.#state;\n\t}\n\tget state() {\n\t\treturn this.#state.kind;\n\t}\n\tasync connect(binding) {\n\t\tif (this.#state.kind === \"connected\") throw driverError(\"DRIVER.ALREADY_CONNECTED\", ALREADY_CONNECTED_MESSAGE, { bindingKind: binding.kind });\n\t\tthis.#state = {\n\t\t\tkind: \"connected\",\n\t\t\tpath: binding.path,\n\t\t\tconn: new SqliteConnectionImpl(openConnection(binding.path))\n\t\t};\n\t}\n\tasync acquireConnection() {\n\t\tconst { path } = this.#requireConnected();\n\t\treturn new SqliteConnectionImpl(openConnection(path));\n\t}\n\tasync close() {\n\t\tif (this.#state.kind !== \"connected\") return;\n\t\tconst { conn } = this.#state;\n\t\tthis.#state = { kind: \"closed\" };\n\t\tawait conn.release();\n\t}\n\tquery(request) {\n\t\tif (this.#state.kind !== \"connected\") return unboundQuery();\n\t\treturn this.#state.conn.query(request);\n\t}\n\tasync execute(request) {\n\t\treturn this.#requireConnected().conn.execute(request);\n\t}\n\tasync explain(request) {\n\t\treturn this.#requireConnected().conn.explain(request);\n\t}\n};\n//#endregion\n//#region src/core/runtime/runtime-driver.ts\nconst sqliteRuntimeDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tcreate() {\n\t\treturn new SqliteDriver();\n\t}\n};\n//#endregion\nexport { sqliteRuntimeDriverDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;AAIA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,MAAM,QAAQ,IAAI,MAAM,OAAO;CAC/B,OAAO,eAAe,OAAO,QAAQ;EACpC,OAAO;EACP,cAAc;CACf,CAAC;CACD,OAAO,OAAO,OAAO,OAAO;EAC3B;EACA,UAAU;EACV,UAAU;EACV;EACA;CACD,CAAC;AACF;AACA,MAAM,wBAAwB;AAC9B,MAAM,4BAA4B;AAClC,SAAS,eAAe,MAAM;CAC7B,IAAI;EACH,MAAM,KAAK,IAAI,aAAa,IAAI;EAChC,GAAG,KAAK,0BAA0B;EAClC,GAAG,KAAK,4BAA4B;EACpC,OAAO;CACR,SAAS,OAAO;EACf,MAAM,qBA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KAAK,MAAM,OAAO;CACtC;CACA,MAAM,QAAQ,SAAS;EACtB,OAAO,KAAKC,kBAAkB,CAAC,CAAC,KAAK,QAAQ,OAAO;CACrD;CACA,MAAM,QAAQ,SAAS;EACtB,OAAO,KAAKA,kBAAkB,CAAC,CAAC,KAAK,QAAQ,OAAO;CACrD;AACD;AAGA,MAAM,gCAAgC;CACrC,GAAG;CACH,SAAS;EACR,OAAO,IAAI,aAAa;CACzB;AACD"}
@@ -1,6 +1,6 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { CliStructuredError } from "@prisma/orm-framework/errors/control";
3
- //#region ../../../3-targets/3-targets/sqlite/dist/errors-DnR-sMHS.mjs
3
+ //#region ../../../3-targets/sqlite/1-target/dist/errors-DnR-sMHS.mjs
4
4
  function sqliteError(code, message, options) {
5
5
  return structuredError(code, message, options);
6
6
  }
@@ -35,4 +35,4 @@ function errorSqliteMigrationStackMissing(operation) {
35
35
  //#endregion
36
36
  export { sqliteError as n, errorSqliteMigrationStackMissing as t };
37
37
 
38
- //# sourceMappingURL=errors-DnR-sMHS-KkMLIP2U.mjs.map
38
+ //# sourceMappingURL=errors-DnR-sMHS-D_gh214a.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-DnR-sMHS-D_gh214a.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/errors-DnR-sMHS.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { CliStructuredError } from \"@internal/errors/control\";\n//#region src/core/errors.ts\nfunction sqliteError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n/**\n* A `SqliteMigration` operation that needs the materialized control adapter\n* — named by `operation` (e.g. `createTable`, `dropColumn`, `recreateTable`) —\n* was invoked, but the migration was constructed without a `ControlStack`.\n* Concrete authoring usage always goes through the migration CLI entrypoint,\n* which assembles a stack from the loaded `prisma.config.ts`; reaching this\n* error means a test fixture or ad-hoc consumer instantiated `SqliteMigration`\n* with the no-arg form (legal for `operations` / `describe` introspection only).\n*\n* The `operation` argument is required so every throw site names the operation\n* that actually failed; a new operation cannot inherit a misattributed message.\n*\n* Distinct from `MIGRATION.UNFILLED_PLACEHOLDER` (placeholder not filled)\n* because the missing input is the stack itself, not the per-operation\n* contract.\n*\n* Lives in `@internal/target-sqlite/errors` rather than the shared\n* framework migration errors module because the failure is target-specific:\n* the contract it talks about (`SqliteMigration`, the SQLite control\n* adapter, the SQLite-target stack) only exists in this package.\n*/\nfunction errorSqliteMigrationStackMissing(operation) {\n\treturn new CliStructuredError(\"MIGRATION.SQLITE_CONTROL_STACK_MISSING\", `SqliteMigration.${operation} requires a control adapter`, {\n\t\twhy: `SqliteMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its DDL node.`,\n\t\tfix: \"Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma.config.ts), or pass a ControlStack containing a SQLite adapter to the migration constructor in test fixtures.\",\n\t\tmeta: { operation }\n\t});\n}\n//#endregion\nexport { sqliteError as n, errorSqliteMigrationStackMissing as t };\n\n//# sourceMappingURL=errors-DnR-sMHS.mjs.map"],"mappings":";;;AAGA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,iCAAiC,WAAW;CACpD,OAAO,IAAI,mBAAmB,0CAA0C,mBAAmB,UAAU,8BAA8B;EAClI,KAAK,mBAAmB,UAAU;EAClC,KAAK;EACL,MAAM,EAAE,UAAU;CACnB,CAAC;AACF"}
@@ -1,10 +1,10 @@
1
- import { t as Op } from "./tables-C6oejIsc-BgxW5wBn.mjs";
2
- import "./sqlite-migration-CLIMaHLy-BQ6vv7gq.mjs";
1
+ import { t as Op } from "./tables-C6oejIsc-CzK00Kwl.mjs";
2
+ import "./sqlite-migration-CLIMaHLy-5ZjJDdDP.mjs";
3
3
  import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
4
4
  import { placeholder } from "@prisma/orm-framework/errors/migration";
5
5
  import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
6
6
  import { sql } from "@prisma/orm-family-sql/contract/sql-expression";
7
- //#region ../../../3-targets/3-targets/sqlite/dist/migration.d.mts
7
+ //#region ../../../3-targets/sqlite/1-target/dist/migration.d.mts
8
8
  //#region src/core/migrations/operations/data-transform.d.ts
9
9
  interface DataTransformOptions {
10
10
  /** Stable id used in the ledger / for runner idempotency tracking. */
@@ -41,4 +41,4 @@ declare function dataTransform(opts: DataTransformOptions): Op;
41
41
  declare function rawSql(op: Op): Op;
42
42
  //#endregion
43
43
  export { fn$1 as a, placeholder as c, sql as d, unique as f, dataTransform as i, primaryKey as l, MigrationCLI as n, foreignKey as o, col$1 as r, lit$1 as s, DataTransformOptions as t, rawSql as u };
44
- //# sourceMappingURL=migration-p83G5mtQ.d.mts.map
44
+ //# sourceMappingURL=migration-WJlUQmsn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-WJlUQmsn.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/migration.d.mts"],"mappings":";;;;;;;;UAOU;;WAEC;;WAEA;;WAEA;;;;;WAKA;;;;;;;;;WASA;;iBAEM,cAAc,MAAM,uBAAuB;;;;;;;;;;iBAU3C,OAAO,IAAI,KAAK"}
@@ -1,10 +1,10 @@
1
- import { t as buildTargetDetails } from "./planner-target-details-CIQ789Gc-C5U4yVY9.mjs";
2
- import { C as step } from "./op-factory-call-ISQk93c4-PEra1nhj.mjs";
1
+ import { t as buildTargetDetails } from "./planner-target-details-CIQ789Gc-Cug2V5g5.mjs";
2
+ import { C as step } from "./op-factory-call-emj9Xp05-BFLkxrAK.mjs";
3
3
  import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
4
4
  import { placeholder } from "@prisma/orm-framework/errors/migration";
5
5
  import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
6
6
  import { sql } from "@prisma/orm-family-sql/contract/sql-expression";
7
- //#region ../../../3-targets/3-targets/sqlite/dist/migration.mjs
7
+ //#region ../../../3-targets/sqlite/1-target/dist/migration.mjs
8
8
  /**
9
9
  * User-facing `dataTransform` factory for the SQLite migration authoring
10
10
  * surface. Invoked directly inside a `migration.ts` file to supply a
@@ -45,4 +45,4 @@ function rawSql(op) {
45
45
  //#endregion
46
46
  export { foreignKey as a, primaryKey as c, unique as d, fn$1 as i, rawSql as l, col$1 as n, lit$1 as o, dataTransform as r, placeholder as s, MigrationCLI as t, sql as u };
47
47
 
48
- //# sourceMappingURL=migration-CRgxnwXy.mjs.map
48
+ //# sourceMappingURL=migration-nqIDkjRz.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-nqIDkjRz.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/migration.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-BAdSmooi.mjs\";\nimport { S as step } from \"./op-factory-call-emj9Xp05.mjs\";\nimport { t as buildTargetDetails } from \"./planner-target-details-CIQ789Gc.mjs\";\nimport { placeholder } from \"@internal/errors/migration\";\nimport { col, fn, foreignKey, lit, primaryKey, unique } from \"@internal/sql-relational-core/contract-free\";\nimport { MigrationCLI } from \"@internal/cli/migration-cli\";\nimport { sql } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/migrations/operations/data-transform.ts\n/**\n* User-facing `dataTransform` factory for the SQLite migration authoring\n* surface. Invoked directly inside a `migration.ts` file to supply a\n* user-authored SQL statement that runs with operation class `'data'`.\n*\n* Typical use: the planner emits a `DataTransformCall` stub when a NOT NULL\n* tightening requires a backfill. The rendered `migration.ts` exposes the\n* backfill as a `placeholder(\"…\")` slot the user fills in with an\n* `UPDATE … WHERE col IS NULL` statement. The filled-in `dataTransform(...)`\n* invocation returns a runnable operation the runner executes before the\n* subsequent recreate-table op copies data into the tightened schema.\n*/\nfunction dataTransform(opts) {\n\treturn {\n\t\tid: opts.id,\n\t\tlabel: opts.label,\n\t\tsummary: opts.description,\n\t\toperationClass: \"data\",\n\t\ttarget: {\n\t\t\tid: \"sqlite\",\n\t\t\tdetails: buildTargetDetails(\"table\", opts.table)\n\t\t},\n\t\tprecheck: [],\n\t\texecute: [step(opts.description, opts.run())],\n\t\tpostcheck: []\n\t};\n}\n//#endregion\n//#region src/core/migrations/operations/raw.ts\n/**\n* Identity factory for an already-materialized\n* `SqlMigrationPlanOperation<SqlitePlanTargetDetails>`. Mirrors the Postgres\n* `rawSql` factory: the planner uses this to carry ops produced by SQL-family\n* paths (codec lifecycle hooks, raw-SQL escape hatches) alongside structured\n* call IR without reverse-engineering their shape.\n*/\nfunction rawSql(op) {\n\treturn op;\n}\n//#endregion\nexport { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,cAAc,MAAM;CAC5B,OAAO;EACN,IAAI,KAAK;EACT,OAAO,KAAK;EACZ,SAAS,KAAK;EACd,gBAAgB;EAChB,QAAQ;GACP,IAAI;GACJ,SAAS,mBAAmB,SAAS,KAAK,KAAK;EAChD;EACA,UAAU,CAAC;EACX,SAAS,CAAC,KAAK,KAAK,aAAa,KAAK,IAAI,CAAC,CAAC;EAC5C,WAAW,CAAC;CACb;AACD;;;;;;;;AAUA,SAAS,OAAO,IAAI;CACnB,OAAO;AACR"}
@@ -1,5 +1,5 @@
1
1
  import { DdlColumn, DdlNode, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
2
- //#region ../../../3-targets/3-targets/sqlite/dist/nodes-D8EC1yCx.d.mts
2
+ //#region ../../../3-targets/sqlite/1-target/dist/nodes-D8EC1yCx.d.mts
3
3
  //#region src/core/ddl/nodes.d.ts
4
4
  interface SqliteDdlVisitor<R> {
5
5
  createTable(node: SqliteCreateTable): R;
@@ -26,4 +26,4 @@ declare class SqliteCreateTable extends SqliteDdlNode {
26
26
  type AnySqliteDdlNode = SqliteCreateTable;
27
27
  //#endregion
28
28
  export { SqliteDdlVisitor as i, SqliteCreateTable as n, SqliteDdlNode as r, AnySqliteDdlNode as t };
29
- //# sourceMappingURL=nodes-D8EC1yCx-rpfpuJ4T.d.mts.map
29
+ //# sourceMappingURL=nodes-D8EC1yCx-BS-fKla6.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes-D8EC1yCx-BS-fKla6.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/nodes-D8EC1yCx.d.mts"],"mappings":";;;UAEU,iBAAiB;EACzB,YAAY,MAAM,oBAAoB;;uBAEjB,sBAAsB;WAClC,OAAO,GAAG,SAAS,iBAAiB,KAAK;;cAEtC,0BAA0B;WAC7B;WACA;WACA;WACA;WACA,SAAS,cAAc;WACvB,aAAa,cAAc;EACpC,YAAY;aACD;aACA;aACA;aACA,kBAAkB;aAClB,uBAAuB;;EAElC,OAAO,GAAG,SAAS,iBAAiB,KAAK;;KAEtC,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  import { DdlNode } from "@prisma/orm-family-sql/relational-core/ast";
2
- //#region ../../../3-targets/3-targets/sqlite/dist/nodes-DUZSdX86.mjs
2
+ //#region ../../../3-targets/sqlite/1-target/dist/nodes-DUZSdX86.mjs
3
3
  var SqliteDdlNode = class extends DdlNode {};
4
4
  function freezeDdlColumns(columns) {
5
5
  return Object.freeze([...columns]);
@@ -30,4 +30,4 @@ var SqliteCreateTable = class extends SqliteDdlNode {
30
30
  //#endregion
31
31
  export { SqliteDdlNode as n, SqliteCreateTable as t };
32
32
 
33
- //# sourceMappingURL=nodes-DUZSdX86-BBEEaxXY.mjs.map
33
+ //# sourceMappingURL=nodes-DUZSdX86-DWyLY3OW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes-DUZSdX86-DWyLY3OW.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/nodes-DUZSdX86.mjs"],"sourcesContent":["import { DdlNode } from \"@internal/sql-relational-core/ast\";\n//#region src/core/ddl/nodes.ts\nvar SqliteDdlNode = class extends DdlNode {};\nfunction freezeDdlColumns(columns) {\n\treturn Object.freeze([...columns]);\n}\nfunction freezeConstraints(constraints) {\n\treturn constraints ? Object.freeze([...constraints]) : void 0;\n}\nvar SqliteCreateTable = class extends SqliteDdlNode {\n\tkind = \"create-table\";\n\ttable;\n\tschema;\n\tifNotExists;\n\tcolumns;\n\tconstraints;\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.table = options.table;\n\t\tthis.schema = options.schema;\n\t\tthis.ifNotExists = options.ifNotExists;\n\t\tthis.columns = freezeDdlColumns(options.columns);\n\t\tthis.constraints = freezeConstraints(options.constraints);\n\t\tthis.freeze();\n\t}\n\taccept(visitor) {\n\t\treturn visitor.createTable(this);\n\t}\n};\n//#endregion\nexport { SqliteDdlNode as n, SqliteCreateTable as t };\n\n//# sourceMappingURL=nodes-DUZSdX86.mjs.map"],"mappings":";;AAEA,IAAI,gBAAgB,cAAc,QAAQ,CAAC;AAC3C,SAAS,iBAAiB,SAAS;CAClC,OAAO,OAAO,OAAO,CAAC,GAAG,OAAO,CAAC;AAClC;AACA,SAAS,kBAAkB,aAAa;CACvC,OAAO,cAAc,OAAO,OAAO,CAAC,GAAG,WAAW,CAAC,IAAI,KAAK;AAC7D;AACA,IAAI,oBAAoB,cAAc,cAAc;CACnD,OAAO;CACP;CACA;CACA;CACA;CACA;CACA,YAAY,SAAS;EACpB,MAAM;EACN,KAAK,QAAQ,QAAQ;EACrB,KAAK,SAAS,QAAQ;EACtB,KAAK,cAAc,QAAQ;EAC3B,KAAK,UAAU,iBAAiB,QAAQ,OAAO;EAC/C,KAAK,cAAc,kBAAkB,QAAQ,WAAW;EACxD,KAAK,OAAO;CACb;CACA,OAAO,SAAS;EACf,OAAO,QAAQ,YAAY,IAAI;CAChC;AACD"}
@@ -1,11 +1,11 @@
1
- import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-CMahymzq.mjs";
2
- import { a as SqliteTableSpec, i as SqliteIndexSpec, n as RecreatePostcheck, r as SqliteColumnSpec } from "./tables-C6oejIsc-BgxW5wBn.mjs";
1
+ import { t as SqlitePlanTargetDetails } from "./planner-target-details-xR6UfIcz-BrBPQGOS.mjs";
2
+ import { a as SqliteTableSpec, i as SqliteIndexSpec, n as RecreatePostcheck, r as SqliteColumnSpec } from "./tables-C6oejIsc-CzK00Kwl.mjs";
3
3
  import { DdlColumn, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { OpFactoryCall } from "@prisma/orm-framework/components/control";
5
5
  import { MigrationOperationClass, SqlMigrationPlanOperation, SqlSlot } from "@prisma/orm-family-sql/family/control";
6
6
  import { ImportRequirement, TsExpression } from "@prisma/orm-framework/ts-render";
7
7
  import { ExecuteRequestLowerer, Lowerer } from "@prisma/orm-family-sql/family/control-adapter";
8
- //#region ../../../3-targets/3-targets/sqlite/dist/op-factory-call.d.mts
8
+ //#region ../../../3-targets/sqlite/1-target/dist/op-factory-call.d.mts
9
9
  //#region src/core/migrations/op-factory-call.d.ts
10
10
  type Op = SqlMigrationPlanOperation<SqlitePlanTargetDetails>;
11
11
  declare abstract class SqliteOpFactoryCallNode extends TsExpression implements OpFactoryCall {
@@ -222,4 +222,4 @@ declare class RawSqlCall extends SqliteOpFactoryCallNode {
222
222
  type SqliteOpFactoryCall = CreateTableCall | DropTableCall | RecreateTableCall | RenameTableCall | RenameColumnCall | AddColumnCall | DropColumnCall | CreateIndexCall | DropIndexCall | DataTransformCall | RawSqlCall;
223
223
  //#endregion
224
224
  export { DropColumnCall as a, RawSqlCall as c, RenameTableCall as d, SqliteOpFactoryCall as f, DataTransformCall as i, RecreateTableCall as l, CreateIndexCall as n, DropIndexCall as o, CreateTableCall as r, DropTableCall as s, AddColumnCall as t, RenameColumnCall as u };
225
- //# sourceMappingURL=op-factory-call-CnufFdpE.d.mts.map
225
+ //# sourceMappingURL=op-factory-call-De6MX7Yp.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"op-factory-call-De6MX7Yp.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/op-factory-call.d.mts"],"mappings":";;;;;;;;;KAQK,KAAK,0BAA0B;uBACb,gCAAgC,wBAAwB;oBAC3D;oBACA,gBAAgB;oBAChB;WACT,KAAK,UAAU,UAAU,KAAK,QAAQ;;EAE/C,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D,+BAA+B;YACrB;;cAEE,wBAAwB;;WAE3B;WACA;WACA;WACA,kBAAkB;WAClB,sBAAsB;WACtB;EACT,YAAY,mBAAmB,kBAAkB,aAAa,uBAAuB;EACrF,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;WACzB;WACA;WACA;WACA;EACT,YAAY;EACZ,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;;UAGvB;WACC,MAAM;WACN,QAAQ;;;KAGd,sBAAsB,gBAAgB;cAC7B,wBAAwB;WAC3B;WACA;WACA;;WAEA;WACA;;WAEA,4BAA4B;;;;;WAK5B,qBAAqB;EAC9B,YAAY,sBAAsB,mBAAmB,4BAA4B;;MAE7E;EACJ,MAAM,UAAU,iCAAiC,QAAQ;EACzD,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,yBAAyB;WAC5B;WACA;WACA;WACA;;WAEA;WACA;;WAEA,4BAA4B;;;;;WAK5B,qBAAqB;EAC9B,YAAY,mBAAmB,uBAAuB,oBAAoB,4BAA4B;EACtG,MAAM,UAAU,iCAAiC,QAAQ;EACzD,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,0BAA0B;;WAE7B;WACA,gBAAgB;WAChB;WACA,eAAe;WACf;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