@prisma/orm-target-mysql 8.0.0-rc.23-dev.7 → 8.0.0-rc.23-dev.9

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 (226) hide show
  1. package/dist/adapter-D0qXT1lj.d.mts +57 -0
  2. package/dist/adapter-D0qXT1lj.d.mts.map +1 -0
  3. package/dist/adapter.d.mts +6 -6
  4. package/dist/adapter.mjs +3 -3
  5. package/dist/adapter__adapter.d.mts +2 -2
  6. package/dist/adapter__adapter.mjs +2 -2
  7. package/dist/adapter__codec-types.d.mts +2 -2
  8. package/dist/adapter__control.d.mts +2 -2
  9. package/dist/adapter__control.mjs +2 -2
  10. package/dist/adapter__runtime.d.mts +1 -1
  11. package/dist/adapter__runtime.mjs +19 -10
  12. package/dist/adapter__runtime.mjs.map +1 -1
  13. package/dist/{codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs → codec-descriptor-3xp1XvVH-DfPKpYeP.mjs} +2 -2
  14. package/dist/codec-descriptor-3xp1XvVH-DfPKpYeP.mjs.map +1 -0
  15. package/dist/codec-descriptor-BRcKIX3h.d.mts +2 -0
  16. package/dist/{codec-descriptor-DXyubAS6-siA0R8Ow.d.mts → codec-descriptor-DXyubAS6-XDBj6Yet.d.mts} +2 -2
  17. package/dist/codec-descriptor-DXyubAS6-XDBj6Yet.d.mts.map +1 -0
  18. package/dist/codec-descriptor-J3TP08l8-BmdgkIU6.d.mts +1 -0
  19. package/dist/{codec-ids-CrR9Xi7r-CarpqbNM.mjs → codec-ids-CrR9Xi7r-CjbGCS3o.mjs} +2 -2
  20. package/dist/codec-ids-CrR9Xi7r-CjbGCS3o.mjs.map +1 -0
  21. package/dist/{codec-ids-Dgh5IpML-76oBMuwK.d.mts → codec-ids-Dgh5IpML-DGXIq6j8.d.mts} +2 -2
  22. package/dist/codec-ids-Dgh5IpML-DGXIq6j8.d.mts.map +1 -0
  23. package/dist/codec-types-BS-lWfda.d.mts +1 -0
  24. package/dist/{codec-types-Bai_CFkk-Blx2GxCH.d.mts → codec-types-Bai_CFkk-DmZ74URd.d.mts} +5 -5
  25. package/dist/codec-types-Bai_CFkk-DmZ74URd.d.mts.map +1 -0
  26. package/dist/codec-types-Dk2h5dBB.d.mts +1 -0
  27. package/dist/{codecs-BMidk26M-DsKq6wt5.d.mts → codecs-BMidk26M-B_iWNti6.d.mts} +5 -5
  28. package/dist/codecs-BMidk26M-B_iWNti6.d.mts.map +1 -0
  29. package/dist/{codecs-C_twedMx.d.mts → codecs-CIJRyUd3.d.mts} +4 -4
  30. package/dist/codecs-CIJRyUd3.d.mts.map +1 -0
  31. package/dist/{codecs-BfiB79-5.mjs → codecs-wVJlFapM.mjs} +7 -7
  32. package/dist/codecs-wVJlFapM.mjs.map +1 -0
  33. package/dist/{contract-free-Cw9Mjcro.d.mts → contract-free-BnJBWENn.d.mts} +3 -3
  34. package/dist/contract-free-BnJBWENn.d.mts.map +1 -0
  35. package/dist/{contract-free-BvCdx_Ee.mjs → contract-free-DekbHRyr.mjs} +4 -4
  36. package/dist/contract-free-DekbHRyr.mjs.map +1 -0
  37. package/dist/control-BBuy6yt5.mjs +73 -0
  38. package/dist/control-BBuy6yt5.mjs.map +1 -0
  39. package/dist/control-BiZaCqna.mjs +89 -0
  40. package/dist/control-BiZaCqna.mjs.map +1 -0
  41. package/dist/{control-BBhWaGnH.mjs → control-CyGJDPay.mjs} +102 -77
  42. package/dist/control-CyGJDPay.mjs.map +1 -0
  43. package/dist/control-D7_IpeiU.d.mts +31 -0
  44. package/dist/control-D7_IpeiU.d.mts.map +1 -0
  45. package/dist/{control-BvSM7mGR.d.mts → control-Dj8nIA1M.d.mts} +13 -4
  46. package/dist/control-Dj8nIA1M.d.mts.map +1 -0
  47. package/dist/{control-MoPFgSaQ.d.mts → control-WNuLF2Wh.d.mts} +29 -56
  48. package/dist/control-WNuLF2Wh.d.mts.map +1 -0
  49. package/dist/{control-tables-CHw2F-rg.d.mts → control-tables-CWJyQ3dZ.d.mts} +2 -2
  50. package/dist/control-tables-CWJyQ3dZ.d.mts.map +1 -0
  51. package/dist/{control-tables-CcQ77JE7-CxTQYoQJ.mjs → control-tables-CcQ77JE7-DKb3ubVU.mjs} +2 -2
  52. package/dist/control-tables-CcQ77JE7-DKb3ubVU.mjs.map +1 -0
  53. package/dist/{data-type-entries-C7VH2IHc-D1d5I8zF.mjs → data-type-entries-C7VH2IHc-DM6TbTaz.mjs} +3 -3
  54. package/dist/data-type-entries-C7VH2IHc-DM6TbTaz.mjs.map +1 -0
  55. package/dist/{data-types-C-rfxpgB.d.mts → data-types-65iVc7q1.d.mts} +3 -3
  56. package/dist/data-types-65iVc7q1.d.mts.map +1 -0
  57. package/dist/{data-types-D2HAT-Qf-CRI506c0.d.mts → data-types-D2HAT-Qf-CSdDz1Pk.d.mts} +2 -2
  58. package/dist/data-types-D2HAT-Qf-CSdDz1Pk.d.mts.map +1 -0
  59. package/dist/{data-types-DOaaPS93-DBkMJyh1.mjs → data-types-DOaaPS93-lycGybNk.mjs} +4 -4
  60. package/dist/data-types-DOaaPS93-lycGybNk.mjs.map +1 -0
  61. package/dist/{date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs → date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs} +4 -4
  62. package/dist/date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs.map +1 -0
  63. package/dist/ddl-Bobm-S7I.d.mts +1 -0
  64. package/dist/{ddl-DDmMHyA_-Bb8sXoS0.mjs → ddl-DDmMHyA_-grdUmU3J.mjs} +3 -3
  65. package/dist/ddl-DDmMHyA_-grdUmU3J.mjs.map +1 -0
  66. package/dist/{default-normalizer-C8pc7SbL-CKgOEnGl.mjs → default-normalizer-C8pc7SbL-BXd70q02.mjs} +3 -3
  67. package/dist/default-normalizer-C8pc7SbL-BXd70q02.mjs.map +1 -0
  68. package/dist/{default-normalizer-CGIwQiKB.d.mts → default-normalizer-D-8Ii0df.d.mts} +2 -2
  69. package/dist/default-normalizer-D-8Ii0df.d.mts.map +1 -0
  70. package/dist/{descriptor-meta-CsMPRsxp-DhK87vlc.mjs → descriptor-meta-CsMPRsxp-QVV7vNY8.mjs} +6 -6
  71. package/dist/descriptor-meta-CsMPRsxp-QVV7vNY8.mjs.map +1 -0
  72. package/dist/descriptor-meta-pVdZBI-g-BJN4T_on.mjs +32 -0
  73. package/dist/descriptor-meta-pVdZBI-g-BJN4T_on.mjs.map +1 -0
  74. package/dist/driver.d.mts +3 -3
  75. package/dist/driver.mjs +3 -2
  76. package/dist/driver__control.d.mts +2 -2
  77. package/dist/driver__control.mjs +2 -2
  78. package/dist/driver__runtime.d.mts +2 -2
  79. package/dist/driver__runtime.mjs +2 -564
  80. package/dist/{errors-Cng94tYg-D02Eud2d.mjs → errors-Cng94tYg-DTH51xWG.mjs} +2 -2
  81. package/dist/errors-Cng94tYg-DTH51xWG.mjs.map +1 -0
  82. package/dist/{errors-DfrC_yfG.d.mts → errors-DjCkC9IM.d.mts} +2 -2
  83. package/dist/errors-DjCkC9IM.d.mts.map +1 -0
  84. package/dist/{marker-lock-Bwew7cAs-CZ20Y_tA.mjs → marker-lock-Bwew7cAs-ElLxlCQp.mjs} +3 -3
  85. package/dist/marker-lock-Bwew7cAs-ElLxlCQp.mjs.map +1 -0
  86. package/dist/{marker-lock-su6IxinO.d.mts → marker-lock-Px2qK06F.d.mts} +2 -2
  87. package/dist/marker-lock-Px2qK06F.d.mts.map +1 -0
  88. package/dist/{marker-read-Cf80LSbG-CUp3v1e5.mjs → marker-read-D1hp62hF-3-4fEgDD.mjs} +6 -23
  89. package/dist/marker-read-D1hp62hF-3-4fEgDD.mjs.map +1 -0
  90. package/dist/{migration-DmlblTTw.d.mts → migration-DILkj7kB.d.mts} +41 -29
  91. package/dist/migration-DILkj7kB.d.mts.map +1 -0
  92. package/dist/{mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs → mysql-contract-serializer-BnTKRSsN-BnV7fdYd.mjs} +4 -4
  93. package/dist/mysql-contract-serializer-BnTKRSsN-BnV7fdYd.mjs.map +1 -0
  94. package/dist/{mysql-database-CHl9-oSL-CWZLDXt6.mjs → mysql-database-CHl9-oSL-B1arvq6Q.mjs} +5 -5
  95. package/dist/mysql-database-CHl9-oSL-B1arvq6Q.mjs.map +1 -0
  96. package/dist/{nodes-CvcX47ot-B-ZaUYRj.mjs → nodes-CvcX47ot-CcCy0Oh4.mjs} +2 -2
  97. package/dist/nodes-CvcX47ot-CcCy0Oh4.mjs.map +1 -0
  98. package/dist/{nodes-xc0cR0_c-2YbhgEjb.d.mts → nodes-xc0cR0_c-CLET35o0.d.mts} +2 -2
  99. package/dist/nodes-xc0cR0_c-CLET35o0.d.mts.map +1 -0
  100. package/dist/{now-expression-DVD18CUc-00buJUto.mjs → now-expression-DVD18CUc-DJqdZY96.mjs} +3 -3
  101. package/dist/now-expression-DVD18CUc-DJqdZY96.mjs.map +1 -0
  102. package/dist/{pack-BXvLVBWP.d.mts → pack-COnjX17N.d.mts} +6 -6
  103. package/dist/pack-COnjX17N.d.mts.map +1 -0
  104. package/dist/{planner-target-details-D6g2uSp--C5NKHmCc.d.mts → planner-target-details-D6g2uSp--6VJKSGxe.d.mts} +2 -2
  105. package/dist/planner-target-details-D6g2uSp--6VJKSGxe.d.mts.map +1 -0
  106. package/dist/{require-temporal-DeDQhbTn-Bxc65WbA.mjs → require-temporal-DeDQhbTn-CdpjEWCB.mjs} +3 -3
  107. package/dist/require-temporal-DeDQhbTn-CdpjEWCB.mjs.map +1 -0
  108. package/dist/{runner-C39AEe6--BVG3xPYw.mjs → runner-BIjAWX-E-BgTmrD8f.mjs} +146 -124
  109. package/dist/runner-BIjAWX-E-BgTmrD8f.mjs.map +1 -0
  110. package/dist/runtime-BGF0cSIt.mjs +569 -0
  111. package/dist/runtime-BGF0cSIt.mjs.map +1 -0
  112. package/dist/{runtime-ClRDfPiY.d.mts → runtime-Cm-T3hbP.d.mts} +4 -4
  113. package/dist/runtime-Cm-T3hbP.d.mts.map +1 -0
  114. package/dist/{runtime-BGyTXcQH.d.mts → runtime-DN20lWEg.d.mts} +7 -5
  115. package/dist/runtime-DN20lWEg.d.mts.map +1 -0
  116. package/dist/{runtime-CrB5DXx4.d.mts → runtime-sPIp-JgC.d.mts} +2 -2
  117. package/dist/runtime-sPIp-JgC.d.mts.map +1 -0
  118. package/dist/{sql-utils-bD4SfgX0.mjs → sql-utils-BE8tDXHs.mjs} +3 -3
  119. package/dist/sql-utils-BE8tDXHs.mjs.map +1 -0
  120. package/dist/{sql-utils-Cmv_TVa8-BetrIUcj.mjs → sql-utils-Cmv_TVa8-CNW3UmfQ.mjs} +3 -3
  121. package/dist/sql-utils-Cmv_TVa8-CNW3UmfQ.mjs.map +1 -0
  122. package/dist/{sql-utils-BOS1c2QT.d.mts → sql-utils-DBvre8Ar.d.mts} +2 -2
  123. package/dist/sql-utils-DBvre8Ar.d.mts.map +1 -0
  124. package/dist/{statement-DC62oiSx-Buzptbpk.mjs → statement-CT5tB4uX-CHqHFM3z.mjs} +17 -14
  125. package/dist/statement-CT5tB4uX-CHqHFM3z.mjs.map +1 -0
  126. package/dist/target.d.mts +24 -24
  127. package/dist/target.mjs +22 -21
  128. package/dist/target__codec-descriptor.d.mts +2 -2
  129. package/dist/target__codec-descriptor.mjs +1 -1
  130. package/dist/target__codec-ids.d.mts +1 -1
  131. package/dist/target__codec-ids.mjs +1 -1
  132. package/dist/target__codec-types.d.mts +2 -2
  133. package/dist/target__codecs.d.mts +2 -2
  134. package/dist/target__codecs.mjs +2 -2
  135. package/dist/target__contract-free.d.mts +1 -1
  136. package/dist/target__contract-free.mjs +2 -2
  137. package/dist/target__control-tables.d.mts +1 -1
  138. package/dist/target__control-tables.mjs +1 -1
  139. package/dist/target__control.d.mts +3 -3
  140. package/dist/target__control.mjs +3 -64
  141. package/dist/target__data-types.d.mts +2 -2
  142. package/dist/target__data-types.mjs +2 -2
  143. package/dist/target__ddl.d.mts +2 -2
  144. package/dist/target__ddl.mjs +1 -1
  145. package/dist/target__default-normalizer.d.mts +1 -1
  146. package/dist/target__default-normalizer.mjs +1 -1
  147. package/dist/target__errors.d.mts +1 -1
  148. package/dist/target__errors.mjs +1 -1
  149. package/dist/target__marker-lock.d.mts +1 -1
  150. package/dist/target__marker-lock.mjs +1 -1
  151. package/dist/target__migration.d.mts +2 -2
  152. package/dist/target__migration.mjs +2 -2
  153. package/dist/target__pack.d.mts +1 -1
  154. package/dist/target__pack.mjs +1 -1
  155. package/dist/target__runtime.d.mts +1 -1
  156. package/dist/target__runtime.mjs +3 -3
  157. package/dist/target__runtime.mjs.map +1 -1
  158. package/dist/target__sql-utils.d.mts +1 -1
  159. package/dist/target__sql-utils.mjs +2 -2
  160. package/dist/target__types.d.mts +1 -1
  161. package/dist/target__types.mjs +1 -1
  162. package/dist/{types-CgrFHUdk.d.mts → types-gXYDzQXs.d.mts} +2 -2
  163. package/dist/types-gXYDzQXs.d.mts.map +1 -0
  164. package/package.json +10 -10
  165. package/dist/adapter-Dl4Wwz1I.d.mts +0 -29
  166. package/dist/adapter-Dl4Wwz1I.d.mts.map +0 -1
  167. package/dist/codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs.map +0 -1
  168. package/dist/codec-descriptor-DXyubAS6-siA0R8Ow.d.mts.map +0 -1
  169. package/dist/codec-descriptor-J3TP08l8-ekLvUVxW.d.mts +0 -1
  170. package/dist/codec-descriptor-oLRh9E29.d.mts +0 -2
  171. package/dist/codec-ids-CrR9Xi7r-CarpqbNM.mjs.map +0 -1
  172. package/dist/codec-ids-Dgh5IpML-76oBMuwK.d.mts.map +0 -1
  173. package/dist/codec-types-BH5moCD9.d.mts +0 -1
  174. package/dist/codec-types-Bai_CFkk-Blx2GxCH.d.mts.map +0 -1
  175. package/dist/codec-types-zzVcrnbk.d.mts +0 -1
  176. package/dist/codecs-BMidk26M-DsKq6wt5.d.mts.map +0 -1
  177. package/dist/codecs-BfiB79-5.mjs.map +0 -1
  178. package/dist/codecs-C_twedMx.d.mts.map +0 -1
  179. package/dist/contract-contributions-ChiX6W0F-CAng98bZ.mjs +0 -15
  180. package/dist/contract-contributions-ChiX6W0F-CAng98bZ.mjs.map +0 -1
  181. package/dist/contract-free-BvCdx_Ee.mjs.map +0 -1
  182. package/dist/contract-free-Cw9Mjcro.d.mts.map +0 -1
  183. package/dist/control-5eVF1TXc.mjs +0 -74
  184. package/dist/control-5eVF1TXc.mjs.map +0 -1
  185. package/dist/control-BBhWaGnH.mjs.map +0 -1
  186. package/dist/control-BvSM7mGR.d.mts.map +0 -1
  187. package/dist/control-DHkZbo58.d.mts +0 -25
  188. package/dist/control-DHkZbo58.d.mts.map +0 -1
  189. package/dist/control-MoPFgSaQ.d.mts.map +0 -1
  190. package/dist/control-tables-CHw2F-rg.d.mts.map +0 -1
  191. package/dist/control-tables-CcQ77JE7-CxTQYoQJ.mjs.map +0 -1
  192. package/dist/data-type-entries-C7VH2IHc-D1d5I8zF.mjs.map +0 -1
  193. package/dist/data-types-C-rfxpgB.d.mts.map +0 -1
  194. package/dist/data-types-D2HAT-Qf-CRI506c0.d.mts.map +0 -1
  195. package/dist/data-types-DOaaPS93-DBkMJyh1.mjs.map +0 -1
  196. package/dist/date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs.map +0 -1
  197. package/dist/ddl-CT6DPEqg.d.mts +0 -1
  198. package/dist/ddl-DDmMHyA_-Bb8sXoS0.mjs.map +0 -1
  199. package/dist/default-normalizer-C8pc7SbL-CKgOEnGl.mjs.map +0 -1
  200. package/dist/default-normalizer-CGIwQiKB.d.mts.map +0 -1
  201. package/dist/descriptor-meta-CsMPRsxp-DhK87vlc.mjs.map +0 -1
  202. package/dist/driver__runtime.mjs.map +0 -1
  203. package/dist/errors-Cng94tYg-D02Eud2d.mjs.map +0 -1
  204. package/dist/errors-DfrC_yfG.d.mts.map +0 -1
  205. package/dist/marker-lock-Bwew7cAs-CZ20Y_tA.mjs.map +0 -1
  206. package/dist/marker-lock-su6IxinO.d.mts.map +0 -1
  207. package/dist/marker-read-Cf80LSbG-CUp3v1e5.mjs.map +0 -1
  208. package/dist/migration-DmlblTTw.d.mts.map +0 -1
  209. package/dist/mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs.map +0 -1
  210. package/dist/mysql-database-CHl9-oSL-CWZLDXt6.mjs.map +0 -1
  211. package/dist/nodes-CvcX47ot-B-ZaUYRj.mjs.map +0 -1
  212. package/dist/nodes-xc0cR0_c-2YbhgEjb.d.mts.map +0 -1
  213. package/dist/now-expression-DVD18CUc-00buJUto.mjs.map +0 -1
  214. package/dist/pack-BXvLVBWP.d.mts.map +0 -1
  215. package/dist/planner-target-details-D6g2uSp--C5NKHmCc.d.mts.map +0 -1
  216. package/dist/require-temporal-DeDQhbTn-Bxc65WbA.mjs.map +0 -1
  217. package/dist/runner-C39AEe6--BVG3xPYw.mjs.map +0 -1
  218. package/dist/runtime-BGyTXcQH.d.mts.map +0 -1
  219. package/dist/runtime-ClRDfPiY.d.mts.map +0 -1
  220. package/dist/runtime-CrB5DXx4.d.mts.map +0 -1
  221. package/dist/sql-utils-BOS1c2QT.d.mts.map +0 -1
  222. package/dist/sql-utils-Cmv_TVa8-BetrIUcj.mjs.map +0 -1
  223. package/dist/sql-utils-bD4SfgX0.mjs.map +0 -1
  224. package/dist/statement-DC62oiSx-Buzptbpk.mjs.map +0 -1
  225. package/dist/target__control.mjs.map +0 -1
  226. package/dist/types-CgrFHUdk.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-65iVc7q1.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/data-types.d.mts"],"mappings":";;;;iBAGiB,wBAAwB,SAAS,eAAe"}
@@ -1,5 +1,5 @@
1
1
  import { DataType, DataTypeId } from "@prisma/orm-framework/components/codec";
2
- //#region ../../../3-targets/mysql/1-target/dist/data-types-D2HAT-Qf.d.mts
2
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/data-types-D2HAT-Qf.d.mts
3
3
  //#region src/core/data-types.d.ts
4
4
  declare const mysqlText: import("@prisma/orm-family-sql/contract/data-type").SqlDataType<Readonly<Record<string, unknown>>>;
5
5
  /** A signed 32-bit integer, stored as a JSON number. */
@@ -85,4 +85,4 @@ declare const mysqlDataTypes: readonly DataType[];
85
85
  declare const mysqlTextDataTypes: readonly DataTypeId[];
86
86
  //#endregion
87
87
  export { mysqlTimestampText as C, renderMysqlEnumType as E, mysqlTimestamp as S, mysqlVarcharParams as T, mysqlInt as _, mysqlCharParams as a, mysqlTime as b, mysqlDateText as c, mysqlDatetimeText as d, mysqlDuration as f, mysqlEnumParams as g, mysqlEnum as h, mysqlChar as i, mysqlDatetime as l, mysqlDurationText as m, MYSQL_TIMESTAMP_RANGE as n, mysqlDataTypes as o, mysqlDurationParams as p, mysqlBigint as r, mysqlDate as s, MYSQL_DATETIME_RANGE as t, mysqlDatetimeParams as u, mysqlText as v, mysqlVarchar as w, mysqlTimeText as x, mysqlTextDataTypes as y };
88
- //# sourceMappingURL=data-types-D2HAT-Qf-CRI506c0.d.mts.map
88
+ //# sourceMappingURL=data-types-D2HAT-Qf-CSdDz1Pk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-D2HAT-Qf-CSdDz1Pk.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/data-types-D2HAT-Qf.d.mts"],"mappings":";;;cAEc,sDAAsD,YAAY,SAAS;;cAE3E,qDAAqD,YAAY,SAAS;;cAE1E,wDAAwD,YAAY,SAAS;;cAE7E,kEAAkE;EAC9E;;cAEY,yDAAyD;EACrE;;;cAGY,+DAA+D;EAC3E;;cAEY,sDAAsD;EAClE;;;cAGY,mEAAmE;EAC/E;;;cAGY;WACH;WACA;;;cAGG;WACH;WACA;;;;;iBAKM,kBAAkB;;;;iBAIlB,mBAAmB;;iBAEnB,cAAc;;;;iBAId,cAAc;;iBAEd,kBAAkB;cACrB,0DAA0D;EACtE;;;cAGY,2DAA2D;EACvE;;cAEY,sDAAsD,YAAY,SAAS;cAC3E,sDAAsD;EAClE;;;cAGY,mEAAmE;EAC/E;;;cAGY,0DAA0D,YAAY,SAAS;;cAE/E,+DAA+D;EAC3E;;;iBAGe,oBAAoB;;;;cAIvB,sDAAsD;EAClE;;;cAGY,yBAAyB;;cAEzB,6BAA6B"}
@@ -1,12 +1,12 @@
1
- import { s as mysqlError } from "./errors-Cng94tYg-D02Eud2d.mjs";
2
- import { r as quoteLiteral } from "./sql-utils-Cmv_TVa8-BetrIUcj.mjs";
1
+ import { s as mysqlError } from "./errors-Cng94tYg-DTH51xWG.mjs";
2
+ import { r as quoteLiteral } from "./sql-utils-Cmv_TVa8-CNW3UmfQ.mjs";
3
3
  import { INT32_RANGE, INT64_RANGE, dateTimeStoredText, numeralText, readJsonInteger, readJsonIntegerText, readJsonString, refuseJsonValue } from "@prisma/orm-framework/components/codec";
4
4
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
6
6
  import { sqlDataType, sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
7
7
  import { ISO_DURATION_AS_WRITTEN } from "@prisma/orm-framework/type-implementations/duration";
8
8
  import { type } from "arktype";
9
- //#region ../../../3-targets/mysql/1-target/dist/data-types-DOaaPS93.mjs
9
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/data-types-DOaaPS93.mjs
10
10
  const unchanged = (value) => value;
11
11
  function wrongShape(value, expected) {
12
12
  throw structuredError("CONTRACT.CAST_REFUSED", `Expected ${expected}, got ${JSON.stringify(value)}.`, {
@@ -286,4 +286,4 @@ const mysqlTextDataTypes = [
286
286
  //#endregion
287
287
  export { mysqlTimestampText as C, renderMysqlEnumType as E, mysqlTimestamp as S, mysqlVarcharParams as T, mysqlInt as _, mysqlCharParams as a, mysqlTime as b, mysqlDateText as c, mysqlDatetimeText as d, mysqlDuration as f, mysqlEnumParams as g, mysqlEnum as h, mysqlChar as i, mysqlDatetime as l, mysqlDurationText as m, MYSQL_TIMESTAMP_RANGE as n, mysqlDataTypes as o, mysqlDurationParams as p, mysqlBigint as r, mysqlDate as s, MYSQL_DATETIME_RANGE as t, mysqlDatetimeParams as u, mysqlText as v, mysqlVarchar as w, mysqlTimeText as x, mysqlTextDataTypes as y };
288
288
 
289
- //# sourceMappingURL=data-types-DOaaPS93-DBkMJyh1.mjs.map
289
+ //# sourceMappingURL=data-types-DOaaPS93-lycGybNk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-DOaaPS93-lycGybNk.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/data-types-DOaaPS93.mjs"],"sourcesContent":["import { s as mysqlError } from \"./errors-Cng94tYg.mjs\";\nimport { r as quoteLiteral } from \"./sql-utils-Cmv_TVa8.mjs\";\nimport { INT32_RANGE, INT64_RANGE, dateTimeStoredText, numeralText, readJsonInteger, readJsonIntegerText, readJsonString, refuseJsonValue } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { sqlDataType, sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { ISO_DURATION_AS_WRITTEN } from \"@internal/type-implementations/duration\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { type } from \"arktype\";\n//#region src/core/data-types.ts\nconst unchanged = (value) => value;\nfunction wrongShape(value, expected) {\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `Expected ${expected}, got ${JSON.stringify(value)}.`, {\n\t\twhy: \"A cast reads the stored form of the type it takes values of.\",\n\t\tfix: \"Hand the cast a value in the shape its source type stores.\"\n\t});\n}\nconst asNumeralText = (value) => typeof value === \"number\" ? numeralText(value) : wrongShape(value, \"a number\");\nfunction integerParam(params, name) {\n\tconst value = params[name];\n\treturn typeof value === \"number\" ? value : void 0;\n}\n/** Text of at most `length` characters, counted as code points, as MySQL counts characters. */\nfunction readTextOfLength(owner, json, length) {\n\tconst text = readJsonString(owner, json);\n\tif (length !== void 0 && [...text].length > length) return refuseJsonValue(owner, `a string of at most ${length} ${length === 1 ? \"character\" : \"characters\"}`, json);\n\treturn json;\n}\nconst mysqlText = sqlDataType(\"mysql/text\", {\n\ttexts: [{\n\t\ttext: \"text\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => readJsonString(\"mysql/text\", json),\n\tcasts: {}\n});\nconst fromText = { [mysqlText.id]: unchanged };\n/** A signed 32-bit integer, stored as a JSON number. */\nconst mysqlInt = sqlDataType(\"mysql/int\", {\n\ttexts: [{\n\t\ttext: \"int\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}, { text: \"integer\" }],\n\tread: (json) => readJsonInteger(\"mysql/int\", json, INT32_RANGE),\n\tcasts: {}\n});\n/** A signed 64-bit integer, stored as digit text so that no digit is lost. */\nconst mysqlBigint = sqlDataType(\"mysql/bigint\", {\n\ttexts: [{\n\t\ttext: \"bigint\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => {\n\t\treadJsonIntegerText(\"mysql/bigint\", json, INT64_RANGE);\n\t\treturn json;\n\t},\n\tcasts: { [mysqlInt.id]: asNumeralText }\n});\n/** The length of `varchar`, which MySQL requires, up to the largest it accepts. */\nconst mysqlVarcharParams = type({ length: \"number.integer >= 1 & number.integer <= 65535\" });\nconst mysqlVarchar = sqlDataType(\"mysql/varchar\", {\n\tparams: mysqlVarcharParams,\n\ttexts: [{\n\t\ttext: \"varchar({length})\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json, params) => readTextOfLength(\"mysql/varchar\", json, integerParam(params, \"length\")),\n\tcasts: fromText\n});\n/** The length of `char`, at most 255; a bare `char` is `char(1)`. */\nconst mysqlCharParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 255\" });\nconst mysqlChar = sqlDataType(\"mysql/char\", {\n\tparams: mysqlCharParams,\n\ttexts: [{\n\t\ttext: \"char\",\n\t\twritten: true\n\t}, {\n\t\ttext: \"char({length})\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json, params) => readTextOfLength(\"mysql/char\", json, integerParam(params, \"length\") ?? 1),\n\tnormalize: (params) => params.length === void 0 ? {\n\t\t...params,\n\t\tlength: 1\n\t} : params,\n\tcasts: fromText\n});\n/** The fractional-second precision of `datetime`, `timestamp` and `time`, 0 to 6; MySQL prints a precision of 0 as the bare type. */\nconst mysqlDatetimeParams = type({ \"precision?\": \"number.integer >= 0 & number.integer <= 6\" });\n/** The years MySQL holds in a `datetime` and a `date`. */\nconst MYSQL_DATETIME_RANGE = {\n\tearliest: \"1000-01-01T00:00:00\",\n\tlatest: \"9999-12-31T23:59:59.999999\"\n};\n/** The instants MySQL holds in a `timestamp`, in UTC. */\nconst MYSQL_TIMESTAMP_RANGE = {\n\tearliest: \"1970-01-01T00:00:01\",\n\tlatest: \"2038-01-19T03:14:07.999999\"\n};\nconst MYSQL_DATE_RANGE = {\n\tearliest: \"1000-01-01\",\n\tlatest: \"9999-12-31\"\n};\n/**\n* The value of `mysql/datetime`: a date and time without a time zone, ISO 8601 text with a `T` and no trailing zeros in the fraction, within MySQL's range. Throws `CONTRACT.CAST_REFUSED` for text that names no such date and time.\n*/\nfunction mysqlDatetimeText(text) {\n\treturn dateTimeStoredText(text, {\n\t\tshape: \"dateTime\",\n\t\townerId: \"mysql/datetime\",\n\t\trange: MYSQL_DATETIME_RANGE\n\t});\n}\n/**\n* The value of `mysql/timestamp`: the UTC date and time of an instant from 1970-01-01T00:00:01 to 2038-01-19T03:14:07.999999, in the form `mysql/datetime` stores. Throws `CONTRACT.CAST_REFUSED` for text that names no such date and time.\n*/\nfunction mysqlTimestampText(text) {\n\treturn dateTimeStoredText(text, {\n\t\tshape: \"dateTime\",\n\t\townerId: \"mysql/timestamp\",\n\t\trange: MYSQL_TIMESTAMP_RANGE\n\t});\n}\n/** The value of `mysql/date`: a calendar date as ISO 8601 text, `2024-02-29`, in the years 1000 to 9999. Throws `CONTRACT.CAST_REFUSED` for other text. */\nfunction mysqlDateText(text) {\n\treturn dateTimeStoredText(text, {\n\t\tshape: \"date\",\n\t\townerId: \"mysql/date\",\n\t\trange: MYSQL_DATE_RANGE\n\t});\n}\n/**\n* The value of `mysql/time`: a time of day from 00:00:00 to 23:59:59.999999, ISO 8601 text with no trailing zeros in the fraction. MySQL's `time` also holds a negative time and hours past 23, which name no time of day, so they are refused. Throws `CONTRACT.CAST_REFUSED` for other text.\n*/\nfunction mysqlTimeText(text) {\n\treturn dateTimeStoredText(text, {\n\t\tshape: \"time\",\n\t\townerId: \"mysql/time\"\n\t});\n}\n/** The value of `mysql/duration`: an ISO 8601 duration, stored as written. Throws `CONTRACT.CAST_REFUSED` for other text. */\nfunction mysqlDurationText(text) {\n\tif (ISO_DURATION_AS_WRITTEN.test(text)) return text;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `mysql/duration cannot read \"${text}\". Write an ISO 8601 duration, as in \"PT1H30M\".`, {\n\t\twhy: \"mysql/duration holds an ISO 8601 duration as Temporal.Duration writes it: an optional sign, P, then years, months, weeks and days, then T and hours, minutes and seconds. A sign on each component instead is read too.\",\n\t\tfix: \"Write the duration in ISO 8601, as in \\\"P1Y2M3DT4H5M6.5S\\\".\"\n\t});\n}\n/** What `stored` writes for `text`, or `undefined` when `stored` refuses it. */\nfunction storedOrUndefined(stored, text) {\n\ttry {\n\t\treturn stored(text);\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction readStored(id, stored, expected) {\n\treturn (json) => typeof json === \"string\" && storedOrUndefined(stored, json) !== void 0 ? json : refuseJsonValue(id, expected, json);\n}\nfunction spellStored(stored) {\n\treturn (json) => typeof json === \"string\" ? storedOrUndefined(stored, json) ?? json : json;\n}\nconst withoutZeroPrecision = ({ precision, ...rest }) => precision === 0 ? rest : {\n\t...rest,\n\t...ifDefined(\"precision\", precision)\n};\nconst mysqlDatetime = sqlDataType(\"mysql/datetime\", {\n\tparams: mysqlDatetimeParams,\n\ttexts: [{\n\t\ttext: \"datetime\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}, {\n\t\ttext: \"datetime({precision})\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: readStored(\"mysql/datetime\", mysqlDatetimeText, \"ISO 8601 date and time text without a UTC offset, as in \\\"2024-01-01T00:00:00\\\"\"),\n\tspell: spellStored(mysqlDatetimeText),\n\tnormalize: withoutZeroPrecision,\n\tcasts: {}\n});\n/** An instant from 1970 to 2038, which MySQL converts between the session's time zone and UTC; every session runs in UTC. */\nconst mysqlTimestamp = sqlDataType(\"mysql/timestamp\", {\n\tparams: mysqlDatetimeParams,\n\ttexts: [{\n\t\ttext: \"timestamp\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}, {\n\t\ttext: \"timestamp({precision})\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: readStored(\"mysql/timestamp\", mysqlTimestampText, \"ISO 8601 date and time text in UTC without a UTC offset, from 1970-01-01T00:00:01 to 2038-01-19T03:14:07.999999\"),\n\tspell: spellStored(mysqlTimestampText),\n\tnormalize: withoutZeroPrecision,\n\tcasts: {}\n});\nconst mysqlDate = sqlDataType(\"mysql/date\", {\n\ttexts: [{\n\t\ttext: \"date\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: readStored(\"mysql/date\", mysqlDateText, \"ISO 8601 date text, as in \\\"2024-02-29\\\"\"),\n\tspell: spellStored(mysqlDateText),\n\tcasts: {}\n});\nconst mysqlTime = sqlDataType(\"mysql/time\", {\n\tparams: mysqlDatetimeParams,\n\ttexts: [{\n\t\ttext: \"time\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}, {\n\t\ttext: \"time({precision})\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: readStored(\"mysql/time\", mysqlTimeText, \"ISO 8601 time of day text from 00:00:00 to 23:59:59.999999, as in \\\"09:30:00\\\"\"),\n\tspell: spellStored(mysqlTimeText),\n\tnormalize: withoutZeroPrecision,\n\tcasts: {}\n});\n/** The length of the `varchar` a duration column is stored in. A codec reference with none, as a raw parameter writes, reads and writes the same values. */\nconst mysqlDurationParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 65535\" });\n/** A length of time, stored in a `varchar` column as the ISO 8601 duration it was written as, `PT1H30M`, so that MySQL can index it. MySQL has no interval type, and equal durations can be written differently, `P1D` and `PT24H`, so a duration keeps its spelling. ADR 315. */\nconst mysqlDuration = sqlDataType(\"mysql/duration\", {\n\tstoredAs: mysqlVarchar.id,\n\tread: readStored(\"mysql/duration\", mysqlDurationText, \"an ISO 8601 duration, as in \\\"PT1H30M\\\"\"),\n\tcasts: {}\n});\n/** The members of a native enum column, in the order they are declared. */\nconst mysqlEnumParams = type({ \"values?\": \"string[]\" });\n/** `enum('A','B')`, the text MySQL's catalog prints for the column type, with each member a quoted literal. */\nfunction renderMysqlEnumType(values) {\n\tif (values === void 0 || values.length === 0) throw mysqlError(\"CONTRACT.TYPE_PARAMS_INVALID\", \"A MySQL enum column type needs at least one member.\", {\n\t\twhy: \"A native enum column is written with its members, and this column has none.\",\n\t\tfix: \"Type the column with a PSL enum or an enumType() that declares its members.\",\n\t\tmeta: { dataType: \"mysql/enum\" }\n\t});\n\treturn `enum(${values.map(quoteLiteral).join(\",\")})`;\n}\nconst readEnumMember = (json, params) => {\n\tconst member = readJsonString(\"mysql/enum\", json);\n\tconst values = params[\"values\"];\n\tif (Array.isArray(values) && !values.includes(member)) return refuseJsonValue(\"mysql/enum\", `one of the members ${values.join(\", \")}`, json);\n\treturn json;\n};\n/**\n* A native MySQL enum. Its name is the catalog text `enum('A','B')`, so `db verify` compares the members and their order with what MySQL reports (ADR 273). A column's members are its value set's, written into its parameters by the target's namespace (see `mysql-database.ts`).\n*/\nconst mysqlEnum = sqlDataType(\"mysql/enum\", {\n\tparams: mysqlEnumParams,\n\tnameIsCatalogText: true,\n\trender: ({ values }) => renderMysqlEnumType(values),\n\tread: readEnumMember,\n\tcasts: fromText\n});\n/** Every data type this target registers. */\nconst mysqlDataTypes = [\n\tmysqlText,\n\tmysqlInt,\n\tmysqlBigint,\n\tmysqlVarchar,\n\tmysqlChar,\n\tmysqlDatetime,\n\tmysqlTimestamp,\n\tmysqlDate,\n\tmysqlTime,\n\tmysqlDuration,\n\tmysqlEnum,\n\tsqlRawDataType\n];\n/** MySQL's text data types, which a SQL discriminator column may have. */\nconst mysqlTextDataTypes = [\n\tmysqlText.id,\n\tmysqlVarchar.id,\n\tmysqlChar.id\n];\n//#endregion\nexport { mysqlTimestampText as C, renderMysqlEnumType as E, mysqlTimestamp as S, mysqlVarcharParams as T, mysqlInt as _, mysqlCharParams as a, mysqlTime as b, mysqlDateText as c, mysqlDatetimeText as d, mysqlDuration as f, mysqlEnumParams as g, mysqlEnum as h, mysqlChar as i, mysqlDatetime as l, mysqlDurationText as m, MYSQL_TIMESTAMP_RANGE as n, mysqlDataTypes as o, mysqlDurationParams as p, mysqlBigint as r, mysqlDate as s, MYSQL_DATETIME_RANGE as t, mysqlDatetimeParams as u, mysqlText as v, mysqlVarchar as w, mysqlTimeText as x, mysqlTextDataTypes as y };\n\n//# sourceMappingURL=data-types-DOaaPS93.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,aAAa,UAAU;AAC7B,SAAS,WAAW,OAAO,UAAU;CACpC,MAAM,gBAAgB,yBAAyB,YAAY,SAAS,QAAQ,KAAK,UAAU,KAAK,EAAE,IAAI;EACrG,KAAK;EACL,KAAK;CACN,CAAC;AACF;AACA,MAAM,iBAAiB,UAAU,OAAO,UAAU,WAAW,YAAY,KAAK,IAAI,WAAW,OAAO,UAAU;AAC9G,SAAS,aAAa,QAAQ,MAAM;CACnC,MAAM,QAAQ,OAAO;CACrB,OAAO,OAAO,UAAU,WAAW,QAAQ,KAAK;AACjD;;AAEA,SAAS,iBAAiB,OAAO,MAAM,QAAQ;CAC9C,MAAM,OAAO,eAAe,OAAO,IAAI;CACvC,IAAI,WAAW,KAAK,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,SAAS,QAAQ,OAAO,gBAAgB,OAAO,uBAAuB,OAAO,GA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;;AAEtD,SAAS,oBAAoB,QAAQ;CACpC,IAAI,WAAW,KAAK,KAAK,OAAO,WAAW,GAAG,MAAM,WAAW,gCAAgC,uDAAuD;EACrJ,KAAK;EACL,KAAK;EACL,MAAM,EAAE,UAAU,aAAa;CAChC,CAAC;CACD,OAAO,QAAQ,OAAO,IAAI,YAAY,CAAC,CAAC,KAAK,GAAG,EAAE;AACnD;AACA,MAAM,kBAAkB,MAAM,WAAW;CACxC,MAAM,SAAS,eAAe,cAAc,IAAI;CAChD,MAAM,SAAS,OAAO;CACtB,IAAI,MAAM,QAAQ,MAAM,KAAK,CAAC,OAAO,SAAS,MAAM,GAAG,OAAO,gBAAgB,cAAc,sBAAsB,OAAO,KAAK,IAAI,KAAK,IAAI;CAC3I,OAAO;AACR;;;;AAIA,MAAM,YAAY,YAAY,cAAc;CAC3C,QAAQ;CACR,mBAAmB;CACnB,SAAS,EAAE,aAAa,oBAAoB,MAAM;CAClD,MAAM;CACN,OAAO;AACR,CAAC;;AAED,MAAM,iBAAiB;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;;AAEA,MAAM,qBAAqB;CAC1B,UAAU;CACV,aAAa;CACb,UAAU;AACX"}
@@ -1,8 +1,8 @@
1
- import { o as mysqlDataTypes } from "./data-types-DOaaPS93-DBkMJyh1.mjs";
2
- import { t as requireTemporal } from "./require-temporal-DeDQhbTn-Bxc65WbA.mjs";
1
+ import { o as mysqlDataTypes } from "./data-types-DOaaPS93-lycGybNk.mjs";
2
+ import { t as requireTemporal } from "./require-temporal-DeDQhbTn-CdpjEWCB.mjs";
3
3
  import * as nowValues from "@prisma/orm-framework/type-implementations/now";
4
4
  import { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, fractionDigitsOf } from "@prisma/orm-framework/type-implementations/now";
5
- //#region ../../../3-targets/mysql/1-target/dist/date-time-now-generators-DY-8Bodc.mjs
5
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/date-time-now-generators-DY-8Bodc.mjs
6
6
  /** The runtime-safe part of the MySQL target's metadata: it leaves out `authoring`, which only contract construction reads. Every session runs in UTC, because the datetime codec reads and writes UTC, and at READ COMMITTED, as Postgres does, so a read inside a transaction sees rows other sessions committed. Transaction isolation controls will replace the setting. */
7
7
  const mysqlTargetDescriptorMetaRuntime = {
8
8
  kind: "target",
@@ -69,4 +69,4 @@ const mysqlNowGenerators = [
69
69
  //#endregion
70
70
  export { mysqlTargetDescriptorMetaRuntime as n, mysqlNowGenerators as t };
71
71
 
72
- //# sourceMappingURL=date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs.map
72
+ //# sourceMappingURL=date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/date-time-now-generators-DY-8Bodc.mjs"],"sourcesContent":["import { o as mysqlDataTypes } from \"./data-types-DOaaPS93.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-DeDQhbTn.mjs\";\nimport * as nowValues from \"@internal/type-implementations/now\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, fractionDigitsOf } from \"@internal/type-implementations/now\";\n/** The runtime-safe part of the MySQL target's metadata: it leaves out `authoring`, which only contract construction reads. Every session runs in UTC, because the datetime codec reads and writes UTC, and at READ COMMITTED, as Postgres does, so a read inside a transaction sees rows other sessions committed. Transaction isolation controls will replace the setting. */\nconst mysqlTargetDescriptorMetaRuntime = {\n\tkind: \"target\",\n\tfamilyId: \"sql\",\n\ttargetId: \"mysql\",\n\tid: \"mysql\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\tdataTypes: mysqlDataTypes,\n\tsessionSettings: {\n\t\ttime_zone: \"+00:00\",\n\t\ttransaction_isolation: \"READ-COMMITTED\"\n\t}\n};\n//#endregion\n//#region src/core/date-time-now-generators.ts\n/** The fraction digits of a bare `datetime`, `timestamp` or `time`. */\nconst BARE_TYPE_FRACTION_DIGITS = 0;\nfunction fractionDigits(params) {\n\treturn fractionDigitsOf(params, BARE_TYPE_FRACTION_DIGITS);\n}\nfunction instantNow(params) {\n\treturn nowValues.instantNow(requireTemporal({ generatorId: INSTANT_NOW_GENERATOR_ID }), fractionDigits(params));\n}\nfunction plainDateNow() {\n\treturn nowValues.plainDateNow(requireTemporal({ generatorId: PLAIN_DATE_NOW_GENERATOR_ID }));\n}\nfunction plainTimeNow(params) {\n\treturn nowValues.plainTimeNow(requireTemporal({ generatorId: PLAIN_TIME_NOW_GENERATOR_ID }), fractionDigits(params));\n}\nfunction instantStringNow(params) {\n\treturn nowValues.instantStringNow(fractionDigits(params), \"trimmed\");\n}\nfunction timeStringNow(params) {\n\treturn nowValues.timeStringNow(fractionDigits(params), \"trimmed\");\n}\n/**\n* The MySQL \"now\" generators, one per date and time codec except `mysql/datetime@1` and `mysql/timestamp-date@1`, which use the SQL family's `timestampNow`. All read the clock through `Date.now()` and write UTC. Each rounds down to the column's `precision` param, so MySQL, which rounds a value to the column's fraction digits, stores the value the client holds rather than rounding it up. The string generators write the text their codec reads, with no trailing zeros in the fraction.\n*/\nconst mysqlNowGenerators = [\n\t{\n\t\tid: INSTANT_NOW_GENERATOR_ID,\n\t\tgenerate: instantNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateNow\n\t},\n\t{\n\t\tid: PLAIN_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainTimeNow\n\t},\n\t{\n\t\tid: INSTANT_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: instantStringNow\n\t},\n\t{\n\t\tid: DATE_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: nowValues.dateStringNow\n\t},\n\t{\n\t\tid: TIME_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timeStringNow\n\t}\n];\n//#endregion\nexport { mysqlTargetDescriptorMetaRuntime as n, mysqlNowGenerators as t };\n\n//# sourceMappingURL=date-time-now-generators-DY-8Bodc.mjs.map"],"mappings":";;;;;;AAKA,MAAM,mCAAmC;CACxC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;CACf,WAAW;CACX,iBAAiB;EAChB,WAAW;EACX,uBAAuB;CACxB;AACD;;AAIA,MAAM,4BAA4B;AAClC,SAAS,eAAe,QAAQ;CAC/B,OAAO,iBAAiB,QAAQ,yBAAyB;AAC1D;AACA,SAAS,WAAW,QAAQ;CAC3B,OAAO,UAAU,WAAW,gBAAgB,EAAE,aAAa,yBAAyB,CAAC,GAAG,eAAe,MAAM,CAAC;AAC/G;AACA,SAAS,eAAe;CACvB,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,CAAC;AAC5F;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,GAAG,eAAe,MAAM,CAAC;AACpH;AACA,SAAS,iBAAiB,QAAQ;CACjC,OAAO,UAAU,iBAAiB,eAAe,MAAM,GAAG,SAAS;AACpE;AACA,SAAS,cAAc,QAAQ;CAC9B,OAAO,UAAU,cAAc,eAAe,MAAM,GAAG,SAAS;AACjE;;;;AAIA,MAAM,qBAAqB;CAC1B;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU,UAAU;CACrB;CACA;EACC,IAAI;EACJ,UAAU;CACX;AACD"}
@@ -0,0 +1 @@
1
+ import "./nodes-xc0cR0_c-CLET35o0.mjs";
@@ -1,5 +1,5 @@
1
- import { t as MysqlCreateTable } from "./nodes-CvcX47ot-B-ZaUYRj.mjs";
2
- //#region ../../../3-targets/mysql/1-target/dist/ddl-DDmMHyA_.mjs
1
+ import { t as MysqlCreateTable } from "./nodes-CvcX47ot-CcCy0Oh4.mjs";
2
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/ddl-DDmMHyA_.mjs
3
3
  /**
4
4
  * A MySQL `CREATE TABLE` node. Identifiers and column types are written as given, so callers pass trusted values such as the control tables' names; string literal defaults are escaped by the renderer.
5
5
  */
@@ -9,4 +9,4 @@ function createTable(options) {
9
9
  //#endregion
10
10
  export { createTable as t };
11
11
 
12
- //# sourceMappingURL=ddl-DDmMHyA_-Bb8sXoS0.mjs.map
12
+ //# sourceMappingURL=ddl-DDmMHyA_-grdUmU3J.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ddl-DDmMHyA_-grdUmU3J.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/ddl-DDmMHyA_.mjs"],"sourcesContent":["import { t as MysqlCreateTable } from \"./nodes-CvcX47ot.mjs\";\n//#region src/contract-free/ddl.ts\n/**\n* A MySQL `CREATE TABLE` node. Identifiers and column types are written as given, so callers pass trusted values such as the control tables' names; string literal defaults are escaped by the renderer.\n*/\nfunction createTable(options) {\n\treturn new MysqlCreateTable(options);\n}\n//#endregion\nexport { createTable as t };\n\n//# sourceMappingURL=ddl-DDmMHyA_.mjs.map"],"mappings":";;;;;AAKA,SAAS,YAAY,SAAS;CAC7B,OAAO,IAAI,iBAAiB,OAAO;AACpC"}
@@ -1,5 +1,5 @@
1
- import { i as mysqlCurrentValueFor, n as MYSQL_INSTANT_NOW, r as MYSQL_TIME_NOW, t as MYSQL_DATE_NOW } from "./now-expression-DVD18CUc-00buJUto.mjs";
2
- //#region ../../../3-targets/mysql/1-target/dist/default-normalizer-C8pc7SbL.mjs
1
+ import { i as mysqlCurrentValueFor, n as MYSQL_INSTANT_NOW, r as MYSQL_TIME_NOW, t as MYSQL_DATE_NOW } from "./now-expression-DVD18CUc-DJqdZY96.mjs";
2
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/default-normalizer-C8pc7SbL.mjs
3
3
  const AUTOINCREMENT = {
4
4
  kind: "function",
5
5
  expression: "autoincrement()"
@@ -97,4 +97,4 @@ function mysqlResolveDefault(def, column) {
97
97
  //#endregion
98
98
  export { readMysqlDefault as n, mysqlResolveDefault as t };
99
99
 
100
- //# sourceMappingURL=default-normalizer-C8pc7SbL-CKgOEnGl.mjs.map
100
+ //# sourceMappingURL=default-normalizer-C8pc7SbL-BXd70q02.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-normalizer-C8pc7SbL-BXd70q02.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/default-normalizer-C8pc7SbL.mjs"],"sourcesContent":["import { i as mysqlCurrentValueFor, n as MYSQL_INSTANT_NOW, r as MYSQL_TIME_NOW, t as MYSQL_DATE_NOW } from \"./now-expression-DVD18CUc.mjs\";\n//#region src/core/default-normalizer.ts\nconst AUTOINCREMENT = {\n\tkind: \"function\",\n\texpression: \"autoincrement()\"\n};\nconst CURRENT_TIMESTAMP = /^(?:current_timestamp|now|localtime|localtimestamp)(?:\\s*\\(\\s*\\d*\\s*\\))?$/i;\nconst CURRENT_DATE = /^(?:curdate|current_date)(?:\\s*\\(\\s*\\))?$/i;\nconst CURRENT_TIME = /^(?:curtime|current_time)(?:\\s*\\(\\s*\\d*\\s*\\))?$/i;\n/** The name of the current value `expression` writes: `now()` for the current instant, and its own name for the current date and the current time of day, which hold different values. `undefined` for any other expression. */\nfunction currentValueNamed(expression) {\n\tif (CURRENT_TIMESTAMP.test(expression)) return MYSQL_INSTANT_NOW;\n\tif (CURRENT_DATE.test(expression)) return MYSQL_DATE_NOW;\n\tif (CURRENT_TIME.test(expression)) return MYSQL_TIME_NOW;\n}\nconst SQL_ESCAPES = {\n\t\"0\": \"\\0\",\n\tb: \"\\b\",\n\tn: \"\\n\",\n\tr: \"\\r\",\n\tt: \"\t\",\n\tZ: \"\u001a\"\n};\nconst INTRODUCED_STRING = /^_[A-Za-z0-9]+'/;\nfunction withoutBackslashEscapes(text) {\n\treturn text.replace(/\\\\(.)/gs, \"$1\");\n}\n/** The text of a MySQL string literal whose opening quote ends `start`, when the literal runs to the end of `text`. */\nfunction stringLiteralBody(text, start) {\n\tlet body = \"\";\n\tfor (let index = start; index < text.length; index += 1) {\n\t\tconst char = text.charAt(index);\n\t\tif (char === \"\\\\\") {\n\t\t\tindex += 1;\n\t\t\tconst escaped = text.charAt(index);\n\t\t\tbody += escaped === \"%\" || escaped === \"_\" ? `\\\\${escaped}` : SQL_ESCAPES[escaped] ?? escaped;\n\t\t} else if (char === \"'\" && text.charAt(index + 1) === \"'\") {\n\t\t\tbody += \"'\";\n\t\t\tindex += 1;\n\t\t} else if (char === \"'\") return index === text.length - 1 ? body : void 0;\n\t\telse body += char;\n\t}\n}\n/**\n* The value of a default MySQL reports as a string with a character set introducer, such as `_utf8mb4\\'abc\\'`: the form a literal default on a text, blob or JSON column takes, because MySQL writes it as an expression. `undefined` for any other expression.\n*/\nfunction introducedStringValue(reported) {\n\tconst expression = withoutBackslashEscapes(reported.trim());\n\tconst opening = INTRODUCED_STRING.exec(expression);\n\treturn opening === null ? void 0 : stringLiteralBody(expression, opening[0].length);\n}\nfunction extraFlags(extra) {\n\treturn extra.toLowerCase().split(/\\s+/);\n}\n/**\n* Reads a column's reported default from `COLUMN_DEFAULT` and `EXTRA`. `auto_increment` is `autoincrement()`; a string with a character set introducer, the form MySQL reports for a literal default on a text, blob or JSON column, is that literal; an expression default that writes the current instant, such as `CURRENT_TIMESTAMP(3)`, is `now()`, and one that writes the current date or time of day, `curdate()` or `curtime(6)`, is `CURRENT_DATE` or `CURRENT_TIME`; any other expression default is a function default kept as reported; and anything else is a literal. `undefined` when the column has no default.\n*/\nfunction readMysqlDefault(columnDefault, extra) {\n\tconst flags = extraFlags(extra);\n\tif (flags.includes(\"auto_increment\")) return AUTOINCREMENT;\n\tif (columnDefault === null) return void 0;\n\tif (flags.includes(\"default_generated\")) {\n\t\tconst introduced = introducedStringValue(columnDefault);\n\t\tif (introduced !== void 0) return {\n\t\t\tkind: \"literal\",\n\t\t\tliteral: {\n\t\t\t\tkind: \"value\",\n\t\t\t\tbody: introduced\n\t\t\t}\n\t\t};\n\t\tconst expression = columnDefault.trim();\n\t\treturn {\n\t\t\tkind: \"function\",\n\t\t\texpression: currentValueNamed(expression) ?? expression\n\t\t};\n\t}\n\treturn {\n\t\tkind: \"literal\",\n\t\tliteral: {\n\t\t\tkind: \"value\",\n\t\t\tbody: columnDefault\n\t\t}\n\t};\n}\n/**\n* Names a contract's expression default the way {@link readMysqlDefault} names the same function in the database, so `` sql`CURRENT_TIMESTAMP(3)` `` and the database's `now()` compare equal. A `now()` default is named as the current value its column's data type writes, so a `now()` on a `date` column and one on a `datetime` column differ, as the values they write do. Every other default passes through unchanged.\n*/\nfunction mysqlResolveDefault(def, column) {\n\tif (def.kind !== \"function\") return def;\n\tconst expression = def.expression.trim();\n\tconst named = expression === \"now()\" ? mysqlCurrentValueFor(column.dataTypeId) : currentValueNamed(expression);\n\treturn named === void 0 ? def : {\n\t\tkind: \"function\",\n\t\texpression: named\n\t};\n}\n//#endregion\nexport { readMysqlDefault as n, mysqlResolveDefault as t };\n\n//# sourceMappingURL=default-normalizer-C8pc7SbL.mjs.map"],"mappings":";;AAEA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;AACb;AACA,MAAM,oBAAoB;AAC1B,MAAM,eAAe;AACrB,MAAM,eAAe;;AAErB,SAAS,kBAAkB,YAAY;CACtC,IAAI,kBAAkB,KAAK,UAAU,GAAG,OAAO;CAC/C,IAAI,aAAa,KAAK,UAAU,GA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,GAAG,OAAO;GACjC,MAAM;GACN,SAAS;IACR,MAAM;IACN,MAAM;GACP;EACD;EACA,MAAM,aAAa,cAAc,KAAK;EACtC,OAAO;GACN,MAAM;GACN,YAAY,kBAAkB,UAAU,KAAK;EAC9C;CACD;CACA,OAAO;EACN,MAAM;EACN,SAAS;GACR,MAAM;GACN,MAAM;EACP;CACD;AACD;;;;AAIA,SAAS,oBAAoB,KAAK,QAAQ;CACzC,IAAI,IAAI,SAAS,YAAY,OAAO;CACpC,MAAM,aAAa,IAAI,WAAW,KAAK;CACvC,MAAM,QAAQ,eAAe,UAAU,qBAAqB,OAAO,UAAU,IAAI,kBAAkB,UAAU;CAC7G,OAAO,UAAU,KAAK,IAAI,MAAM;EAC/B,MAAM;EACN,YAAY;CACb;AACD"}
@@ -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/mysql/1-target/dist/default-normalizer.d.mts
3
+ //#region ../../../3-targets/mysql/1-mysql/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, or a literal the column's codec reads. */
6
6
  type MysqlReportedDefault = {
@@ -24,4 +24,4 @@ declare function readMysqlDefault(columnDefault: string | null, extra: string):
24
24
  declare function mysqlResolveDefault(def: ColumnDefault, column: DefaultResolverColumn): ColumnDefault;
25
25
  //#endregion
26
26
  export { mysqlResolveDefault as n, readMysqlDefault as r, MysqlReportedDefault as t };
27
- //# sourceMappingURL=default-normalizer-CGIwQiKB.d.mts.map
27
+ //# sourceMappingURL=default-normalizer-D-8Ii0df.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-normalizer-D-8Ii0df.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/default-normalizer.d.mts"],"mappings":";;;;;KAIK;WACM;WACA;;WAEA;WACA,SAAS,QAAQ;aACf;;aAEA;;;;;;iBAMI,iBAAiB,8BAA8B,gBAAgB;;;;iBAI/D,oBAAoB,KAAK,eAAe,QAAQ,wBAAwB"}
@@ -1,14 +1,14 @@
1
- import { a as MYSQL_DATE_STRING_CODEC_ID, d as MYSQL_TIMESTAMP_DATE_CODEC_ID, f as MYSQL_TIMESTAMP_STRING_CODEC_ID, h as MYSQL_TIME_TEMPORAL_CODEC_ID, i as MYSQL_DATETIME_TEMPORAL_CODEC_ID, l as MYSQL_INT_CODEC_ID, m as MYSQL_TIME_STRING_CODEC_ID, n as MYSQL_DATETIME_CODEC_ID, o as MYSQL_DATE_TEMPORAL_CODEC_ID, p as MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID, r as MYSQL_DATETIME_STRING_CODEC_ID, s as MYSQL_DURATION_STRING_CODEC_ID, t as MYSQL_BIGINT_CODEC_ID, u as MYSQL_TEXT_CODEC_ID } from "./codec-ids-CrR9Xi7r-CarpqbNM.mjs";
2
- import { _ as mysqlInt, y as mysqlTextDataTypes } from "./data-types-DOaaPS93-DBkMJyh1.mjs";
3
- import { t as mysqlDataTypeEntries } from "./data-type-entries-C7VH2IHc-D1d5I8zF.mjs";
4
- import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from "./date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs";
1
+ import { a as MYSQL_DATE_STRING_CODEC_ID, d as MYSQL_TIMESTAMP_DATE_CODEC_ID, f as MYSQL_TIMESTAMP_STRING_CODEC_ID, h as MYSQL_TIME_TEMPORAL_CODEC_ID, i as MYSQL_DATETIME_TEMPORAL_CODEC_ID, l as MYSQL_INT_CODEC_ID, m as MYSQL_TIME_STRING_CODEC_ID, n as MYSQL_DATETIME_CODEC_ID, o as MYSQL_DATE_TEMPORAL_CODEC_ID, p as MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID, r as MYSQL_DATETIME_STRING_CODEC_ID, s as MYSQL_DURATION_STRING_CODEC_ID, t as MYSQL_BIGINT_CODEC_ID, u as MYSQL_TEXT_CODEC_ID } from "./codec-ids-CrR9Xi7r-CjbGCS3o.mjs";
2
+ import { _ as mysqlInt, y as mysqlTextDataTypes } from "./data-types-DOaaPS93-lycGybNk.mjs";
3
+ import { t as mysqlDataTypeEntries } from "./data-type-entries-C7VH2IHc-DM6TbTaz.mjs";
4
+ import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from "./date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs";
5
5
  import { SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
6
6
  import { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID } from "@prisma/orm-framework/type-implementations/now";
7
7
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
8
8
  import { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from "@prisma/orm-family-sql/family/pack";
9
9
  import { TIMESTAMP_NOW_GENERATOR_ID, temporalTypeAliases } from "@prisma/orm-framework/components/authoring";
10
10
  import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
11
- //#region ../../../3-targets/mysql/1-target/dist/descriptor-meta-CsMPRsxp.mjs
11
+ //#region ../../../3-targets/mysql/1-mysql/1-target/dist/descriptor-meta-CsMPRsxp.mjs
12
12
  /** The type constructors whose arguments are sizes, which take values of `mysql/int`, and the created-at and updated-at aliases on the type a bare `DateTime` becomes: a `datetime(3)` column read as a JavaScript `Date`. */
13
13
  const mysqlAuthoringTypes = {
14
14
  .../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: "mysql/int" }),
@@ -349,4 +349,4 @@ const mysqlTargetDescriptorMeta = {
349
349
  //#endregion
350
350
  export { mysqlTargetDescriptorMeta as n, mysqlScalarTypeConstructors as t };
351
351
 
352
- //# sourceMappingURL=descriptor-meta-CsMPRsxp-DhK87vlc.mjs.map
352
+ //# sourceMappingURL=descriptor-meta-CsMPRsxp-QVV7vNY8.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-CsMPRsxp-QVV7vNY8.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/descriptor-meta-CsMPRsxp.mjs"],"sourcesContent":["import { a as MYSQL_DATE_STRING_CODEC_ID, d as MYSQL_TIMESTAMP_DATE_CODEC_ID, f as MYSQL_TIMESTAMP_STRING_CODEC_ID, h as MYSQL_TIME_TEMPORAL_CODEC_ID, i as MYSQL_DATETIME_TEMPORAL_CODEC_ID, l as MYSQL_INT_CODEC_ID, m as MYSQL_TIME_STRING_CODEC_ID, n as MYSQL_DATETIME_CODEC_ID, o as MYSQL_DATE_TEMPORAL_CODEC_ID, p as MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID, r as MYSQL_DATETIME_STRING_CODEC_ID, s as MYSQL_DURATION_STRING_CODEC_ID, t as MYSQL_BIGINT_CODEC_ID, u as MYSQL_TEXT_CODEC_ID } from \"./codec-ids-CrR9Xi7r.mjs\";\nimport { _ as mysqlInt, y as mysqlTextDataTypes } from \"./data-types-DOaaPS93.mjs\";\nimport { t as mysqlDataTypeEntries } from \"./data-type-entries-C7VH2IHc.mjs\";\nimport { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from \"./date-time-now-generators-DY-8Bodc.mjs\";\nimport { SQL_VARCHAR_CODEC_ID } from \"@internal/sql-relational-core/ast\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, temporalTypeAliases } from \"@internal/framework-components/authoring\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID } from \"@internal/type-implementations/now\";\n//#region src/core/authoring.ts\n/** The type constructors whose arguments are sizes, which take values of `mysql/int`, and the created-at and updated-at aliases on the type a bare `DateTime` becomes: a `datetime(3)` column read as a JavaScript `Date`. */\nconst mysqlAuthoringTypes = {\n\t.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: \"mysql/int\" }),\n\ttemporal: /* @__PURE__ */ temporalTypeAliases({\n\t\tcodecId: MYSQL_DATETIME_CODEC_ID,\n\t\ttypeParams: { precision: 3 }\n\t}, \"a JavaScript Date\")\n};\n//#endregion\n//#region src/core/generator-functions.ts\n/** The \"now\" generator for each codec that has one. The `now` generator function binds it. */\nconst mysqlNowGeneratorIds = {\n\t[MYSQL_DATETIME_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,\n\t[MYSQL_DATETIME_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,\n\t[MYSQL_DATETIME_STRING_CODEC_ID]: INSTANT_STRING_NOW_GENERATOR_ID,\n\t[MYSQL_TIMESTAMP_DATE_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,\n\t[MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,\n\t[MYSQL_TIMESTAMP_STRING_CODEC_ID]: INSTANT_STRING_NOW_GENERATOR_ID,\n\t[MYSQL_DATE_STRING_CODEC_ID]: DATE_STRING_NOW_GENERATOR_ID,\n\t[MYSQL_DATE_TEMPORAL_CODEC_ID]: PLAIN_DATE_NOW_GENERATOR_ID,\n\t[MYSQL_TIME_STRING_CODEC_ID]: TIME_STRING_NOW_GENERATOR_ID,\n\t[MYSQL_TIME_TEMPORAL_CODEC_ID]: PLAIN_TIME_NOW_GENERATOR_ID\n};\n/** The generators that round down to the column's fraction digits, 0 for a bare type. */\nconst takesPrecision = /* @__PURE__ */ new Set([\n\tINSTANT_NOW_GENERATOR_ID,\n\tINSTANT_STRING_NOW_GENERATOR_ID,\n\tPLAIN_TIME_NOW_GENERATOR_ID,\n\tTIME_STRING_NOW_GENERATOR_ID\n]);\n/** The fraction digits a `Date` holds: `timestampNow` takes a precision only below them, so a column of 3 or more, such as a bare `DateTime`, keeps a contract with no generator params. */\nconst DATE_FRACTION_DIGITS = 3;\nfunction nowParams(generatorId, typeParams) {\n\tconst written = typeParams?.[\"precision\"];\n\tconst precision = typeof written === \"number\" ? written : 0;\n\tif (takesPrecision.has(generatorId)) return { precision };\n\tif (generatorId === TIMESTAMP_NOW_GENERATOR_ID && precision < DATE_FRACTION_DIGITS) return { precision };\n}\nconst mysqlGeneratorFunctions = [\n\t...sqlIntegerArgumentGeneratorFunctions({ integer: mysqlInt.id }),\n\t{\n\t\tname: \"now\",\n\t\tbindings: Object.entries(mysqlNowGeneratorIds).map(([codecId, generatorId]) => singleGeneratorBinding({\n\t\t\tcodecIds: [codecId],\n\t\t\tgeneratorId,\n\t\t\tparamsFromField: (column) => nowParams(generatorId, column.typeParams)\n\t\t}))\n\t},\n\t...idGeneratorFunctionBindings({ text: [MYSQL_TEXT_CODEC_ID] })\n];\n/** The `now` generators MySQL binds. The SQL family registers the identifier generators. */\nconst mysqlGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }, ...mysqlNowGenerators.map(({ id }) => ({ id }))];\n/**\n* The base PSL scalars other than the date and time types, as zero-arg type constructors. Each names a codec; the column's database type is its data type's. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst mysqlScalarAuthoringTypes = {\n\tString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: `Text of at most 191 characters, stored as MySQL varchar(191) so that it can be indexed.`,\n\t\toutput: {\n\t\t\tcodecId: SQL_VARCHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 191 }\n\t\t}\n\t},\n\tInt: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A signed 32-bit integer stored as MySQL int and represented as a JavaScript number.\",\n\t\toutput: { codecId: MYSQL_INT_CODEC_ID }\n\t},\n\tBigInt: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A signed 64-bit integer stored as MySQL bigint and represented as a JavaScript bigint.\",\n\t\toutput: { codecId: MYSQL_BIGINT_CODEC_ID }\n\t}\n};\nconst precision = {\n\tkind: \"value\",\n\tdataType: \"mysql/int\",\n\tname: \"precision\",\n\toptional: true\n};\n/** The explicit type `codecId`, whose `precision` argument is the number of fraction digits its column holds, 0 to 6; MySQL holds 0 when none is written. */\nfunction withPrecision(codecId, documentation) {\n\treturn {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation,\n\t\targs: [precision],\n\t\toutput: {\n\t\t\tcodecId,\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t};\n}\n/**\n* The explicit date and time types. Each is named after its MySQL column type, with a suffix for the value the application reads; `DurationString` is stored as `varchar`, since MySQL has no interval type. ADR 315.\n*/\nconst mysqlDateTimeTypeConstructors = {\n\tDatetimeJsDate: {\n\t\t...withPrecision(MYSQL_DATETIME_CODEC_ID, \"An instant stored as MySQL datetime in UTC and represented as a JavaScript Date. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\t\tinferred: true\n\t},\n\tDatetimeTemporal: withPrecision(MYSQL_DATETIME_TEMPORAL_CODEC_ID, \"An instant stored as MySQL datetime in UTC and represented as Temporal.Instant. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\tDatetimeString: withPrecision(MYSQL_DATETIME_STRING_CODEC_ID, \"An instant stored as MySQL datetime in UTC and represented as ISO 8601 text in UTC, such as 2024-01-01T00:00:00.5Z. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\tTimestampJsDate: {\n\t\t...withPrecision(MYSQL_TIMESTAMP_DATE_CODEC_ID, \"An instant from 1970 to 2038 stored as MySQL timestamp and represented as a JavaScript Date. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\t\tinferred: true\n\t},\n\tTimestampTemporal: withPrecision(MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID, \"An instant from 1970 to 2038 stored as MySQL timestamp and represented as Temporal.Instant. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\tTimestampString: withPrecision(MYSQL_TIMESTAMP_STRING_CODEC_ID, \"An instant from 1970 to 2038 stored as MySQL timestamp and represented as ISO 8601 text in UTC, such as 2024-01-01T00:00:00.5Z. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\tDateString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A calendar date stored as MySQL date and represented as ISO 8601 text, such as 2024-02-29.\",\n\t\toutput: { codecId: MYSQL_DATE_STRING_CODEC_ID }\n\t},\n\tDateTemporal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A calendar date stored as MySQL date and represented as Temporal.PlainDate.\",\n\t\toutput: { codecId: MYSQL_DATE_TEMPORAL_CODEC_ID }\n\t},\n\tTimeString: {\n\t\t...withPrecision(MYSQL_TIME_STRING_CODEC_ID, \"A time of day stored as MySQL time and represented as ISO 8601 text, such as 09:30:00. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\t\tinferred: true\n\t},\n\tTimeTemporal: withPrecision(MYSQL_TIME_TEMPORAL_CODEC_ID, \"A time of day stored as MySQL time and represented as Temporal.PlainTime. `precision` is the fraction digits the column holds, 0 to 6.\"),\n\tDurationString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: `A length of time stored as MySQL varchar(191), so that it can be indexed, and represented as the ISO 8601 duration it was written as, such as PT1H30M.`,\n\t\toutput: {\n\t\t\tcodecId: MYSQL_DURATION_STRING_CODEC_ID,\n\t\t\ttypeParams: { length: 191 }\n\t\t}\n\t}\n};\nconst MICROSECONDS = { precision: 6 };\nconst MILLISECONDS = { precision: 3 };\n/**\n* The convenience date and time types. Each is a type choice: its `as` and `storage` arguments choose the explicit type it becomes, and `precision` is passed on to that type. MySQL holds no fraction of a second in a bare `datetime`, `timestamp` or `time`, so a row that reads a `Date` defaults to milliseconds, which a `Date` holds, and every other row to microseconds, as PostgreSQL's bare types hold. ADR 279, ADR 315.\n*/\nconst mysqlConvenienceDateTimeTypes = {\n\tDateTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A moment in time, read and written in UTC. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string, such as \\\"2024-01-01T00:00:00Z\\\". `storage` is datetime, or timestamp, which holds 1970 to 2038.\",\n\t\targs: [\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"as\",\n\t\t\t\tvalues: [\n\t\t\t\t\t\"jsDate\",\n\t\t\t\t\t\"temporal\",\n\t\t\t\t\t\"string\"\n\t\t\t\t],\n\t\t\t\tdefault: \"jsDate\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"storage\",\n\t\t\t\tvalues: [\"datetime\", \"timestamp\"],\n\t\t\t\tdefault: \"datetime\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tprecision\n\t\t],\n\t\tchoices: [\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"jsDate\",\n\t\t\t\t\tstorage: \"datetime\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeJsDate\",\n\t\t\t\tdefaults: MILLISECONDS\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"datetime\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeTemporal\",\n\t\t\t\tdefaults: MICROSECONDS\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"datetime\"\n\t\t\t\t},\n\t\t\t\ttype: \"DatetimeString\",\n\t\t\t\tdefaults: MICROSECONDS\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"jsDate\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampJsDate\",\n\t\t\t\tdefaults: MILLISECONDS\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampTemporal\",\n\t\t\t\tdefaults: MICROSECONDS\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampString\",\n\t\t\t\tdefaults: MICROSECONDS\n\t\t\t}\n\t\t]\n\t},\n\tDate: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A calendar date. `as` is what the application reads: string, such as \\\"2024-02-29\\\", or temporal (Temporal.PlainDate).\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, {\n\t\t\tkind: \"option\",\n\t\t\tname: \"storage\",\n\t\t\tvalues: [\"date\"],\n\t\t\tdefault: \"date\",\n\t\t\toptional: true\n\t\t}],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"date\"\n\t\t\t},\n\t\t\ttype: \"DateString\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"temporal\",\n\t\t\t\tstorage: \"date\"\n\t\t\t},\n\t\t\ttype: \"DateTemporal\"\n\t\t}]\n\t},\n\tTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A time of day, from 00:00:00 to 23:59:59.999999. `as` is what the application reads: string, such as \\\"09:30:00\\\", or temporal (Temporal.PlainTime).\",\n\t\targs: [\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"as\",\n\t\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\t\tdefault: \"string\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"storage\",\n\t\t\t\tvalues: [\"time\"],\n\t\t\t\tdefault: \"time\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tprecision\n\t\t],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"time\"\n\t\t\t},\n\t\t\ttype: \"TimeString\",\n\t\t\tdefaults: MICROSECONDS\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"temporal\",\n\t\t\t\tstorage: \"time\"\n\t\t\t},\n\t\t\ttype: \"TimeTemporal\",\n\t\t\tdefaults: MICROSECONDS\n\t\t}]\n\t},\n\tDuration: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: `A length of time, stored as MySQL varchar(191), since MySQL has no interval type. \\`as\\` is what the application reads: string, an ISO 8601 duration such as \"PT1H30M\".`,\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, {\n\t\t\tkind: \"option\",\n\t\t\tname: \"storage\",\n\t\t\tvalues: [\"varchar\"],\n\t\t\tdefault: \"varchar\",\n\t\t\toptional: true\n\t\t}],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"varchar\"\n\t\t\t},\n\t\t\ttype: \"DurationString\"\n\t\t}]\n\t}\n};\n/**\n* The base scalars, the explicit date and time types and the convenience date and time types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst mysqlScalarTypeConstructors = {\n\t...mysqlScalarAuthoringTypes,\n\t...mysqlDateTimeTypeConstructors,\n\t...mysqlConvenienceDateTimeTypes\n};\nconst mysqlTargetDescriptorMeta = {\n\t...mysqlTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: UNBOUND_NAMESPACE_ID,\n\tsupportsNamespaces: false,\n\tdisplayName: \"MySQL\",\n\tauthoring: {\n\t\ttype: {\n\t\t\t...mysqlScalarTypeConstructors,\n\t\t\t...mysqlAuthoringTypes\n\t\t},\n\t\tdataTypes: mysqlDataTypeEntries(),\n\t\ttextDataTypes: mysqlTextDataTypes\n\t},\n\tgeneratorFunctions: mysqlGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: mysqlGeneratorDescriptors\n\t}\n};\n//#endregion\nexport { mysqlScalarTypeConstructors as n, mysqlTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-CsMPRsxp.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,sBAAsB;CAC3B,GAAmB,0CAA0B,EAAE,UAAU,YAAY,CAAC;CACtE,UAA0B,oCAAoB;EAC7C,SAAS;EACT,YAAY,EAAE,WAAW,EAAE;CAC5B,GAAG,mBAAmB;AACvB;;AAIA,MAAM,uBAAuB;EAC3B,0BAA0B;EAC1B,mCAAmC;EACnC,iCAAiC;EACjC,gCAAgC;EAChC,oCAAoC;EACpC,kCAAkC;EAClC,6BAA6B;EAC7B,+BAA+B;EAC/B,6BAA6B;EAC7B,+BAA+B;AACjC;;AAEA,MAAM,iCAAiC,IAAI,IAAI;CAC9C;CACA;CACA;CACA;AACD,CAAC;;AAED,MAAM,uBAAuB;AAC7B,SAAS,UAAU,aAAa,YAAY;CAC3C,MAAM,UAAU,aAAa;CAC7B,MAAM,YAAY,OAAO,YAAY,WAAW,UAAU;CAC1D,IAAI,eAAe,IAAI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GAAG;GACH,GAAG;EACJ;EACA,WAAW,qBAAqB;EAChC,eAAe;CAChB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;AACD"}
@@ -0,0 +1,32 @@
1
+ import { o as mysqlCodecRegistry } from "./codecs-wVJlFapM.mjs";
2
+ //#region ../../../3-targets/mysql/1-mysql/2-adapter/dist/descriptor-meta-pVdZBI-g.mjs
3
+ /** What a MySQL 8.4 server does that the SQL family asks about. `RETURNING`, `LATERAL` and conflict targets are not among them: `ON DUPLICATE KEY UPDATE` fires on any unique key. */
4
+ const mysqlAdapterCapabilities = Object.freeze({ sql: {
5
+ orderBy: true,
6
+ limit: true,
7
+ foreignKeys: true,
8
+ enums: true,
9
+ defaultInInsert: true
10
+ } });
11
+ /** What this adapter adds to every contract it runs: its capabilities. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build. */
12
+ const mysqlAdapterContractContributions = { capabilities: mysqlAdapterCapabilities };
13
+ const mysqlAdapterDescriptorMeta = {
14
+ kind: "adapter",
15
+ familyId: "sql",
16
+ targetId: "mysql",
17
+ id: "mysql",
18
+ version: "0.0.1",
19
+ capabilities: mysqlAdapterContractContributions.capabilities,
20
+ types: { codecTypes: {
21
+ codecDescriptors: Array.from(mysqlCodecRegistry.values()),
22
+ import: {
23
+ package: "@internal/adapter-mysql/codec-types",
24
+ named: "CodecTypes",
25
+ alias: "MysqlTypes"
26
+ }
27
+ } }
28
+ };
29
+ //#endregion
30
+ export { mysqlAdapterContractContributions as n, mysqlAdapterDescriptorMeta as r, mysqlAdapterCapabilities as t };
31
+
32
+ //# sourceMappingURL=descriptor-meta-pVdZBI-g-BJN4T_on.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-pVdZBI-g-BJN4T_on.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/2-adapter/dist/descriptor-meta-pVdZBI-g.mjs"],"sourcesContent":["import { mysqlCodecRegistry } from \"@internal/target-mysql/codecs\";\n//#region src/core/capabilities.ts\n/** What a MySQL 8.4 server does that the SQL family asks about. `RETURNING`, `LATERAL` and conflict targets are not among them: `ON DUPLICATE KEY UPDATE` fires on any unique key. */\nconst mysqlAdapterCapabilities = Object.freeze({ sql: {\n\torderBy: true,\n\tlimit: true,\n\tforeignKeys: true,\n\tenums: true,\n\tdefaultInInsert: true\n} });\n//#endregion\n//#region src/core/contract-contributions.ts\n/** What this adapter adds to every contract it runs: its capabilities. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build. */\nconst mysqlAdapterContractContributions = { capabilities: mysqlAdapterCapabilities };\n//#endregion\n//#region src/core/descriptor-meta.ts\nconst mysqlAdapterDescriptorMeta = {\n\tkind: \"adapter\",\n\tfamilyId: \"sql\",\n\ttargetId: \"mysql\",\n\tid: \"mysql\",\n\tversion: \"0.0.1\",\n\tcapabilities: mysqlAdapterContractContributions.capabilities,\n\ttypes: { codecTypes: {\n\t\tcodecDescriptors: Array.from(mysqlCodecRegistry.values()),\n\t\timport: {\n\t\t\tpackage: \"@internal/adapter-mysql/codec-types\",\n\t\t\tnamed: \"CodecTypes\",\n\t\t\talias: \"MysqlTypes\"\n\t\t}\n\t} }\n};\n//#endregion\nexport { mysqlAdapterContractContributions as n, mysqlAdapterCapabilities as r, mysqlAdapterDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-pVdZBI-g.mjs.map"],"mappings":";;;AAGA,MAAM,2BAA2B,OAAO,OAAO,EAAE,KAAK;CACrD,SAAS;CACT,OAAO;CACP,aAAa;CACb,OAAO;CACP,iBAAiB;AAClB,EAAE,CAAC;;AAIH,MAAM,oCAAoC,EAAE,cAAc,yBAAyB;AAGnF,MAAM,6BAA6B;CAClC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,kCAAkC;CAChD,OAAO,EAAE,YAAY;EACpB,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC;EACxD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,OAAO;EACR;CACD,EAAE;AACH"}
package/dist/driver.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { t as MysqlControlDriver } from "./control-DHkZbo58.mjs";
2
- import { i as MysqlRuntimeDriver, n as MysqlDriverCreateOptions, r as MysqlPoolOptions, t as MysqlBinding } from "./runtime-BGyTXcQH.mjs";
3
- export { type MysqlBinding, MysqlControlDriver, type MysqlDriverCreateOptions, type MysqlPoolOptions, type MysqlRuntimeDriver };
1
+ import { n as createMysqlControlDriverDescriptor, t as MysqlControlDriver } from "./control-D7_IpeiU.mjs";
2
+ import { a as createMysqlRuntimeDriverDescriptor, i as MysqlRuntimeDriver, n as MysqlDriverCreateOptions, r as MysqlPoolOptions, t as MysqlBinding } from "./runtime-DN20lWEg.mjs";
3
+ export { type MysqlBinding, MysqlControlDriver, type MysqlDriverCreateOptions, type MysqlPoolOptions, type MysqlRuntimeDriver, createMysqlControlDriverDescriptor, createMysqlRuntimeDriverDescriptor };
package/dist/driver.mjs CHANGED
@@ -1,2 +1,3 @@
1
- import { t as MysqlControlDriver } from "./control-5eVF1TXc.mjs";
2
- export { MysqlControlDriver };
1
+ import { n as createMysqlControlDriverDescriptor, t as MysqlControlDriver } from "./control-BiZaCqna.mjs";
2
+ import { t as createMysqlRuntimeDriverDescriptor } from "./runtime-BGF0cSIt.mjs";
3
+ export { MysqlControlDriver, createMysqlControlDriverDescriptor, createMysqlRuntimeDriverDescriptor };
@@ -1,2 +1,2 @@
1
- import { n as mysqlDriverDescriptor, t as MysqlControlDriver } from "./control-DHkZbo58.mjs";
2
- export { MysqlControlDriver, mysqlDriverDescriptor as default };
1
+ import { n as createMysqlControlDriverDescriptor, r as mysqlDriverDescriptor, t as MysqlControlDriver } from "./control-D7_IpeiU.mjs";
2
+ export { MysqlControlDriver, createMysqlControlDriverDescriptor, mysqlDriverDescriptor as default };
@@ -1,2 +1,2 @@
1
- import { n as mysqlDriverDescriptor, t as MysqlControlDriver } from "./control-5eVF1TXc.mjs";
2
- export { MysqlControlDriver, mysqlDriverDescriptor as default };
1
+ import { n as createMysqlControlDriverDescriptor, r as mysqlDriverDescriptor, t as MysqlControlDriver } from "./control-BiZaCqna.mjs";
2
+ export { MysqlControlDriver, createMysqlControlDriverDescriptor, mysqlDriverDescriptor as default };
@@ -1,2 +1,2 @@
1
- import { a as mysqlRuntimeDriverDescriptor, i as MysqlRuntimeDriver, n as MysqlDriverCreateOptions, r as MysqlPoolOptions, t as MysqlBinding } from "./runtime-BGyTXcQH.mjs";
2
- export { type MysqlBinding, type MysqlDriverCreateOptions, type MysqlPoolOptions, type MysqlRuntimeDriver, mysqlRuntimeDriverDescriptor as default };
1
+ import { a as createMysqlRuntimeDriverDescriptor, i as MysqlRuntimeDriver, n as MysqlDriverCreateOptions, o as mysqlRuntimeDriverDescriptor, r as MysqlPoolOptions, t as MysqlBinding } from "./runtime-DN20lWEg.mjs";
2
+ export { type MysqlBinding, type MysqlDriverCreateOptions, type MysqlPoolOptions, type MysqlRuntimeDriver, createMysqlRuntimeDriverDescriptor, mysqlRuntimeDriverDescriptor as default };