@prisma/orm-target-sqlite 8.0.0-rc.9-dev.13 → 8.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/README.md +5 -1
  2. package/dist/adapter-CLQMz42P.d.mts +205 -0
  3. package/dist/adapter-CLQMz42P.d.mts.map +1 -0
  4. package/dist/{adapter-jwxys1MM-CmUELyBs.mjs → adapter-CxzIV2_z-DKbo2Ebu.mjs} +347 -137
  5. package/dist/adapter-CxzIV2_z-DKbo2Ebu.mjs.map +1 -0
  6. package/dist/{adapter-DEYUC-KO-DO_abhIq.d.mts → adapter-xFPDhkod-Bfb8AQQJ.d.mts} +12 -9
  7. package/dist/adapter-xFPDhkod-Bfb8AQQJ.d.mts.map +1 -0
  8. package/dist/adapter.d.mts +14 -15
  9. package/dist/adapter.mjs +7 -6
  10. package/dist/adapter__adapter.d.mts +4 -4
  11. package/dist/adapter__adapter.mjs +3 -2
  12. package/dist/adapter__codec-types.d.mts +3 -3
  13. package/dist/adapter__column-types.d.mts +2 -2
  14. package/dist/adapter__column-types.mjs +2 -2
  15. package/dist/adapter__control.d.mts +5 -5
  16. package/dist/adapter__control.mjs +12 -247
  17. package/dist/adapter__control.mjs.map +1 -1
  18. package/dist/adapter__runtime.d.mts +1 -1
  19. package/dist/adapter__runtime.mjs +30 -16
  20. package/dist/adapter__runtime.mjs.map +1 -1
  21. package/dist/adapter__sql-renderer.d.mts +2 -2
  22. package/dist/adapter__sql-renderer.mjs +1 -1
  23. package/dist/adapter__types.d.mts +3 -2
  24. package/dist/aggregates-CA7Idm1d.d.mts +164 -0
  25. package/dist/aggregates-CA7Idm1d.d.mts.map +1 -0
  26. package/dist/{aggregates-DWyPO7t6.mjs → aggregates-hLiHPHBG.mjs} +44 -26
  27. package/dist/aggregates-hLiHPHBG.mjs.map +1 -0
  28. package/dist/codec-descriptor-3oN7rtrW-Cc_u7U5-.d.mts +1 -0
  29. package/dist/codec-descriptor-C16gQAdS.d.mts +2 -0
  30. package/dist/{codec-descriptor-B9ru99aI-DTkdKFU5.mjs → codec-descriptor-DRmF-crq-BALI5Jtz.mjs} +11 -15
  31. package/dist/codec-descriptor-DRmF-crq-BALI5Jtz.mjs.map +1 -0
  32. package/dist/codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts +45 -0
  33. package/dist/codec-descriptor-DuW-d9ef-BBRBN0Ri.d.mts.map +1 -0
  34. package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts +23 -0
  35. package/dist/codec-ids-CH8Nqk89-LNT9hksu.d.mts.map +1 -0
  36. package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs +23 -0
  37. package/dist/codec-ids-CTshXpbg-tcdbf_VC.mjs.map +1 -0
  38. package/dist/codec-ids-Do7Ml2pg.d.mts +1 -0
  39. package/dist/codec-types-CBLOfyrr.d.mts +2 -0
  40. package/dist/codec-types-CcuzuROC.d.mts +1 -0
  41. package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts +35 -0
  42. package/dist/codec-types-Ci-h2uxN-41PNpdNL.d.mts.map +1 -0
  43. package/dist/codecs-BO3frExA.mjs +49 -0
  44. package/dist/codecs-BO3frExA.mjs.map +1 -0
  45. package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts +378 -0
  46. package/dist/codecs-DBQsDiM--Cy-r45H3.d.mts.map +1 -0
  47. package/dist/codecs-Dou3fR1K.d.mts +1 -0
  48. package/dist/codecs-izq9l1NG-Bb2RnXsx.mjs +1081 -0
  49. package/dist/codecs-izq9l1NG-Bb2RnXsx.mjs.map +1 -0
  50. package/dist/column-types-D3MMpY3X.d.mts +42 -0
  51. package/dist/column-types-D3MMpY3X.d.mts.map +1 -0
  52. package/dist/column-types-D_PjRS6w.mjs +24 -0
  53. package/dist/column-types-D_PjRS6w.mjs.map +1 -0
  54. package/dist/contract-contributions-DEePsuJb-CXE-f6pP.mjs +28 -0
  55. package/dist/contract-contributions-DEePsuJb-CXE-f6pP.mjs.map +1 -0
  56. package/dist/{contract-free-D5cZrgNl.mjs → contract-free-B5S1OSEd.mjs} +8 -7
  57. package/dist/contract-free-B5S1OSEd.mjs.map +1 -0
  58. package/dist/{contract-free-CCLAXZV2.d.mts → contract-free-IqKgq8Pk.d.mts} +6 -6
  59. package/dist/contract-free-IqKgq8Pk.d.mts.map +1 -0
  60. package/dist/{control-D9vMRRgU.d.mts → control-C2TjacST.d.mts} +3 -3
  61. package/dist/control-C2TjacST.d.mts.map +1 -0
  62. package/dist/control-CtCvtwJx.d.mts +408 -0
  63. package/dist/control-CtCvtwJx.d.mts.map +1 -0
  64. package/dist/{control-CLirKz11.d.mts → control-DfWteXy-.d.mts} +31 -45
  65. package/dist/control-DfWteXy-.d.mts.map +1 -0
  66. package/dist/control-V3kPfMTR.mjs +61 -0
  67. package/dist/control-V3kPfMTR.mjs.map +1 -0
  68. package/dist/{control-tables-Dua-YcJL.d.mts → control-tables-DKXLHvMU.d.mts} +2 -2
  69. package/dist/control-tables-DKXLHvMU.d.mts.map +1 -0
  70. package/dist/{control-tables-D_o8dKRB-BXi43noL.mjs → control-tables-D_o8dKRB-n_QqsXcm.mjs} +2 -2
  71. package/dist/control-tables-D_o8dKRB-n_QqsXcm.mjs.map +1 -0
  72. package/dist/data-type-entries-DaT4D2GV-DE0V_N6k.mjs +120 -0
  73. package/dist/data-type-entries-DaT4D2GV-DE0V_N6k.mjs.map +1 -0
  74. package/dist/data-types-C1nzwKt7.d.mts +68 -0
  75. package/dist/data-types-C1nzwKt7.d.mts.map +1 -0
  76. package/dist/data-types-Djvapurb-BR-Y4NWN.mjs +239 -0
  77. package/dist/data-types-Djvapurb-BR-Y4NWN.mjs.map +1 -0
  78. package/dist/date-time-now-generators-DUb3x91B-D0keGG59.mjs +64 -0
  79. package/dist/date-time-now-generators-DUb3x91B-D0keGG59.mjs.map +1 -0
  80. package/dist/datetime-text-DPjoF6HJ-se0mLEbc.mjs +32 -0
  81. package/dist/datetime-text-DPjoF6HJ-se0mLEbc.mjs.map +1 -0
  82. package/dist/ddl-31OBcTco.d.mts +1 -0
  83. package/dist/{ddl-CXduXyOT-nlDP6DGx.mjs → ddl-CgkyurGo-B2o4mSIT.mjs} +45 -8
  84. package/dist/ddl-CgkyurGo-B2o4mSIT.mjs.map +1 -0
  85. package/dist/default-normalizer-BANdMVGr-BiUHyBX1.mjs +124 -0
  86. package/dist/default-normalizer-BANdMVGr-BiUHyBX1.mjs.map +1 -0
  87. package/dist/default-normalizer-CtNsZNRZ.d.mts +25 -0
  88. package/dist/default-normalizer-CtNsZNRZ.d.mts.map +1 -0
  89. package/dist/descriptor-meta-CafFMPhN-x3YQXDSX.mjs +26 -0
  90. package/dist/descriptor-meta-CafFMPhN-x3YQXDSX.mjs.map +1 -0
  91. package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs +137 -0
  92. package/dist/descriptor-meta-CkiPlqDS-n3hDP01X.mjs.map +1 -0
  93. package/dist/descriptor-meta-DEr1ALec-DvT6glGq.mjs +385 -0
  94. package/dist/descriptor-meta-DEr1ALec-DvT6glGq.mjs.map +1 -0
  95. package/dist/driver.d.mts +2 -2
  96. package/dist/driver.mjs +1 -1
  97. package/dist/driver__control.d.mts +1 -1
  98. package/dist/driver__control.mjs +1 -1
  99. package/dist/driver__runtime.d.mts +1 -1
  100. package/dist/driver__runtime.mjs +58 -20
  101. package/dist/driver__runtime.mjs.map +1 -1
  102. package/dist/errors-DxbvEzQp-CeTjoGtL.mjs +146 -0
  103. package/dist/errors-DxbvEzQp-CeTjoGtL.mjs.map +1 -0
  104. package/dist/{migration-DOKPHtxn.mjs → migration-BYRMZiPU.mjs} +6 -5
  105. package/dist/migration-BYRMZiPU.mjs.map +1 -0
  106. package/dist/{migration-uylRe5MP.d.mts → migration-Dekon_QC.d.mts} +6 -5
  107. package/dist/migration-Dekon_QC.d.mts.map +1 -0
  108. package/dist/{nodes-D8EC1yCx-rpfpuJ4T.d.mts → nodes-D8EC1yCx-BS-fKla6.d.mts} +2 -2
  109. package/dist/nodes-D8EC1yCx-BS-fKla6.d.mts.map +1 -0
  110. package/dist/{nodes-DUZSdX86-BBEEaxXY.mjs → nodes-DUZSdX86-DWyLY3OW.mjs} +2 -2
  111. package/dist/nodes-DUZSdX86-DWyLY3OW.mjs.map +1 -0
  112. package/dist/op-factory-call-DjbjegGT-DsQBI5Ll.mjs +2044 -0
  113. package/dist/op-factory-call-DjbjegGT-DsQBI5Ll.mjs.map +1 -0
  114. package/dist/op-factory-call-gQ5ddSys.d.mts +327 -0
  115. package/dist/op-factory-call-gQ5ddSys.d.mts.map +1 -0
  116. package/dist/pack-CHESErO8.d.mts +1477 -0
  117. package/dist/pack-CHESErO8.d.mts.map +1 -0
  118. package/dist/{planner-Bxdi7jZF.d.mts → planner-Bu5XBkHm.d.mts} +21 -10
  119. package/dist/planner-Bu5XBkHm.d.mts.map +1 -0
  120. package/dist/planner-C1OMkqV5-BAv-WPw6.mjs +497 -0
  121. package/dist/planner-C1OMkqV5-BAv-WPw6.mjs.map +1 -0
  122. package/dist/{planner-produced-sqlite-migration-BuJysRxx-CaDUbNVx.d.mts → planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts} +5 -6
  123. package/dist/planner-produced-sqlite-migration-CMjzJW5V-dVv0SjJm.d.mts.map +1 -0
  124. package/dist/{planner-produced-sqlite-migration-C9uVDKrJ-CWbxSANn.mjs → planner-produced-sqlite-migration-CrbMD1ch-O7Mh_aKY.mjs} +13 -23
  125. package/dist/planner-produced-sqlite-migration-CrbMD1ch-O7Mh_aKY.mjs.map +1 -0
  126. package/dist/planner-produced-sqlite-migration-DtytlAAY.d.mts +1 -0
  127. package/dist/{planner-target-details-xR6UfIcz-CMahymzq.d.mts → planner-target-details-B-qtfkmj-DIGpv7YQ.d.mts} +2 -3
  128. package/dist/planner-target-details-B-qtfkmj-DIGpv7YQ.d.mts.map +1 -0
  129. package/dist/{planner-target-details-CIQ789Gc-C5U4yVY9.mjs → planner-target-details-Daaeo8s9-BGAN4JVc.mjs} +2 -4
  130. package/dist/planner-target-details-Daaeo8s9-BGAN4JVc.mjs.map +1 -0
  131. package/dist/render-ops-CQ-Kf4P0-DDUU4OFY.mjs +34 -0
  132. package/dist/render-ops-CQ-Kf4P0-DDUU4OFY.mjs.map +1 -0
  133. package/dist/{render-ops-B10yqmdG.d.mts → render-ops-Wlf_Pawh.d.mts} +3 -3
  134. package/dist/render-ops-Wlf_Pawh.d.mts.map +1 -0
  135. package/dist/require-temporal-CHWqSDF3-ElFTiAh6.mjs +16 -0
  136. package/dist/require-temporal-CHWqSDF3-ElFTiAh6.mjs.map +1 -0
  137. package/dist/{runtime-B1coahKC.d.mts → runtime-BvMPuBrJ.d.mts} +3 -3
  138. package/dist/runtime-BvMPuBrJ.d.mts.map +1 -0
  139. package/dist/runtime-C43fN_cJ.mjs +32 -0
  140. package/dist/runtime-C43fN_cJ.mjs.map +1 -0
  141. package/dist/{runtime-C5J9fusd.d.mts → runtime-CVBk_GlD.d.mts} +4 -4
  142. package/dist/runtime-CVBk_GlD.d.mts.map +1 -0
  143. package/dist/runtime-DqzT70C4.d.mts +67 -0
  144. package/dist/runtime-DqzT70C4.d.mts.map +1 -0
  145. package/dist/sql-renderer-DlZKtvVf.d.mts +1 -0
  146. package/dist/{sql-utils-0SJZOd7Q.d.mts → sql-utils-BqHka8P6.d.mts} +2 -2
  147. package/dist/sql-utils-BqHka8P6.d.mts.map +1 -0
  148. package/dist/{sql-utils-C2O4zVkP-Dz3Hb85I.mjs → sql-utils-CHBxMmv--Dl7wl7n3.mjs} +31 -4
  149. package/dist/sql-utils-CHBxMmv--Dl7wl7n3.mjs.map +1 -0
  150. package/dist/{sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts → sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts} +5 -4
  151. package/dist/sqlite-contract-view-BDw8T5Cp-BfFajhe4.d.mts.map +1 -0
  152. package/dist/sqlite-contract-view-c-qO_pKt-DOCoqwrD.mjs +51 -0
  153. package/dist/sqlite-contract-view-c-qO_pKt-DOCoqwrD.mjs.map +1 -0
  154. package/dist/sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts +227 -0
  155. package/dist/sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts.map +1 -0
  156. package/dist/sqlite-migration-Cmzykasm--GxBXXny.mjs +1363 -0
  157. package/dist/sqlite-migration-Cmzykasm--GxBXXny.mjs.map +1 -0
  158. package/dist/{sqlite-contract-view-BYR10usg-BteDAUZr.mjs → sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs} +6 -47
  159. package/dist/sqlite-unbound-database-CfLXSiVo-Dy5VBXGz.mjs.map +1 -0
  160. package/dist/{shared-BYAX0FaQ--VvRXVRC.d.mts → tables-BY3u6rl_-Coqqy4JK.d.mts} +46 -10
  161. package/dist/tables-BY3u6rl_-Coqqy4JK.d.mts.map +1 -0
  162. package/dist/target.d.mts +30 -29
  163. package/dist/target.mjs +27 -20
  164. package/dist/target__aggregates.d.mts +1 -1
  165. package/dist/target__aggregates.mjs +1 -1
  166. package/dist/target__codec-descriptor.d.mts +2 -2
  167. package/dist/target__codec-descriptor.mjs +1 -1
  168. package/dist/target__codec-ids.d.mts +3 -3
  169. package/dist/target__codec-ids.mjs +2 -2
  170. package/dist/target__codec-types.d.mts +3 -3
  171. package/dist/target__codecs.d.mts +3 -3
  172. package/dist/target__codecs.mjs +4 -2
  173. package/dist/target__contract-free.d.mts +1 -1
  174. package/dist/target__contract-free.mjs +2 -2
  175. package/dist/target__control-tables.d.mts +1 -1
  176. package/dist/target__control-tables.mjs +1 -1
  177. package/dist/target__control.d.mts +3 -3
  178. package/dist/target__control.mjs +332 -114
  179. package/dist/target__control.mjs.map +1 -1
  180. package/dist/target__data-types.d.mts +2 -0
  181. package/dist/target__data-types.mjs +3 -0
  182. package/dist/target__ddl.d.mts +2 -2
  183. package/dist/target__ddl.mjs +1 -1
  184. package/dist/target__default-normalizer.d.mts +2 -2
  185. package/dist/target__default-normalizer.mjs +2 -2
  186. package/dist/target__migration.d.mts +3 -3
  187. package/dist/target__migration.mjs +3 -3
  188. package/dist/target__op-factory-call.d.mts +2 -2
  189. package/dist/target__op-factory-call.mjs +2 -2
  190. package/dist/target__pack.d.mts +1 -1
  191. package/dist/target__pack.mjs +1 -1
  192. package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
  193. package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
  194. package/dist/target__planner-target-details.d.mts +1 -1
  195. package/dist/target__planner-target-details.mjs +1 -1
  196. package/dist/target__planner.d.mts +1 -1
  197. package/dist/target__planner.mjs +1 -1
  198. package/dist/target__render-ops.d.mts +1 -1
  199. package/dist/target__render-ops.mjs +1 -1
  200. package/dist/target__runtime.d.mts +3 -3
  201. package/dist/target__runtime.mjs +4 -17
  202. package/dist/target__sql-utils.d.mts +1 -1
  203. package/dist/target__sql-utils.mjs +1 -1
  204. package/dist/target__types.d.mts +2 -0
  205. package/dist/target__types.mjs +2 -0
  206. package/dist/{control--wMueaTg.d.mts → types-COqCbSev.d.mts} +3 -8
  207. package/dist/types-COqCbSev.d.mts.map +1 -0
  208. package/dist/types-CexPOm8x.d.mts +2 -0
  209. package/dist/{types-C5FSREvo-CwUlKK34.d.mts → types-RJMd2PlL-BTGAJrBQ.d.mts} +5 -7
  210. package/dist/types-RJMd2PlL-BTGAJrBQ.d.mts.map +1 -0
  211. package/package.json +23 -14
  212. package/dist/adapter-D7zw14p5.d.mts +0 -2
  213. package/dist/adapter-DEYUC-KO-DO_abhIq.d.mts.map +0 -1
  214. package/dist/adapter-jwxys1MM-CmUELyBs.mjs.map +0 -1
  215. package/dist/aggregates-BGuKJwfI.d.mts +0 -10
  216. package/dist/aggregates-BGuKJwfI.d.mts.map +0 -1
  217. package/dist/aggregates-DWyPO7t6.mjs.map +0 -1
  218. package/dist/codec-descriptor-B9ru99aI-DTkdKFU5.mjs.map +0 -1
  219. package/dist/codec-descriptor-BcgD9f3L-yDi5nh_k.d.mts +0 -31
  220. package/dist/codec-descriptor-BcgD9f3L-yDi5nh_k.d.mts.map +0 -1
  221. package/dist/codec-descriptor-rFuZ9DzY-CKRIRxah.d.mts +0 -1
  222. package/dist/codec-descriptor-vwfD3BMy.d.mts +0 -2
  223. package/dist/codec-ids-7WqtUuda.d.mts +0 -1
  224. package/dist/codec-ids-CzeDyMWW-BZAcI50I.d.mts +0 -14
  225. package/dist/codec-ids-CzeDyMWW-BZAcI50I.d.mts.map +0 -1
  226. package/dist/codec-ids-KMliSCRp-BhTbmbGr.mjs +0 -14
  227. package/dist/codec-ids-KMliSCRp-BhTbmbGr.mjs.map +0 -1
  228. package/dist/codec-types-B-TDcvQc.d.mts +0 -1
  229. package/dist/codec-types-CS0bD1kX.d.mts +0 -2
  230. package/dist/codec-types-D7uWRvQ1-DPnvquS8.d.mts +0 -25
  231. package/dist/codec-types-D7uWRvQ1-DPnvquS8.d.mts.map +0 -1
  232. package/dist/codecs-BDdR6FbY.mjs +0 -504
  233. package/dist/codecs-BDdR6FbY.mjs.map +0 -1
  234. package/dist/codecs-BQWqLgCl-CdB8t7HI.d.mts +0 -193
  235. package/dist/codecs-BQWqLgCl-CdB8t7HI.d.mts.map +0 -1
  236. package/dist/codecs-BTv6fRXv.d.mts +0 -1
  237. package/dist/column-types-NVxgsjFA.mjs +0 -34
  238. package/dist/column-types-NVxgsjFA.mjs.map +0 -1
  239. package/dist/column-types-iWGuW-0W.d.mts +0 -33
  240. package/dist/column-types-iWGuW-0W.d.mts.map +0 -1
  241. package/dist/contract-free-CCLAXZV2.d.mts.map +0 -1
  242. package/dist/contract-free-D5cZrgNl.mjs.map +0 -1
  243. package/dist/control--wMueaTg.d.mts.map +0 -1
  244. package/dist/control-B16T9OoX.mjs +0 -51
  245. package/dist/control-B16T9OoX.mjs.map +0 -1
  246. package/dist/control-CLirKz11.d.mts.map +0 -1
  247. package/dist/control-D9vMRRgU.d.mts.map +0 -1
  248. package/dist/control-tables-D_o8dKRB-BXi43noL.mjs.map +0 -1
  249. package/dist/control-tables-Dua-YcJL.d.mts.map +0 -1
  250. package/dist/ddl-CXduXyOT-nlDP6DGx.mjs.map +0 -1
  251. package/dist/ddl-CfSqNT0M.d.mts +0 -1
  252. package/dist/default-normalizer-B9V7TY5u.d.mts +0 -7
  253. package/dist/default-normalizer-B9V7TY5u.d.mts.map +0 -1
  254. package/dist/default-normalizer-DuoHj9-O-DsK7lJZn.mjs +0 -69
  255. package/dist/default-normalizer-DuoHj9-O-DsK7lJZn.mjs.map +0 -1
  256. package/dist/descriptor-meta-C0sCVHMY-1P-YUnEW.mjs +0 -34
  257. package/dist/descriptor-meta-C0sCVHMY-1P-YUnEW.mjs.map +0 -1
  258. package/dist/descriptor-meta-DjKgG4z5-D_0obUB8.mjs +0 -34
  259. package/dist/descriptor-meta-DjKgG4z5-D_0obUB8.mjs.map +0 -1
  260. package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs +0 -13
  261. package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs.map +0 -1
  262. package/dist/descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs +0 -70
  263. package/dist/descriptor-meta-vjJkUDsn-Hz3rnAnk.mjs.map +0 -1
  264. package/dist/errors-DnR-sMHS-KkMLIP2U.mjs +0 -38
  265. package/dist/errors-DnR-sMHS-KkMLIP2U.mjs.map +0 -1
  266. package/dist/migration-DOKPHtxn.mjs.map +0 -1
  267. package/dist/migration-uylRe5MP.d.mts.map +0 -1
  268. package/dist/native-type-normalizer-CO2wKGL6.d.mts +0 -12
  269. package/dist/native-type-normalizer-CO2wKGL6.d.mts.map +0 -1
  270. package/dist/native-type-normalizer-GpQMEyN5.mjs +0 -14
  271. package/dist/native-type-normalizer-GpQMEyN5.mjs.map +0 -1
  272. package/dist/nodes-D8EC1yCx-rpfpuJ4T.d.mts.map +0 -1
  273. package/dist/nodes-DUZSdX86-BBEEaxXY.mjs.map +0 -1
  274. package/dist/op-factory-call-DoHN7Q7L.d.mts +0 -161
  275. package/dist/op-factory-call-DoHN7Q7L.d.mts.map +0 -1
  276. package/dist/op-factory-call-gc26GqyA-Db5Fasef.mjs +0 -829
  277. package/dist/op-factory-call-gc26GqyA-Db5Fasef.mjs.map +0 -1
  278. package/dist/pack-Cn0GAuEa.d.mts +0 -103
  279. package/dist/pack-Cn0GAuEa.d.mts.map +0 -1
  280. package/dist/planner-Bxdi7jZF.d.mts.map +0 -1
  281. package/dist/planner-Cqjr2usR-4wg3FB78.mjs +0 -824
  282. package/dist/planner-Cqjr2usR-4wg3FB78.mjs.map +0 -1
  283. package/dist/planner-produced-sqlite-migration-BuJysRxx-CaDUbNVx.d.mts.map +0 -1
  284. package/dist/planner-produced-sqlite-migration-C9uVDKrJ-CWbxSANn.mjs.map +0 -1
  285. package/dist/planner-produced-sqlite-migration-uySoqJO-.d.mts +0 -1
  286. package/dist/planner-target-details-CIQ789Gc-C5U4yVY9.mjs.map +0 -1
  287. package/dist/planner-target-details-xR6UfIcz-CMahymzq.d.mts.map +0 -1
  288. package/dist/render-ops-B10yqmdG.d.mts.map +0 -1
  289. package/dist/render-ops-KxAmAz6d-W2xyvA5y.mjs +0 -27
  290. package/dist/render-ops-KxAmAz6d-W2xyvA5y.mjs.map +0 -1
  291. package/dist/runtime-B1coahKC.d.mts.map +0 -1
  292. package/dist/runtime-B99c4n56.d.mts +0 -28
  293. package/dist/runtime-B99c4n56.d.mts.map +0 -1
  294. package/dist/runtime-C5J9fusd.d.mts.map +0 -1
  295. package/dist/shared-BYAX0FaQ--VvRXVRC.d.mts.map +0 -1
  296. package/dist/sql-renderer-KX6hn_tg.d.mts +0 -1
  297. package/dist/sql-utils-0SJZOd7Q.d.mts.map +0 -1
  298. package/dist/sql-utils-C2O4zVkP-Dz3Hb85I.mjs.map +0 -1
  299. package/dist/sqlite-contract-view-BYR10usg-BteDAUZr.mjs.map +0 -1
  300. package/dist/sqlite-contract-view-BpNMaU2m-COMDaGaq.d.mts.map +0 -1
  301. package/dist/sqlite-migration-CjMkH4Id-c6dM9w61.mjs +0 -94
  302. package/dist/sqlite-migration-CjMkH4Id-c6dM9w61.mjs.map +0 -1
  303. package/dist/sqlite-migration-o23JHwzY-CwNJcqwl.d.mts +0 -105
  304. package/dist/sqlite-migration-o23JHwzY-CwNJcqwl.d.mts.map +0 -1
  305. package/dist/target__native-type-normalizer.d.mts +0 -2
  306. package/dist/target__native-type-normalizer.mjs +0 -2
  307. package/dist/target__runtime.mjs.map +0 -1
  308. package/dist/types-B7e2QVEx.d.mts +0 -1
  309. package/dist/types-C5FSREvo-CwUlKK34.d.mts.map +0 -1
@@ -0,0 +1,408 @@
1
+ import { t as SqlitePlanTargetDetails } from "./planner-target-details-B-qtfkmj-DIGpv7YQ.mjs";
2
+ import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
3
+ import { SqlControlTargetDescriptor } from "@prisma/orm-family-sql/family/control";
4
+ import { Contract } from "@prisma/orm-framework/contract/types";
5
+ //#region ../../../3-targets/sqlite/1-target/dist/control.d.mts
6
+ //#region src/core/migrations/control-target.d.ts
7
+ declare const sqliteControlTargetDescriptor: SqlControlTargetDescriptor<"sqlite", SqlitePlanTargetDetails, Contract<SqlStorage<string>>>;
8
+ //#endregion
9
+ //#region src/core/type-constructors.d.ts
10
+ /**
11
+ * The scalar types, the explicit date and time types and the convenience date and time types. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
12
+ */
13
+ declare const sqliteScalarTypeConstructors: {
14
+ readonly DateTime: {
15
+ readonly kind: "typeChoice";
16
+ readonly documentation: "A moment in time, stored as SQLite text. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string, such as \"2024-01-01T00:00:00.000Z\".";
17
+ readonly args: readonly [{
18
+ readonly kind: "option";
19
+ readonly name: "as";
20
+ readonly values: readonly ["jsDate", "temporal", "string"];
21
+ readonly default: "jsDate";
22
+ readonly optional: true;
23
+ }, {
24
+ readonly kind: "option";
25
+ readonly name: "storage";
26
+ readonly values: readonly ["text"];
27
+ readonly default: "text";
28
+ readonly optional: true;
29
+ }];
30
+ readonly choices: readonly [{
31
+ readonly when: {
32
+ readonly as: "jsDate";
33
+ readonly storage: "text";
34
+ };
35
+ readonly type: "DatetimeJsDate";
36
+ }, {
37
+ readonly when: {
38
+ readonly as: "temporal";
39
+ readonly storage: "text";
40
+ };
41
+ readonly type: "DatetimeTemporal";
42
+ }, {
43
+ readonly when: {
44
+ readonly as: "string";
45
+ readonly storage: "text";
46
+ };
47
+ readonly type: "DatetimeString";
48
+ }];
49
+ };
50
+ readonly Date: {
51
+ readonly kind: "typeChoice";
52
+ readonly documentation: "A calendar date, stored as SQLite text. `as` is what the application reads: string, such as \"2024-02-29\", or temporal (Temporal.PlainDate).";
53
+ readonly args: readonly [{
54
+ readonly kind: "option";
55
+ readonly name: "as";
56
+ readonly values: readonly ["string", "temporal"];
57
+ readonly default: "string";
58
+ readonly optional: true;
59
+ }, {
60
+ readonly kind: "option";
61
+ readonly name: "storage";
62
+ readonly values: readonly ["text"];
63
+ readonly default: "text";
64
+ readonly optional: true;
65
+ }];
66
+ readonly choices: readonly [{
67
+ readonly when: {
68
+ readonly as: "string";
69
+ readonly storage: "text";
70
+ };
71
+ readonly type: "DateString";
72
+ }, {
73
+ readonly when: {
74
+ readonly as: "temporal";
75
+ readonly storage: "text";
76
+ };
77
+ readonly type: "DateTemporal";
78
+ }];
79
+ };
80
+ readonly Time: {
81
+ readonly kind: "typeChoice";
82
+ readonly documentation: "A time of day, stored as SQLite text. `as` is what the application reads: string, such as \"09:30:00.000\", or temporal (Temporal.PlainTime).";
83
+ readonly args: readonly [{
84
+ readonly kind: "option";
85
+ readonly name: "as";
86
+ readonly values: readonly ["string", "temporal"];
87
+ readonly default: "string";
88
+ readonly optional: true;
89
+ }, {
90
+ readonly kind: "option";
91
+ readonly name: "storage";
92
+ readonly values: readonly ["text"];
93
+ readonly default: "text";
94
+ readonly optional: true;
95
+ }];
96
+ readonly choices: readonly [{
97
+ readonly when: {
98
+ readonly as: "string";
99
+ readonly storage: "text";
100
+ };
101
+ readonly type: "TimeString";
102
+ }, {
103
+ readonly when: {
104
+ readonly as: "temporal";
105
+ readonly storage: "text";
106
+ };
107
+ readonly type: "TimeTemporal";
108
+ }];
109
+ };
110
+ readonly Duration: {
111
+ readonly kind: "typeChoice";
112
+ readonly documentation: "A length of time, stored as SQLite text. `as` is what the application reads: string, an ISO 8601 duration such as \"PT1H30M\".";
113
+ readonly args: readonly [{
114
+ readonly kind: "option";
115
+ readonly name: "as";
116
+ readonly values: readonly ["string"];
117
+ readonly default: "string";
118
+ readonly optional: true;
119
+ }, {
120
+ readonly kind: "option";
121
+ readonly name: "storage";
122
+ readonly values: readonly ["text"];
123
+ readonly default: "text";
124
+ readonly optional: true;
125
+ }];
126
+ readonly choices: readonly [{
127
+ readonly when: {
128
+ readonly as: "string";
129
+ readonly storage: "text";
130
+ };
131
+ readonly type: "DurationString";
132
+ }];
133
+ };
134
+ readonly DatetimeJsDate: {
135
+ readonly kind: "typeConstructor";
136
+ readonly documentation: "An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as a JavaScript Date.";
137
+ readonly output: {
138
+ readonly codecId: "sqlite/datetime@1";
139
+ };
140
+ };
141
+ readonly DatetimeTemporal: {
142
+ readonly kind: "typeConstructor";
143
+ readonly documentation: "An instant stored as SQLite text, 2024-01-01T00:00:00.000Z, and represented as Temporal.Instant.";
144
+ readonly output: {
145
+ readonly codecId: "sqlite/datetime-temporal@1";
146
+ };
147
+ };
148
+ readonly DatetimeString: {
149
+ readonly kind: "typeConstructor";
150
+ readonly documentation: "An instant stored as SQLite text and represented as that text, 2024-01-01T00:00:00.000Z, the instant in UTC.";
151
+ readonly output: {
152
+ readonly codecId: "sqlite/datetime-string@1";
153
+ };
154
+ };
155
+ readonly DateString: {
156
+ readonly kind: "typeConstructor";
157
+ readonly documentation: "A calendar date stored as SQLite text and represented as that text, 2024-02-29.";
158
+ readonly output: {
159
+ readonly codecId: "sqlite/date-string@1";
160
+ };
161
+ };
162
+ readonly DateTemporal: {
163
+ readonly kind: "typeConstructor";
164
+ readonly documentation: "A calendar date stored as SQLite text, 2024-02-29, and represented as Temporal.PlainDate.";
165
+ readonly output: {
166
+ readonly codecId: "sqlite/date-temporal@1";
167
+ };
168
+ };
169
+ readonly TimeString: {
170
+ readonly kind: "typeConstructor";
171
+ readonly documentation: "A time of day stored as SQLite text and represented as that text, 09:30:00.000, always with three fraction digits.";
172
+ readonly output: {
173
+ readonly codecId: "sqlite/time-string@1";
174
+ };
175
+ };
176
+ readonly TimeTemporal: {
177
+ readonly kind: "typeConstructor";
178
+ readonly documentation: "A time of day stored as SQLite text, 09:30:00.000, and represented as Temporal.PlainTime.";
179
+ readonly output: {
180
+ readonly codecId: "sqlite/time-temporal@1";
181
+ };
182
+ };
183
+ readonly DurationString: {
184
+ readonly kind: "typeConstructor";
185
+ readonly documentation: "A length of time stored as SQLite text and represented as the ISO 8601 duration it was written as, such as PT1H30M.";
186
+ readonly output: {
187
+ readonly codecId: "sqlite/duration-string@1";
188
+ };
189
+ };
190
+ readonly BigIntNumber: {
191
+ readonly deprecated: {
192
+ readonly replacement: "IntegerNumber";
193
+ };
194
+ readonly kind: "typeConstructor";
195
+ readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
196
+ readonly output: {
197
+ readonly codecId: "sqlite/integer@1";
198
+ };
199
+ };
200
+ readonly Int: {
201
+ readonly kind: "typeChoice";
202
+ readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
203
+ readonly args: readonly [{
204
+ readonly kind: "option";
205
+ readonly name: "storage";
206
+ readonly values: readonly ["integer"];
207
+ readonly default: "integer";
208
+ readonly optional: true;
209
+ }];
210
+ readonly choices: readonly [{
211
+ readonly when: {
212
+ readonly storage: "integer";
213
+ };
214
+ readonly type: "IntegerNumber";
215
+ }];
216
+ };
217
+ readonly BigInt: {
218
+ readonly kind: "typeChoice";
219
+ readonly documentation: "An integer that may exceed the safe integer range, stored as SQLite integer. `as` is what the application reads: bigint, or number within the safe integer range.";
220
+ readonly args: readonly [{
221
+ readonly kind: "option";
222
+ readonly name: "as";
223
+ readonly values: readonly ["bigint", "number"];
224
+ readonly default: "bigint";
225
+ readonly optional: true;
226
+ }, {
227
+ readonly kind: "option";
228
+ readonly name: "storage";
229
+ readonly values: readonly ["integer"];
230
+ readonly default: "integer";
231
+ readonly optional: true;
232
+ }];
233
+ readonly choices: readonly [{
234
+ readonly when: {
235
+ readonly as: "bigint";
236
+ readonly storage: "integer";
237
+ };
238
+ readonly type: "IntegerBigInt";
239
+ }, {
240
+ readonly when: {
241
+ readonly as: "number";
242
+ readonly storage: "integer";
243
+ };
244
+ readonly type: "IntegerNumber";
245
+ }];
246
+ };
247
+ readonly Float: {
248
+ readonly kind: "typeChoice";
249
+ readonly documentation: "A floating-point number, stored as SQLite real.";
250
+ readonly args: readonly [{
251
+ readonly kind: "option";
252
+ readonly name: "storage";
253
+ readonly values: readonly ["real"];
254
+ readonly default: "real";
255
+ readonly optional: true;
256
+ }];
257
+ readonly choices: readonly [{
258
+ readonly when: {
259
+ readonly storage: "real";
260
+ };
261
+ readonly type: "Real";
262
+ }];
263
+ };
264
+ readonly Decimal: {
265
+ readonly kind: "typeChoice";
266
+ readonly documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. It can be compared for equality but not ordered or summed.";
267
+ readonly args: readonly [{
268
+ readonly kind: "option";
269
+ readonly name: "storage";
270
+ readonly values: readonly ["text"];
271
+ readonly default: "text";
272
+ readonly optional: true;
273
+ }];
274
+ readonly choices: readonly [{
275
+ readonly when: {
276
+ readonly storage: "text";
277
+ };
278
+ readonly type: "DecimalString";
279
+ }];
280
+ };
281
+ readonly String: {
282
+ readonly kind: "typeChoice";
283
+ readonly documentation: "Text, stored as SQLite text.";
284
+ readonly args: readonly [{
285
+ readonly kind: "option";
286
+ readonly name: "storage";
287
+ readonly values: readonly ["text"];
288
+ readonly default: "text";
289
+ readonly optional: true;
290
+ }];
291
+ readonly choices: readonly [{
292
+ readonly when: {
293
+ readonly storage: "text";
294
+ };
295
+ readonly type: "Text";
296
+ }];
297
+ };
298
+ readonly Boolean: {
299
+ readonly kind: "typeChoice";
300
+ readonly documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.";
301
+ readonly args: readonly [{
302
+ readonly kind: "option";
303
+ readonly name: "storage";
304
+ readonly values: readonly ["integer"];
305
+ readonly default: "integer";
306
+ readonly optional: true;
307
+ }];
308
+ readonly choices: readonly [{
309
+ readonly when: {
310
+ readonly storage: "integer";
311
+ };
312
+ readonly type: "IntegerBoolean";
313
+ }];
314
+ };
315
+ readonly Bytes: {
316
+ readonly kind: "typeChoice";
317
+ readonly documentation: "Binary data read as a Uint8Array, stored as SQLite blob.";
318
+ readonly args: readonly [{
319
+ readonly kind: "option";
320
+ readonly name: "storage";
321
+ readonly values: readonly ["blob"];
322
+ readonly default: "blob";
323
+ readonly optional: true;
324
+ }];
325
+ readonly choices: readonly [{
326
+ readonly when: {
327
+ readonly storage: "blob";
328
+ };
329
+ readonly type: "Blob";
330
+ }];
331
+ };
332
+ readonly Json: {
333
+ readonly kind: "typeChoice";
334
+ readonly documentation: "A JSON value, serialized and stored as SQLite text.";
335
+ readonly args: readonly [{
336
+ readonly kind: "option";
337
+ readonly name: "storage";
338
+ readonly values: readonly ["text"];
339
+ readonly default: "text";
340
+ readonly optional: true;
341
+ }];
342
+ readonly choices: readonly [{
343
+ readonly when: {
344
+ readonly storage: "text";
345
+ };
346
+ readonly type: "PlainJson";
347
+ }];
348
+ };
349
+ readonly IntegerNumber: {
350
+ readonly kind: "typeConstructor";
351
+ readonly documentation: "An integer read as a JavaScript number within its safe integer range, stored as SQLite integer.";
352
+ readonly output: {
353
+ readonly codecId: "sqlite/integer@1";
354
+ };
355
+ };
356
+ readonly IntegerBigInt: {
357
+ readonly kind: "typeConstructor";
358
+ readonly documentation: "An integer read as a JavaScript bigint, stored as SQLite integer.";
359
+ readonly output: {
360
+ readonly codecId: "sqlite/bigint@1";
361
+ };
362
+ };
363
+ readonly Real: {
364
+ readonly kind: "typeConstructor";
365
+ readonly documentation: "A floating-point number, stored as SQLite real.";
366
+ readonly output: {
367
+ readonly codecId: "sqlite/real@1";
368
+ };
369
+ };
370
+ readonly DecimalString: {
371
+ readonly kind: "typeConstructor";
372
+ readonly documentation: "An exact decimal number read as decimal text such as \"12.50\", stored as SQLite text. Text compares by its characters, so a field of this type can be compared for equality but not ordered or summed.";
373
+ readonly output: {
374
+ readonly codecId: "sqlite/decimal@1";
375
+ };
376
+ };
377
+ readonly Text: {
378
+ readonly kind: "typeConstructor";
379
+ readonly documentation: "Text, stored as SQLite text.";
380
+ readonly output: {
381
+ readonly codecId: "sqlite/text@1";
382
+ };
383
+ };
384
+ readonly IntegerBoolean: {
385
+ readonly kind: "typeConstructor";
386
+ readonly documentation: "A boolean, stored as SQLite integer: 0 for false and 1 for true, as SQLite writes FALSE and TRUE.";
387
+ readonly output: {
388
+ readonly codecId: "sqlite/boolean@1";
389
+ };
390
+ };
391
+ readonly Blob: {
392
+ readonly kind: "typeConstructor";
393
+ readonly documentation: "Binary data read as a Uint8Array, stored as SQLite blob.";
394
+ readonly output: {
395
+ readonly codecId: "sqlite/blob@1";
396
+ };
397
+ };
398
+ readonly PlainJson: {
399
+ readonly kind: "typeConstructor";
400
+ readonly documentation: "A JSON value, serialized and stored as SQLite text.";
401
+ readonly output: {
402
+ readonly codecId: "sqlite/json@1";
403
+ };
404
+ };
405
+ };
406
+ //#endregion
407
+ export { sqliteScalarTypeConstructors as n, sqliteControlTargetDescriptor as t };
408
+ //# sourceMappingURL=control-CtCvtwJx.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-CtCvtwJx.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/control.d.mts"],"mappings":";;;;;;cAKc,+BAA+B,qCAAqC,yBAAyB,SAAS;;;;;;cAMtG;WACH;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;eACE;;aAEF;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE"}
@@ -1,35 +1,26 @@
1
- import { n as AnySqliteCodecDescriptor } from "./codec-descriptor-BcgD9f3L-yDi5nh_k.mjs";
2
- import "./codec-descriptor-vwfD3BMy.mjs";
3
- import { n as SqliteCodecRegistry } from "./types-C5FSREvo-CwUlKK34.mjs";
4
- import { r as SqliteDdlNode } from "./nodes-D8EC1yCx-rpfpuJ4T.mjs";
5
- import "./ddl-CfSqNT0M.mjs";
6
- import { t as parseSqliteDefault } from "./default-normalizer-B9V7TY5u.mjs";
7
- import { t as normalizeSqliteNativeType } from "./native-type-normalizer-CO2wKGL6.mjs";
8
- import { AnyQueryAst, DdlNode, LoweredStatement, LowererContext, MarkerReadResult, SqlExecuteRequest } from "@prisma/orm-family-sql/relational-core/ast";
1
+ import { s as SqliteCodecRegistry } from "./codecs-DBQsDiM--Cy-r45H3.mjs";
2
+ import "./codecs-Dou3fR1K.mjs";
3
+ import { r as SqliteDdlNode } from "./nodes-D8EC1yCx-BS-fKla6.mjs";
4
+ import "./ddl-31OBcTco.mjs";
5
+ import "./default-normalizer-CtNsZNRZ.mjs";
6
+ import { AnyQueryAst, DdlColumn, DdlNode, LoweredStatement, LowererContext, MarkerReadResult, SqlExecuteRequest } from "@prisma/orm-family-sql/relational-core/ast";
7
+ import { DataType } from "@prisma/orm-framework/components/codec";
8
+ import { MarkerDestination, MarkerInsert } from "@prisma/orm-framework/components/control";
9
+ import { SqlControlDriverInstance } from "@prisma/orm-family-sql/contract/types";
9
10
  import { SqlControlAdapterDescriptor } from "@prisma/orm-family-sql/family/control";
10
11
  import { SqlSchemaIR } from "@prisma/orm-family-sql/schema-ir/types";
11
- import { SqlControlDriverInstance } from "@prisma/orm-family-sql/contract/types";
12
- import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
13
- import "@prisma/orm-framework/components/components";
14
12
  import { SqlControlAdapter } from "@prisma/orm-family-sql/family/control-adapter";
15
- //#region ../../../3-targets/6-adapters/sqlite/dist/control.d.mts
16
- //#region src/core/codec-lookup.d.ts
17
- declare function createSqliteCodecRegistryWithBuiltins(codecDescriptors?: readonly AnySqliteCodecDescriptor[]): SqliteCodecRegistry;
18
- /**
19
- * Build a coherent SQLite codec registry populated with built-in descriptors only.
20
- *
21
- * The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.
22
- */
23
- declare function createSqliteBuiltinCodecLookup(): SqliteCodecRegistry;
24
- //#endregion
13
+ import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
14
+ //#region ../../../3-targets/sqlite/2-adapter/dist/control.d.mts
25
15
  //#region src/core/control-adapter.d.ts
26
16
  declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
27
17
  readonly familyId: "sql";
28
18
  readonly targetId: "sqlite";
19
+ readonly markerLocation = "_prisma_marker";
29
20
  private readonly codecRegistry;
30
- constructor(codecRegistry: SqliteCodecRegistry);
31
- readonly normalizeDefault: typeof parseSqliteDefault;
32
- readonly normalizeNativeType: typeof normalizeSqliteNativeType;
21
+ private readonly declaredDataTypes;
22
+ /** `declaredDataTypes` are the stack's data types in assembly order, which introspection resolves each column's reported type over. */
23
+ constructor(codecRegistry: SqliteCodecRegistry, declaredDataTypes: readonly DataType[]);
33
24
  bootstrapControlTableQueries(): readonly DdlNode[];
34
25
  bootstrapSignMarkerQueries(): readonly DdlNode[];
35
26
  /**
@@ -41,11 +32,12 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
41
32
  * without instantiating the runtime adapter.
42
33
  */
43
34
  lower(ast: AnyQueryAst | SqliteDdlNode, context: LowererContext<unknown>): LoweredStatement;
35
+ renderColumnDefault(column: DdlColumn, table: string): Promise<string>;
44
36
  /**
45
37
  * Lower an AST all the way to a driver-ready statement. For DDL nodes,
46
38
  * literal column defaults are formatted as inline SQL with SQLite-specific
47
39
  * literal syntax (no cast suffix, boolean as 0/1, blob via X'hex'). For
48
- * query ASTs, params are kept as `?` placeholders; wire values go in
40
+ * query ASTs, params are kept as numbered `?N` placeholders; wire values go in
49
41
  * `params`. Does NOT call `this.lower()` — independent implementation.
50
42
  */
51
43
  lowerToExecuteRequest(ast: AnyQueryAst | SqliteDdlNode, context?: LowererContext<unknown>): Promise<SqlExecuteRequest>;
@@ -75,28 +67,18 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
75
67
  * builder, lowered through {@link lower} and executed on the driver. See the
76
68
  * `SqlControlAdapter.initMarker` contract.
77
69
  */
78
- insertMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, destination: {
79
- readonly storageHash: string;
80
- readonly profileHash: string;
81
- readonly invariants?: readonly string[];
82
- }): Promise<void>;
83
- initMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, destination: {
84
- readonly storageHash: string;
85
- readonly profileHash: string;
86
- readonly invariants?: readonly string[];
87
- }): Promise<void>;
70
+ insertMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, destination: MarkerInsert): Promise<void>;
71
+ initMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, destination: MarkerDestination): Promise<void>;
88
72
  /**
89
73
  * Compare-and-swap advance of the marker row for `space`. See the
90
74
  * `SqlControlAdapter.updateMarker` contract.
91
75
  */
92
- updateMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, expectedFrom: string, destination: {
93
- readonly storageHash: string;
94
- readonly profileHash: string;
95
- readonly invariants?: readonly string[];
96
- }): Promise<boolean>;
76
+ updateMarker(driver: SqlControlDriverInstance<'sqlite'>, space: string, expectedFrom: string, destination: MarkerDestination): Promise<boolean>;
77
+ private metaWithPolicies;
78
+ withTransaction<T>(driver: SqlControlDriverInstance<'sqlite'>, fn: () => Promise<T>): Promise<T>;
79
+ lockMarker(_driver: SqlControlDriverInstance<'sqlite'>): Promise<void>;
97
80
  /**
98
- * Appends a ledger entry for `space`. See the
99
- * `SqlControlAdapter.writeLedgerEntry` contract.
81
+ * Appends a ledger entry for `space`. See the `SqlControlAdapter.writeLedgerEntry` contract.
100
82
  */
101
83
  writeLedgerEntry(driver: SqlControlDriverInstance<'sqlite'>, space: string, entry: {
102
84
  readonly edgeId: string;
@@ -107,11 +89,15 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
107
89
  readonly operations: readonly unknown[];
108
90
  }): Promise<void>;
109
91
  private readMarkerResult;
110
- introspect(driver: SqlControlDriverInstance<'sqlite'>, _contract?: unknown): Promise<SqlSchemaIR>;
92
+ /**
93
+ * Reads a column's reported default: a function or SQL NULL as itself, and a literal with the column's codec, when the contract declares the column. A literal of a column the contract does not declare keeps only its raw text. When the contract's default is an expression that writes a literal, the codec reads that literal too, for the diff to compare the two values.
94
+ */
95
+ private readReportedDefault;
96
+ introspect(driver: SqlControlDriverInstance<'sqlite'>, contract?: unknown): Promise<SqlSchemaIR>;
111
97
  }
112
98
  //#endregion
113
99
  //#region src/exports/control.d.ts
114
100
  declare const sqliteAdapterDescriptor: SqlControlAdapterDescriptor<'sqlite'>;
115
101
  //#endregion
116
- export { sqliteAdapterDescriptor as i, createSqliteBuiltinCodecLookup as n, createSqliteCodecRegistryWithBuiltins as r, SqliteControlAdapter as t };
117
- //# sourceMappingURL=control-CLirKz11.d.mts.map
102
+ export { sqliteAdapterDescriptor as n, SqliteControlAdapter as t };
103
+ //# sourceMappingURL=control-DfWteXy-.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-DfWteXy-.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;cAac,gCAAgC;WACnC;WACA;WACA;mBACQ;mBACA;;EAEjB,YAAY,eAAe,qBAAqB,4BAA4B;EAC5E,yCAAyC;EACzC,uCAAuC;;;;;;;;;EASvC,MAAM,KAAK,cAAc,eAAe,SAAS,0BAA0B;EAC3E,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;EAQvD,sBAAsB,KAAK,cAAc,eAAe,UAAU,0BAA0B,QAAQ;;;;;;EAMpG,WAAW,QAAQ,oCAAoC,gBAAgB,QAAQ;EAC/E,wBAAwB,QAAQ,oCAAoC,gBAAgB,QAAQ;;;;;;EAM5F,eAAe,QAAQ,qCAAqC,QAAQ,oBAAoB;UAChF;;;;;;EAMR,WAAW,QAAQ,oCAAoC,iBAAiB,iBAAiB;UACjF;;;;;;EAMR,aAAa,QAAQ,oCAAoC,eAAe,aAAa,eAAe;EACpG,WAAW,QAAQ,oCAAoC,eAAe,aAAa,oBAAoB;;;;;EAKvG,aAAa,QAAQ,oCAAoC,eAAe,sBAAsB,aAAa,oBAAoB;UACvH;EACR,gBAAgB,GAAG,QAAQ,oCAAoC,UAAU,QAAQ,KAAK,QAAQ;EAC9F,WAAW,SAAS,qCAAqC;;;;EAIzD,iBAAiB,QAAQ,oCAAoC,eAAe;aACjE;aACA;aACA;aACA;aACA;aACA;MACP;UACI;;;;UAIA;EACR,WAAW,QAAQ,oCAAoC,qBAAqB,QAAQ;;;;cAIxE,yBAAyB"}
@@ -0,0 +1,61 @@
1
+ import { a as sqliteDriverDescriptorMeta, i as safeIntegersAsNumbers, n as normalizeSqliteError, o as sqliteParams, r as prepareExact, s as wasClosedByDriver, t as closeDatabase } from "./descriptor-meta-CkiPlqDS-n3hDP01X.mjs";
2
+ import { blindCast } from "@prisma/orm-framework/utils/casts";
3
+ import { errorRuntime } from "@prisma/orm-framework/errors/execution";
4
+ import { DatabaseSync } from "node:sqlite";
5
+ import { pathToFileURL } from "node:url";
6
+ import { basename } from "pathe";
7
+ //#region ../../../3-targets/sqlite/3-driver/dist/control.mjs
8
+ var SqliteControlDriver = class {
9
+ db;
10
+ location;
11
+ familyId = "sql";
12
+ targetId = "sqlite";
13
+ constructor(db, location) {
14
+ this.db = db;
15
+ this.location = location;
16
+ }
17
+ async query(sql, params) {
18
+ try {
19
+ return { rows: blindCast(prepareExact(this.db, sql).all(...sqliteParams(params)).map(safeIntegersAsNumbers)) };
20
+ } catch (error) {
21
+ throw normalizeSqliteError(error, wasClosedByDriver(this.db));
22
+ }
23
+ }
24
+ async databaseName() {
25
+ if (this.location === ":memory:" || this.location.length === 0) return;
26
+ const name = basename(this.location);
27
+ return name.length > 0 ? name : void 0;
28
+ }
29
+ async close() {
30
+ closeDatabase(this.db);
31
+ }
32
+ };
33
+ /** The file as a URI that SQLite opens for reading and writing, failing rather than creating it. */
34
+ function existingFileOnly(pathOrMemory) {
35
+ if (pathOrMemory === ":memory:") return pathOrMemory;
36
+ const uri = pathToFileURL(pathOrMemory);
37
+ uri.searchParams.set("mode", "rw");
38
+ return uri;
39
+ }
40
+ const sqliteDriverDescriptor = {
41
+ ...sqliteDriverDescriptorMeta,
42
+ async create(pathOrMemory, options) {
43
+ try {
44
+ const db = new DatabaseSync(options?.existingDatabaseOnly === true ? existingFileOnly(pathOrMemory) : pathOrMemory);
45
+ db.exec("PRAGMA foreign_keys = ON");
46
+ db.exec("PRAGMA busy_timeout = 5000");
47
+ return new SqliteControlDriver(db, pathOrMemory);
48
+ } catch (error) {
49
+ throw errorRuntime("DRIVER.CONNECTION_FAILED", "Database connection failed", {
50
+ why: error instanceof Error ? error.message : String(error),
51
+ fix: "Verify the database file path exists and is accessible",
52
+ meta: { path: pathOrMemory },
53
+ cause: error
54
+ });
55
+ }
56
+ }
57
+ };
58
+ //#endregion
59
+ export { sqliteDriverDescriptor as n, SqliteControlDriver as t };
60
+
61
+ //# sourceMappingURL=control-V3kPfMTR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-V3kPfMTR.mjs","names":[],"sources":["../../../../3-targets/sqlite/3-driver/dist/control.mjs"],"sourcesContent":["import { a as safeIntegersAsNumbers, i as prepareExact, n as sqliteParams, o as closeDatabase, r as normalizeSqliteError, s as wasClosedByDriver, t as sqliteDriverDescriptorMeta } from \"./descriptor-meta-CkiPlqDS.mjs\";\nimport { DatabaseSync } from \"node:sqlite\";\nimport { pathToFileURL } from \"node:url\";\nimport { errorRuntime } from \"@internal/errors/execution\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { basename } from \"pathe\";\n//#region src/core/migrations/control-driver.ts\nvar SqliteControlDriver = class {\n\tdb;\n\tlocation;\n\tfamilyId = \"sql\";\n\ttargetId = \"sqlite\";\n\tconstructor(db, location) {\n\t\tthis.db = db;\n\t\tthis.location = location;\n\t}\n\tasync query(sql, params) {\n\t\ttry {\n\t\t\treturn { rows: blindCast(prepareExact(this.db, sql).all(...sqliteParams(params)).map(safeIntegersAsNumbers)) };\n\t\t} catch (error) {\n\t\t\tthrow normalizeSqliteError(error, wasClosedByDriver(this.db));\n\t\t}\n\t}\n\tasync databaseName() {\n\t\tif (this.location === \":memory:\" || this.location.length === 0) return;\n\t\tconst name = basename(this.location);\n\t\treturn name.length > 0 ? name : void 0;\n\t}\n\tasync close() {\n\t\tcloseDatabase(this.db);\n\t}\n};\n/** The file as a URI that SQLite opens for reading and writing, failing rather than creating it. */\nfunction existingFileOnly(pathOrMemory) {\n\tif (pathOrMemory === \":memory:\") return pathOrMemory;\n\tconst uri = pathToFileURL(pathOrMemory);\n\turi.searchParams.set(\"mode\", \"rw\");\n\treturn uri;\n}\nconst sqliteDriverDescriptor = {\n\t...sqliteDriverDescriptorMeta,\n\tasync create(pathOrMemory, options) {\n\t\ttry {\n\t\t\tconst db = new DatabaseSync(options?.existingDatabaseOnly === true ? existingFileOnly(pathOrMemory) : pathOrMemory);\n\t\t\tdb.exec(\"PRAGMA foreign_keys = ON\");\n\t\t\tdb.exec(\"PRAGMA busy_timeout = 5000\");\n\t\t\treturn new SqliteControlDriver(db, pathOrMemory);\n\t\t} catch (error) {\n\t\t\tthrow errorRuntime(\"DRIVER.CONNECTION_FAILED\", \"Database connection failed\", {\n\t\t\t\twhy: error instanceof Error ? error.message : String(error),\n\t\t\t\tfix: \"Verify the database file path exists and is accessible\",\n\t\t\t\tmeta: { path: pathOrMemory },\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t}\n};\n//#endregion\nexport { SqliteControlDriver, sqliteDriverDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;AAOA,IAAI,sBAAsB,MAAM;CAC/B;CACA;CACA,WAAW;CACX,WAAW;CACX,YAAY,IAAI,UAAU;EACzB,KAAK,KAAK;EACV,KAAK,WAAW;CACjB;CACA,MAAM,MAAM,KAAK,QAAQ;EACxB,IAAI;GACH,OAAO,EAAE,MAAM,UAAU,aAAa,KAAK,IAAI,GAAG,CAAC,CAAC,IAAI,GAAG,aAAa,MAAM,CAAC,CAAC,CAAC,IAAI,qBAAqB,CAAC,EAAE;EAC9G,SAAS,OAAO;GACf,MAAM,qBAAqB,OAAO,kBAAkB,KAAK,EAAE,CAAC;EAC7D;CACD;CACA,MAAM,eAAe;EACpB,IAAI,KAAK,aAAa,cAAc,KAAK,SAAS,WAAW,GAAG;EAChE,MAAM,OAAO,SAAS,KAAK,QAAQ;EACnC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK;CACtC;CACA,MAAM,QAAQ;EACb,cAAc,KAAK,EAAE;CACtB;AACD;;AAEA,SAAS,iBAAiB,cAAc;CACvC,IAAI,iBAAiB,YAAY,OAAO;CACxC,MAAM,MAAM,cAAc,YAAY;CACtC,IAAI,aAAa,IAAI,QAAQ,IAAI;CACjC,OAAO;AACR;AACA,MAAM,yBAAyB;CAC9B,GAAG;CACH,MAAM,OAAO,cAAc,SAAS;EACnC,IAAI;GACH,MAAM,KAAK,IAAI,aAAa,SAAS,yBAAyB,OAAO,iBAAiB,YAAY,IAAI,YAAY;GAClH,GAAG,KAAK,0BAA0B;GAClC,GAAG,KAAK,4BAA4B;GACpC,OAAO,IAAI,oBAAoB,IAAI,YAAY;EAChD,SAAS,OAAO;GACf,MAAM,aAAa,4BAA4B,8BAA8B;IAC5E,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;IAC1D,KAAK;IACL,MAAM,EAAE,MAAM,aAAa;IAC3B,OAAO;GACR,CAAC;EACF;CACD;AACD"}
@@ -1,4 +1,4 @@
1
- //#region ../../../3-targets/3-targets/sqlite/dist/control-tables.d.mts
1
+ //#region ../../../3-targets/sqlite/1-target/dist/control-tables.d.mts
2
2
  //#region src/core/control-tables.d.ts
3
3
  declare const MARKER_TABLE_NAME = "_prisma_marker";
4
4
  declare const LEDGER_TABLE_NAME = "_prisma_ledger";
@@ -9,4 +9,4 @@ declare const LEDGER_TABLE_NAME = "_prisma_ledger";
9
9
  declare const CONTROL_TABLE_NAMES: ReadonlySet<string>;
10
10
  //#endregion
11
11
  export { LEDGER_TABLE_NAME as n, MARKER_TABLE_NAME as r, CONTROL_TABLE_NAMES as t };
12
- //# sourceMappingURL=control-tables-Dua-YcJL.d.mts.map
12
+ //# sourceMappingURL=control-tables-DKXLHvMU.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-tables-DKXLHvMU.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/control-tables.d.mts"],"mappings":";;cACc;cACA;;;;;cAKA,qBAAqB"}
@@ -1,4 +1,4 @@
1
- //#region ../../../3-targets/3-targets/sqlite/dist/control-tables-D_o8dKRB.mjs
1
+ //#region ../../../3-targets/sqlite/1-target/dist/control-tables-D_o8dKRB.mjs
2
2
  const MARKER_TABLE_NAME = "_prisma_marker";
3
3
  const LEDGER_TABLE_NAME = "_prisma_ledger";
4
4
  /**
@@ -9,4 +9,4 @@ const CONTROL_TABLE_NAMES = /* @__PURE__ */ new Set([MARKER_TABLE_NAME, LEDGER_T
9
9
  //#endregion
10
10
  export { LEDGER_TABLE_NAME as n, MARKER_TABLE_NAME as r, CONTROL_TABLE_NAMES as t };
11
11
 
12
- //# sourceMappingURL=control-tables-D_o8dKRB-BXi43noL.mjs.map
12
+ //# sourceMappingURL=control-tables-D_o8dKRB-n_QqsXcm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-tables-D_o8dKRB-n_QqsXcm.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/control-tables-D_o8dKRB.mjs"],"sourcesContent":["//#region src/core/control-tables.ts\nconst MARKER_TABLE_NAME = \"_prisma_marker\";\nconst LEDGER_TABLE_NAME = \"_prisma_ledger\";\n/**\n* Control tables the runner creates/manages. The planner must not drop these\n* when reconciling \"extra\" tables against the contract.\n*/\nconst CONTROL_TABLE_NAMES = /* @__PURE__ */ new Set([MARKER_TABLE_NAME, LEDGER_TABLE_NAME]);\n//#endregion\nexport { LEDGER_TABLE_NAME as n, MARKER_TABLE_NAME as r, CONTROL_TABLE_NAMES as t };\n\n//# sourceMappingURL=control-tables-D_o8dKRB.mjs.map"],"mappings":";AACA,MAAM,oBAAoB;AAC1B,MAAM,oBAAoB;;;;;AAK1B,MAAM,sCAAsC,IAAI,IAAI,CAAC,mBAAmB,iBAAiB,CAAC"}