@prisma/orm-mysql 0.0.0-stage → 8.0.0-rc.21

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 (392) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +44 -2
  3. package/dist/adapter.d.mts +1 -0
  4. package/dist/adapter.mjs +2 -0
  5. package/dist/adapter__adapter.d.mts +1 -0
  6. package/dist/adapter__adapter.mjs +2 -0
  7. package/dist/adapter__codec-types.d.mts +1 -0
  8. package/dist/adapter__codec-types.mjs +2 -0
  9. package/dist/adapter__control.d.mts +3 -0
  10. package/dist/adapter__control.mjs +3 -0
  11. package/dist/adapter__runtime.d.mts +3 -0
  12. package/dist/adapter__runtime.mjs +3 -0
  13. package/dist/builder.d.mts +1 -0
  14. package/dist/builder.mjs +2 -0
  15. package/dist/builder__runtime.d.mts +1 -0
  16. package/dist/builder__runtime.mjs +2 -0
  17. package/dist/builder__types.d.mts +1 -0
  18. package/dist/builder__types.mjs +2 -0
  19. package/dist/components.d.mts +1 -0
  20. package/dist/components.mjs +2 -0
  21. package/dist/components__authoring.d.mts +1 -0
  22. package/dist/components__authoring.mjs +2 -0
  23. package/dist/components__codec.d.mts +1 -0
  24. package/dist/components__codec.mjs +2 -0
  25. package/dist/components__components.d.mts +1 -0
  26. package/dist/components__components.mjs +2 -0
  27. package/dist/components__control.d.mts +1 -0
  28. package/dist/components__control.mjs +2 -0
  29. package/dist/components__emission.d.mts +1 -0
  30. package/dist/components__emission.mjs +2 -0
  31. package/dist/components__execution.d.mts +1 -0
  32. package/dist/components__execution.mjs +2 -0
  33. package/dist/components__ir.d.mts +1 -0
  34. package/dist/components__ir.mjs +2 -0
  35. package/dist/components__psl-ast.d.mts +1 -0
  36. package/dist/components__psl-ast.mjs +2 -0
  37. package/dist/components__runtime.d.mts +1 -0
  38. package/dist/components__runtime.mjs +2 -0
  39. package/dist/components__utils.d.mts +1 -0
  40. package/dist/components__utils.mjs +2 -0
  41. package/dist/config.d.mts +22 -0
  42. package/dist/config.d.mts.map +1 -0
  43. package/dist/config.mjs +41 -0
  44. package/dist/config.mjs.map +1 -0
  45. package/dist/contract-builder.d.mts +192 -0
  46. package/dist/contract-builder.d.mts.map +1 -0
  47. package/dist/contract-builder.mjs +37 -0
  48. package/dist/contract-builder.mjs.map +1 -0
  49. package/dist/contract.d.mts +1 -0
  50. package/dist/contract.mjs +2 -0
  51. package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -0
  52. package/dist/contract__apply-specifier-default-control-policy.mjs +2 -0
  53. package/dist/contract__contract-validation-error.d.mts +1 -0
  54. package/dist/contract__contract-validation-error.mjs +2 -0
  55. package/dist/contract__default-namespace.d.mts +1 -0
  56. package/dist/contract__default-namespace.mjs +2 -0
  57. package/dist/contract__enum-accessor.d.mts +1 -0
  58. package/dist/contract__enum-accessor.mjs +2 -0
  59. package/dist/contract__hashing-utils.d.mts +1 -0
  60. package/dist/contract__hashing-utils.mjs +2 -0
  61. package/dist/contract__hashing.d.mts +1 -0
  62. package/dist/contract__hashing.mjs +2 -0
  63. package/dist/contract__is-plain-record.d.mts +1 -0
  64. package/dist/contract__is-plain-record.mjs +2 -0
  65. package/dist/contract__resolve-domain-model.d.mts +1 -0
  66. package/dist/contract__resolve-domain-model.mjs +2 -0
  67. package/dist/contract__types.d.mts +1 -0
  68. package/dist/contract__types.mjs +2 -0
  69. package/dist/contract__validate-domain.d.mts +1 -0
  70. package/dist/contract__validate-domain.mjs +2 -0
  71. package/dist/contract__validate-once.d.mts +1 -0
  72. package/dist/contract__validate-once.mjs +2 -0
  73. package/dist/contract__validate-storage.d.mts +1 -0
  74. package/dist/contract__validate-storage.mjs +2 -0
  75. package/dist/control.d.mts +12 -0
  76. package/dist/control.d.mts.map +1 -0
  77. package/dist/control.mjs +22 -0
  78. package/dist/control.mjs.map +1 -0
  79. package/dist/driver.d.mts +1 -0
  80. package/dist/driver.mjs +2 -0
  81. package/dist/driver__control.d.mts +3 -0
  82. package/dist/driver__control.mjs +3 -0
  83. package/dist/driver__runtime.d.mts +3 -0
  84. package/dist/driver__runtime.mjs +3 -0
  85. package/dist/family-contract.d.mts +1 -0
  86. package/dist/family-contract.mjs +2 -0
  87. package/dist/family-contract__authored-check-naming.d.mts +1 -0
  88. package/dist/family-contract__authored-check-naming.mjs +2 -0
  89. package/dist/family-contract__canonicalization-hooks.d.mts +1 -0
  90. package/dist/family-contract__canonicalization-hooks.mjs +2 -0
  91. package/dist/family-contract__check-expressions.d.mts +1 -0
  92. package/dist/family-contract__check-expressions.mjs +2 -0
  93. package/dist/family-contract__codec-json-type.d.mts +1 -0
  94. package/dist/family-contract__codec-json-type.mjs +2 -0
  95. package/dist/family-contract__contract-view.d.mts +1 -0
  96. package/dist/family-contract__contract-view.mjs +2 -0
  97. package/dist/family-contract__data-type-support.d.mts +1 -0
  98. package/dist/family-contract__data-type-support.mjs +2 -0
  99. package/dist/family-contract__data-type.d.mts +1 -0
  100. package/dist/family-contract__data-type.mjs +2 -0
  101. package/dist/family-contract__entity-handle-lowering-hook.d.mts +1 -0
  102. package/dist/family-contract__entity-handle-lowering-hook.mjs +2 -0
  103. package/dist/family-contract__entity-kinds.d.mts +1 -0
  104. package/dist/family-contract__entity-kinds.mjs +2 -0
  105. package/dist/family-contract__factories.d.mts +1 -0
  106. package/dist/family-contract__factories.mjs +2 -0
  107. package/dist/family-contract__foreign-key-materialization.d.mts +1 -0
  108. package/dist/family-contract__foreign-key-materialization.mjs +2 -0
  109. package/dist/family-contract__generated-id-column-aliases.d.mts +1 -0
  110. package/dist/family-contract__generated-id-column-aliases.mjs +2 -0
  111. package/dist/family-contract__index-naming.d.mts +1 -0
  112. package/dist/family-contract__index-naming.mjs +2 -0
  113. package/dist/family-contract__index-type-validation.d.mts +1 -0
  114. package/dist/family-contract__index-type-validation.mjs +2 -0
  115. package/dist/family-contract__index-types.d.mts +1 -0
  116. package/dist/family-contract__index-types.mjs +2 -0
  117. package/dist/family-contract__referential-action-sql.d.mts +1 -0
  118. package/dist/family-contract__referential-action-sql.mjs +2 -0
  119. package/dist/family-contract__resolve-storage-table.d.mts +1 -0
  120. package/dist/family-contract__resolve-storage-table.mjs +2 -0
  121. package/dist/family-contract__sql-expression.d.mts +1 -0
  122. package/dist/family-contract__sql-expression.mjs +2 -0
  123. package/dist/family-contract__types.d.mts +1 -0
  124. package/dist/family-contract__types.mjs +2 -0
  125. package/dist/family-contract__validators.d.mts +1 -0
  126. package/dist/family-contract__validators.mjs +2 -0
  127. package/dist/family-contract__value-set-derivation-hook.d.mts +1 -0
  128. package/dist/family-contract__value-set-derivation-hook.mjs +2 -0
  129. package/dist/family-runtime.d.mts +1 -0
  130. package/dist/family-runtime.mjs +2 -0
  131. package/dist/family-runtime__internal__prepared-query.d.mts +1 -0
  132. package/dist/family-runtime__internal__prepared-query.mjs +2 -0
  133. package/dist/family__control-adapter.d.mts +1 -0
  134. package/dist/family__control-adapter.mjs +2 -0
  135. package/dist/family__control.d.mts +3 -0
  136. package/dist/family__control.mjs +3 -0
  137. package/dist/family__diff.d.mts +1 -0
  138. package/dist/family__diff.mjs +2 -0
  139. package/dist/family__ir.d.mts +1 -0
  140. package/dist/family__ir.mjs +2 -0
  141. package/dist/family__migration.d.mts +1 -0
  142. package/dist/family__migration.mjs +2 -0
  143. package/dist/family__pack.d.mts +3 -0
  144. package/dist/family__pack.mjs +3 -0
  145. package/dist/family__psl-build.d.mts +1 -0
  146. package/dist/family__psl-build.mjs +2 -0
  147. package/dist/family__psl-infer.d.mts +1 -0
  148. package/dist/family__psl-infer.mjs +2 -0
  149. package/dist/family__runtime.d.mts +3 -0
  150. package/dist/family__runtime.mjs +3 -0
  151. package/dist/family__verify.d.mts +1 -0
  152. package/dist/family__verify.mjs +2 -0
  153. package/dist/migration-tools__aggregate.d.mts +1 -0
  154. package/dist/migration-tools__aggregate.mjs +2 -0
  155. package/dist/migration-tools__contract-snapshot-store.d.mts +1 -0
  156. package/dist/migration-tools__contract-snapshot-store.mjs +2 -0
  157. package/dist/migration-tools__hash.d.mts +1 -0
  158. package/dist/migration-tools__hash.mjs +2 -0
  159. package/dist/migration-tools__io.d.mts +1 -0
  160. package/dist/migration-tools__io.mjs +2 -0
  161. package/dist/migration-tools__spaces.d.mts +1 -0
  162. package/dist/migration-tools__spaces.mjs +2 -0
  163. package/dist/migration.d.mts +1 -0
  164. package/dist/migration.mjs +2 -0
  165. package/dist/mysql-static-DcYvSThw-BMxDuGkP.mjs +83 -0
  166. package/dist/mysql-static-DcYvSThw-BMxDuGkP.mjs.map +1 -0
  167. package/dist/mysql-uiFioAtk-BuXtMcWO.d.mts +100 -0
  168. package/dist/mysql-uiFioAtk-BuXtMcWO.d.mts.map +1 -0
  169. package/dist/orm-client.d.mts +1 -0
  170. package/dist/orm-client.mjs +2 -0
  171. package/dist/relational-core.d.mts +1 -0
  172. package/dist/relational-core.mjs +2 -0
  173. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -0
  174. package/dist/relational-core__aggregate-descriptor-registry.mjs +2 -0
  175. package/dist/relational-core__ast.d.mts +1 -0
  176. package/dist/relational-core__ast.mjs +2 -0
  177. package/dist/relational-core__codec-descriptor-registry.d.mts +1 -0
  178. package/dist/relational-core__codec-descriptor-registry.mjs +2 -0
  179. package/dist/relational-core__collection-methods.d.mts +1 -0
  180. package/dist/relational-core__collection-methods.mjs +2 -0
  181. package/dist/relational-core__contract-free.d.mts +1 -0
  182. package/dist/relational-core__contract-free.mjs +2 -0
  183. package/dist/relational-core__expression.d.mts +1 -0
  184. package/dist/relational-core__expression.mjs +2 -0
  185. package/dist/relational-core__functions.d.mts +1 -0
  186. package/dist/relational-core__functions.mjs +2 -0
  187. package/dist/relational-core__index-reference.d.mts +1 -0
  188. package/dist/relational-core__index-reference.mjs +2 -0
  189. package/dist/relational-core__middleware.d.mts +1 -0
  190. package/dist/relational-core__middleware.mjs +2 -0
  191. package/dist/relational-core__plan.d.mts +1 -0
  192. package/dist/relational-core__plan.mjs +2 -0
  193. package/dist/relational-core__query-lane-context.d.mts +1 -0
  194. package/dist/relational-core__query-lane-context.mjs +2 -0
  195. package/dist/relational-core__types.d.mts +1 -0
  196. package/dist/relational-core__types.mjs +2 -0
  197. package/dist/runtime.d.mts +24 -0
  198. package/dist/runtime.d.mts.map +1 -0
  199. package/dist/runtime.mjs +266 -0
  200. package/dist/runtime.mjs.map +1 -0
  201. package/dist/schema-ir__types.d.mts +1 -0
  202. package/dist/schema-ir__types.mjs +2 -0
  203. package/dist/static.d.mts +25 -0
  204. package/dist/static.d.mts.map +1 -0
  205. package/dist/static.mjs +2 -0
  206. package/dist/target__codec-descriptor.d.mts +1 -0
  207. package/dist/target__codec-descriptor.mjs +2 -0
  208. package/dist/target__codec-ids.d.mts +1 -0
  209. package/dist/target__codec-ids.mjs +2 -0
  210. package/dist/target__codec-types.d.mts +1 -0
  211. package/dist/target__codec-types.mjs +2 -0
  212. package/dist/target__codecs.d.mts +1 -0
  213. package/dist/target__codecs.mjs +2 -0
  214. package/dist/target__contract-free.d.mts +1 -0
  215. package/dist/target__contract-free.mjs +2 -0
  216. package/dist/target__control-tables.d.mts +1 -0
  217. package/dist/target__control-tables.mjs +2 -0
  218. package/dist/target__control.d.mts +3 -0
  219. package/dist/target__control.mjs +3 -0
  220. package/dist/target__data-types.d.mts +1 -0
  221. package/dist/target__data-types.mjs +2 -0
  222. package/dist/target__ddl.d.mts +1 -0
  223. package/dist/target__ddl.mjs +2 -0
  224. package/dist/target__default-normalizer.d.mts +1 -0
  225. package/dist/target__default-normalizer.mjs +2 -0
  226. package/dist/target__errors.d.mts +1 -0
  227. package/dist/target__errors.mjs +2 -0
  228. package/dist/target__marker-lock.d.mts +1 -0
  229. package/dist/target__marker-lock.mjs +2 -0
  230. package/dist/target__migration.d.mts +1 -0
  231. package/dist/target__migration.mjs +2 -0
  232. package/dist/target__pack.d.mts +3 -0
  233. package/dist/target__pack.mjs +3 -0
  234. package/dist/target__runtime.d.mts +3 -0
  235. package/dist/target__runtime.mjs +3 -0
  236. package/dist/target__sql-utils.d.mts +1 -0
  237. package/dist/target__sql-utils.mjs +2 -0
  238. package/dist/utils.d.mts +1 -0
  239. package/dist/utils.mjs +2 -0
  240. package/dist/utils__abortable.d.mts +1 -0
  241. package/dist/utils__abortable.mjs +2 -0
  242. package/dist/utils__array-equal.d.mts +1 -0
  243. package/dist/utils__array-equal.mjs +2 -0
  244. package/dist/utils__assertions.d.mts +1 -0
  245. package/dist/utils__assertions.mjs +2 -0
  246. package/dist/utils__canonical-stringify.d.mts +1 -0
  247. package/dist/utils__canonical-stringify.mjs +2 -0
  248. package/dist/utils__casts.d.mts +1 -0
  249. package/dist/utils__casts.mjs +2 -0
  250. package/dist/utils__defined.d.mts +1 -0
  251. package/dist/utils__defined.mjs +2 -0
  252. package/dist/utils__hash-content.d.mts +1 -0
  253. package/dist/utils__hash-content.mjs +2 -0
  254. package/dist/utils__internal-error.d.mts +1 -0
  255. package/dist/utils__internal-error.mjs +2 -0
  256. package/dist/utils__json.d.mts +1 -0
  257. package/dist/utils__json.mjs +2 -0
  258. package/dist/utils__promise.d.mts +1 -0
  259. package/dist/utils__promise.mjs +2 -0
  260. package/dist/utils__redact-db-url.d.mts +1 -0
  261. package/dist/utils__redact-db-url.mjs +2 -0
  262. package/dist/utils__result.d.mts +1 -0
  263. package/dist/utils__result.mjs +2 -0
  264. package/dist/utils__simplify-deep.d.mts +1 -0
  265. package/dist/utils__simplify-deep.mjs +2 -0
  266. package/dist/utils__structured-error.d.mts +1 -0
  267. package/dist/utils__structured-error.mjs +2 -0
  268. package/dist/utils__suppress-idle-connection-errors.d.mts +1 -0
  269. package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
  270. package/dist/utils__text.d.mts +1 -0
  271. package/dist/utils__text.mjs +2 -0
  272. package/dist/utils__types.d.mts +1 -0
  273. package/dist/utils__types.mjs +2 -0
  274. package/dist/vite-plugin-contract-emit.d.mts +1 -0
  275. package/dist/vite-plugin-contract-emit.mjs +2 -0
  276. package/package.json +175 -3
  277. package/skills/prisma-8/SKILL.md +100 -0
  278. package/skills/prisma-8/references/build.md +142 -0
  279. package/skills/prisma-8/references/contract.md +548 -0
  280. package/skills/prisma-8/references/debug.md +150 -0
  281. package/skills/prisma-8/references/feedback.md +251 -0
  282. package/skills/prisma-8/references/migration-model.md +179 -0
  283. package/skills/prisma-8/references/migration-review.md +211 -0
  284. package/skills/prisma-8/references/migrations.md +622 -0
  285. package/skills/prisma-8/references/queries-mongo.md +238 -0
  286. package/skills/prisma-8/references/queries-postgres.md +710 -0
  287. package/skills/prisma-8/references/queries.md +253 -0
  288. package/skills/prisma-8/references/quickstart.md +317 -0
  289. package/skills/prisma-8/references/runtime.md +463 -0
  290. package/skills/prisma-8/references/supabase.md +234 -0
  291. package/skills/prisma-8/references/upgrade-app.md +102 -0
  292. package/skills/prisma-8/references/upgrade-extension.md +108 -0
  293. package/skills/prisma-8/upgrading/app/upgrades/0.10-to-0.11/instructions.md +56 -0
  294. package/skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/instructions.md +381 -0
  295. package/skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-closed-mongo-contracts.ts +202 -0
  296. package/skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-domain-namespaced-contracts.ts +201 -0
  297. package/skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-postgres-public-default.ts +198 -0
  298. package/skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/strip-migration-labels-hints.ts +340 -0
  299. package/skills/prisma-8/upgrading/app/upgrades/0.12-to-0.13/instructions.md +339 -0
  300. package/skills/prisma-8/upgrading/app/upgrades/0.12-to-0.13/re-emit-mti-variant-link-columns.ts +229 -0
  301. package/skills/prisma-8/upgrading/app/upgrades/0.13-to-0.14/instructions.md +543 -0
  302. package/skills/prisma-8/upgrading/app/upgrades/0.13-to-0.14/migration-op-factories-to-methods.ts +290 -0
  303. package/skills/prisma-8/upgrading/app/upgrades/0.13-to-0.14/uuid-preset-rename.ts +43 -0
  304. package/skills/prisma-8/upgrading/app/upgrades/0.14-to-0.15/instructions.md +359 -0
  305. package/skills/prisma-8/upgrading/app/upgrades/0.15-to-0.16/instructions.md +173 -0
  306. package/skills/prisma-8/upgrading/app/upgrades/0.16-to-0.17/instructions.md +805 -0
  307. package/skills/prisma-8/upgrading/app/upgrades/0.16-to-0.17/strip-sha256-hash-prefixes.ts +382 -0
  308. package/skills/prisma-8/upgrading/app/upgrades/0.17-to-8.0.0-rc.1/instructions.md +72 -0
  309. package/skills/prisma-8/upgrading/app/upgrades/0.7-to-0.8/instructions.md +8 -0
  310. package/skills/prisma-8/upgrading/app/upgrades/0.8-to-0.9/instructions.md +36 -0
  311. package/skills/prisma-8/upgrading/app/upgrades/0.8-to-0.9/strip-inline-contracts.ts +226 -0
  312. package/skills/prisma-8/upgrading/app/upgrades/0.9-to-0.10/instructions.md +86 -0
  313. package/skills/prisma-8/upgrading/app/upgrades/0.9-to-0.10/stamp-storage-types-kind.ts +360 -0
  314. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.1-to-8.0.0-rc.2/instructions.md +588 -0
  315. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.10-to-8.0.0-rc.11/instructions.md +34 -0
  316. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/instructions.md +639 -0
  317. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/scripts/multifile-psl/add-use-prisma-8-directive.mjs +60 -0
  318. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/scripts/psl-verbatim-table-names/add-model-map.mjs +256 -0
  319. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/instructions.md +332 -0
  320. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/scripts/execution-ref-entry-field/rename-execution-ref-keys.ts +193 -0
  321. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.13-to-8.0.0-rc.14/instructions.md +489 -0
  322. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.14-to-8.0.0-rc.15/instructions.md +1368 -0
  323. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.14-to-8.0.0-rc.15/scripts/data-type-in-contract/data-type-in-contract.ts +1492 -0
  324. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.15-to-8.0.0-rc.16/instructions.md +108 -0
  325. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.16-to-8.0.0-rc.17/instructions.md +755 -0
  326. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.17-to-8.0.0-rc.18/instructions.md +973 -0
  327. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.17-to-8.0.0-rc.18/scripts/sql-expression-literals-psl/rewrite-sql-strings.mjs +271 -0
  328. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/instructions.md +1862 -0
  329. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/client-takes-contract-value/contract-from-json.ts +597 -0
  330. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/data-type-values/data-type-values.ts +1120 -0
  331. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/default-generators-to-on-create/rewrite-default-generators.mjs +86 -0
  332. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/mongo-field-storage-names/mongo-field-storage-names.ts +304 -0
  333. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/remove-nocheck/remove-nocheck.ts +2462 -0
  334. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.19-to-8.0.0-rc.20/instructions.md +513 -0
  335. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.19-to-8.0.0-rc.20/scripts/expand-type-aliases/expand-type-aliases.ts +1206 -0
  336. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.2-to-8.0.0-rc.3/instructions.md +5 -0
  337. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.20-to-8.0.0-rc.21/instructions.md +802 -0
  338. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.3-to-8.0.0-rc.4/instructions.md +158 -0
  339. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.4-to-8.0.0-rc.5/instructions.md +42 -0
  340. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.5-to-8.0.0-rc.6/instructions.md +157 -0
  341. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.6-to-8.0.0-rc.7/instructions.md +33 -0
  342. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.7-to-8.0.0-rc.8/instructions.md +36 -0
  343. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.8-to-8.0.0-rc.9/instructions.md +63 -0
  344. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.9-to-8.0.0-rc.10/instructions.md +84 -0
  345. package/skills/prisma-8/upgrading/extension/upgrades/0.10-to-0.11/instructions.md +276 -0
  346. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/instructions.md +738 -0
  347. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/migrate-contract-testing-imports.ts +97 -0
  348. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/regenerate-extension-public-baseline.ts +223 -0
  349. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/strip-migration-labels-hints.ts +340 -0
  350. package/skills/prisma-8/upgrading/extension/upgrades/0.12-to-0.13/instructions.md +266 -0
  351. package/skills/prisma-8/upgrading/extension/upgrades/0.13-to-0.14/instructions.md +522 -0
  352. package/skills/prisma-8/upgrading/extension/upgrades/0.13-to-0.14/migration-op-factories-to-methods.ts +290 -0
  353. package/skills/prisma-8/upgrading/extension/upgrades/0.13-to-0.14/uuid-preset-rename.ts +43 -0
  354. package/skills/prisma-8/upgrading/extension/upgrades/0.14-to-0.15/instructions.md +803 -0
  355. package/skills/prisma-8/upgrading/extension/upgrades/0.15-to-0.16/instructions.md +219 -0
  356. package/skills/prisma-8/upgrading/extension/upgrades/0.16-to-0.17/instructions.md +731 -0
  357. package/skills/prisma-8/upgrading/extension/upgrades/0.16-to-0.17/strip-sha256-hash-prefixes.ts +382 -0
  358. package/skills/prisma-8/upgrading/extension/upgrades/0.17-to-8.0.0-rc.1/instructions.md +194 -0
  359. package/skills/prisma-8/upgrading/extension/upgrades/0.7-to-0.8/instructions.md +8 -0
  360. package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/instructions.md +57 -0
  361. package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/strip-inline-contracts.ts +226 -0
  362. package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/instructions.md +150 -0
  363. package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/stamp-storage-types-kind.ts +360 -0
  364. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.1-to-8.0.0-rc.2/instructions.md +746 -0
  365. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.10-to-8.0.0-rc.11/instructions.md +34 -0
  366. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/instructions.md +857 -0
  367. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.11-to-8.0.0-rc.12/scripts/psl-verbatim-table-names/add-model-map.mjs +256 -0
  368. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/instructions.md +504 -0
  369. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.12-to-8.0.0-rc.13/scripts/execution-ref-entry-field/rename-execution-ref-keys.ts +193 -0
  370. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.13-to-8.0.0-rc.14/instructions.md +143 -0
  371. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.14-to-8.0.0-rc.15/instructions.md +2168 -0
  372. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.14-to-8.0.0-rc.15/scripts/data-type-in-contract/data-type-in-contract.ts +1492 -0
  373. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.15-to-8.0.0-rc.16/instructions.md +223 -0
  374. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.16-to-8.0.0-rc.17/instructions.md +583 -0
  375. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.17-to-8.0.0-rc.18/instructions.md +1008 -0
  376. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/instructions.md +2186 -0
  377. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/client-takes-contract-value/contract-from-json.ts +597 -0
  378. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/data-type-values/data-type-values.ts +1120 -0
  379. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/default-generators-to-on-create/rewrite-default-generators.mjs +86 -0
  380. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/mongo-field-storage-names/mongo-field-storage-names.ts +304 -0
  381. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.18-to-8.0.0-rc.19/scripts/remove-nocheck/remove-nocheck.ts +2462 -0
  382. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.19-to-8.0.0-rc.20/instructions.md +381 -0
  383. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.19-to-8.0.0-rc.20/scripts/expand-type-aliases/expand-type-aliases.ts +1206 -0
  384. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.2-to-8.0.0-rc.3/instructions.md +5 -0
  385. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.20-to-8.0.0-rc.21/instructions.md +570 -0
  386. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.3-to-8.0.0-rc.4/instructions.md +137 -0
  387. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.4-to-8.0.0-rc.5/instructions.md +129 -0
  388. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.5-to-8.0.0-rc.6/instructions.md +102 -0
  389. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.6-to-8.0.0-rc.7/instructions.md +33 -0
  390. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.7-to-8.0.0-rc.8/instructions.md +35 -0
  391. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.8-to-8.0.0-rc.9/instructions.md +86 -0
  392. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.9-to-8.0.0-rc.10/instructions.md +63 -0
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/runtime";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/runtime/internal/prepared-query";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/runtime/internal/prepared-query";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/control-adapter";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/control-adapter";
2
+ export {};
@@ -0,0 +1,3 @@
1
+ import control_default from "@prisma/orm-family-sql/family/control";
2
+ export * from "@prisma/orm-family-sql/family/control";
3
+ export { control_default as default };
@@ -0,0 +1,3 @@
1
+ import control_default from "@prisma/orm-family-sql/family/control";
2
+ export * from "@prisma/orm-family-sql/family/control";
3
+ export { control_default as default };
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/diff";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/diff";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/ir";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/ir";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/migration";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/migration";
2
+ export {};
@@ -0,0 +1,3 @@
1
+ import pack_default from "@prisma/orm-family-sql/family/pack";
2
+ export * from "@prisma/orm-family-sql/family/pack";
3
+ export { pack_default as default };
@@ -0,0 +1,3 @@
1
+ import pack_default from "@prisma/orm-family-sql/family/pack";
2
+ export * from "@prisma/orm-family-sql/family/pack";
3
+ export { pack_default as default };
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/psl-build";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/psl-build";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/psl-infer";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/psl-infer";
2
+ export {};
@@ -0,0 +1,3 @@
1
+ import runtime_default from "@prisma/orm-family-sql/family/runtime";
2
+ export * from "@prisma/orm-family-sql/family/runtime";
3
+ export { runtime_default as default };
@@ -0,0 +1,3 @@
1
+ import runtime_default from "@prisma/orm-family-sql/family/runtime";
2
+ export * from "@prisma/orm-family-sql/family/runtime";
3
+ export { runtime_default as default };
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/family/verify";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/family/verify";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/aggregate";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/aggregate";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/contract-snapshot-store";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/contract-snapshot-store";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/hash";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/hash";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/io";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/io";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/spaces";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-toolchain/migration-tools/spaces";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-target-mysql/target/migration";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-target-mysql/target/migration";
2
+ export {};
@@ -0,0 +1,83 @@
1
+ import mysqlAdapter from "@prisma/orm-target-mysql/adapter/runtime";
2
+ import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
3
+ import { createRawLane, sql } from "@prisma/orm-family-sql/builder/runtime";
4
+ import { createExecutionContext, createSqlExecutionStack, createToSql } from "@prisma/orm-family-sql/runtime";
5
+ import mysqlTarget, { MysqlContractSerializer } from "@prisma/orm-target-mysql/target/runtime";
6
+ import { assertDefined } from "@prisma/orm-framework/utils/assertions";
7
+ import { blindCast } from "@prisma/orm-framework/utils/casts";
8
+ import { validateContractOnce } from "@prisma/orm-framework/contract/validate-once";
9
+ import { buildNamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor";
10
+ //#region ../../../3-targets/mysql/9-facade/dist/mysql-static-DcYvSThw.mjs
11
+ var version = "8.0.0-rc.21";
12
+ const serializer = new MysqlContractSerializer();
13
+ const validator = `${mysqlTarget.targetId}@${version}`;
14
+ /**
15
+ * Validates an emitted MySQL `contract.json` and returns it as the contract type the application
16
+ * names, ready to pass to `mysql({ contract })` and `mysqlStatic({ contract })`. Clients built
17
+ * from the result do not validate it again.
18
+ *
19
+ * The returned value's top level is frozen; its nested objects are not. Do not change `json` or the
20
+ * returned value after the call: clients built from the value later do not validate it again.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * import type { Contract } from './contract.d';
25
+ * import contractJson from './contract.json' with { type: 'json' };
26
+ *
27
+ * export const contract = contractFromJson<Contract>(contractJson);
28
+ * ```
29
+ */
30
+ function contractFromJson(json) {
31
+ return validateContractOnce(json, validator, (input) => serializer.deserializeContract(input));
32
+ }
33
+ function validateMysqlContract(contract) {
34
+ return validateContractOnce(contract, validator, () => serializer.deserializeContract(serializer.serializeContract(contract)));
35
+ }
36
+ function buildMysqlStaticContext(contract, context, stack) {
37
+ const { rawCodecInferer } = stack.adapter;
38
+ const sqlNamespace = sql({
39
+ context,
40
+ rawCodecInferer
41
+ })[UNBOUND_NAMESPACE_ID];
42
+ assertDefined(sqlNamespace, "the unbound namespace always exists on a mysql builder output");
43
+ const sqlDb = blindCast(sqlNamespace);
44
+ const raw = createRawLane({
45
+ context,
46
+ rawCodecInferer
47
+ });
48
+ const enums = Object.freeze(buildNamespacedEnums(context.contract.domain, (codecId) => context.contractCodecs.forCodecRef({ codecId })))[UNBOUND_NAMESPACE_ID];
49
+ assertDefined(enums, "the unbound namespace always exists on a mysql builder output");
50
+ return {
51
+ context,
52
+ contract,
53
+ enums,
54
+ sql: sqlDb,
55
+ raw,
56
+ toSql: createToSql(stack, contract)
57
+ };
58
+ }
59
+ /**
60
+ * The query surfaces of a MySQL client without a driver: `sql`, `raw`, `enums` and `toSql`. Use
61
+ * it where loading the MySQL driver is not wanted.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const { enums } = mysqlStatic({ contract: contractFromJson<Contract>(contractJson) });
66
+ * ```
67
+ */
68
+ function mysqlStatic(options) {
69
+ const contract = validateMysqlContract(options.contract);
70
+ const stack = createSqlExecutionStack({
71
+ target: mysqlTarget,
72
+ adapter: mysqlAdapter,
73
+ extensions: options.extensions ?? []
74
+ });
75
+ return buildMysqlStaticContext(contract, createExecutionContext({
76
+ contract,
77
+ stack
78
+ }), stack);
79
+ }
80
+ //#endregion
81
+ export { validateMysqlContract as i, contractFromJson as n, mysqlStatic as r, buildMysqlStaticContext as t };
82
+
83
+ //# sourceMappingURL=mysql-static-DcYvSThw-BMxDuGkP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql-static-DcYvSThw-BMxDuGkP.mjs","names":[],"sources":["../../../../3-targets/mysql/9-facade/dist/mysql-static-DcYvSThw.mjs"],"sourcesContent":["import mysqlAdapter from \"@internal/adapter-mysql/runtime\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { createRawLane, sql } from \"@internal/sql-builder/runtime\";\nimport { createExecutionContext, createSqlExecutionStack, createToSql } from \"@internal/sql-runtime\";\nimport mysqlTarget, { MysqlContractSerializer } from \"@internal/target-mysql/runtime\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { validateContractOnce } from \"@internal/contract/validate-once\";\nimport { buildNamespacedEnums } from \"@internal/contract/enum-accessor\";\n//#region package.json\nvar version = \"8.0.0-rc.21\";\n//#endregion\n//#region src/static/contract-from-json.ts\nconst serializer = new MysqlContractSerializer();\nconst validator = `${mysqlTarget.targetId}@${version}`;\n/**\n* Validates an emitted MySQL `contract.json` and returns it as the contract type the application\n* names, ready to pass to `mysql({ contract })` and `mysqlStatic({ contract })`. Clients built\n* from the result do not validate it again.\n*\n* The returned value's top level is frozen; its nested objects are not. Do not change `json` or the\n* returned value after the call: clients built from the value later do not validate it again.\n*\n* @example\n* ```ts\n* import type { Contract } from './contract.d';\n* import contractJson from './contract.json' with { type: 'json' };\n*\n* export const contract = contractFromJson<Contract>(contractJson);\n* ```\n*/\nfunction contractFromJson(json) {\n\treturn validateContractOnce(json, validator, (input) => serializer.deserializeContract(input));\n}\nfunction validateMysqlContract(contract) {\n\treturn validateContractOnce(contract, validator, () => serializer.deserializeContract(serializer.serializeContract(contract)));\n}\n//#endregion\n//#region src/static/mysql-static.ts\nfunction buildMysqlStaticContext(contract, context, stack) {\n\tconst { rawCodecInferer } = stack.adapter;\n\tconst sqlNamespace = sql({\n\t\tcontext,\n\t\trawCodecInferer\n\t})[UNBOUND_NAMESPACE_ID];\n\tassertDefined(sqlNamespace, \"the unbound namespace always exists on a mysql builder output\");\n\tconst sqlDb = blindCast(sqlNamespace);\n\tconst raw = createRawLane({\n\t\tcontext,\n\t\trawCodecInferer\n\t});\n\tconst enums = Object.freeze(buildNamespacedEnums(context.contract.domain, (codecId) => context.contractCodecs.forCodecRef({ codecId })))[UNBOUND_NAMESPACE_ID];\n\tassertDefined(enums, \"the unbound namespace always exists on a mysql builder output\");\n\treturn {\n\t\tcontext,\n\t\tcontract,\n\t\tenums,\n\t\tsql: sqlDb,\n\t\traw,\n\t\ttoSql: createToSql(stack, contract)\n\t};\n}\n/**\n* The query surfaces of a MySQL client without a driver: `sql`, `raw`, `enums` and `toSql`. Use\n* it where loading the MySQL driver is not wanted.\n*\n* @example\n* ```ts\n* const { enums } = mysqlStatic({ contract: contractFromJson<Contract>(contractJson) });\n* ```\n*/\nfunction mysqlStatic(options) {\n\tconst contract = validateMysqlContract(options.contract);\n\tconst stack = createSqlExecutionStack({\n\t\ttarget: mysqlTarget,\n\t\tadapter: mysqlAdapter,\n\t\textensions: options.extensions ?? []\n\t});\n\treturn buildMysqlStaticContext(contract, createExecutionContext({\n\t\tcontract,\n\t\tstack\n\t}), stack);\n}\n//#endregion\nexport { validateMysqlContract as i, mysqlStatic as n, contractFromJson as r, buildMysqlStaticContext as t };\n\n//# sourceMappingURL=mysql-static-DcYvSThw.mjs.map"],"mappings":";;;;;;;;;;AAUA,IAAI,UAAU;AAGd,MAAM,aAAa,IAAI,wBAAwB;AAC/C,MAAM,YAAY,GAAG,YAAY,SAAS,GAAG;;;;;;;;;;;;;;;;;AAiB7C,SAAS,iBAAiB,MAAM;CAC/B,OAAO,qBAAqB,MAAM,YAAY,UAAU,WAAW,oBAAoB,KAAK,CAAC;AAC9F;AACA,SAAS,sBAAsB,UAAU;CACxC,OAAO,qBAAqB,UAAU,iBAAiB,WAAW,oBAAoB,WAAW,kBAAkB,QAAQ,CAAC,CAAC;AAC9H;AAGA,SAAS,wBAAwB,UAAU,SAAS,OAAO;CAC1D,MAAM,EAAE,oBAAoB,MAAM;CAClC,MAAM,eAAe,IAAI;EACxB;EACA;CACD,CAAC,CAAC,CAAC;CACH,cAAc,cAAc,+DAA+D;CAC3F,MAAM,QAAQ,UAAU,YAAY;CACpC,MAAM,MAAM,cAAc;EACzB;EACA;CACD,CAAC;CACD,MAAM,QAAQ,OAAO,OAAO,qBAAqB,QAAQ,SAAS,SAAS,YAAY,QAAQ,eAAe,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;CACzI,cAAc,OAAO,+DAA+D;CACpF,OAAO;EACN;EACA;EACA;EACA,KAAK;EACL;EACA,OAAO,YAAY,OAAO,QAAQ;CACnC;AACD;;;;;;;;;;AAUA,SAAS,YAAY,SAAS;CAC7B,MAAM,WAAW,sBAAsB,QAAQ,QAAQ;CACvD,MAAM,QAAQ,wBAAwB;EACrC,QAAQ;EACR,SAAS;EACT,YAAY,QAAQ,cAAc,CAAC;CACpC,CAAC;CACD,OAAO,wBAAwB,UAAU,uBAAuB;EAC/D;EACA;CACD,CAAC,GAAG,KAAK;AACV"}
@@ -0,0 +1,100 @@
1
+ import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
2
+ import { ExecutionContext, Log, Runtime, RuntimeMode, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, ToSqlMember, TransactionContext, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime";
3
+ import { NamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor";
4
+ import { MysqlPoolOptions } from "@prisma/orm-target-mysql/driver/runtime";
5
+ import { CollectionClasses, NoCollectionClasses, OrmClientRootMembers, PrepareMember, orm } from "@prisma/orm-family-sql/orm-client";
6
+ import { Contract } from "@prisma/orm-framework/contract/types";
7
+ import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
8
+ import { Db, RawLane } from "@prisma/orm-family-sql/builder/types";
9
+ import { RuntimeScope } from "@prisma/orm-family-sql/relational-core/types";
10
+ //#region ../../../3-targets/mysql/9-facade/dist/mysql-uiFioAtk.d.mts
11
+ //#region src/static/mysql-static.d.ts
12
+ type UnboundSql$1<TContract extends Contract<SqlStorage>> = Db<TContract>[typeof UNBOUND_NAMESPACE_ID];
13
+ type UnboundEnums<TContract extends Contract<SqlStorage>> = NamespacedEnums<TContract>[typeof UNBOUND_NAMESPACE_ID];
14
+ interface MysqlStaticContext<TContract extends Contract<SqlStorage>> extends ToSqlMember {
15
+ readonly context: ExecutionContext<TContract>;
16
+ readonly contract: TContract;
17
+ readonly enums: UnboundEnums<TContract>;
18
+ readonly sql: UnboundSql$1<TContract>;
19
+ readonly raw: RawLane<TContract>;
20
+ }
21
+ /**
22
+ * The query surfaces of a MySQL client without a driver: `sql`, `raw`, `enums` and `toSql`. Use
23
+ * it where loading the MySQL driver is not wanted.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const { enums } = mysqlStatic({ contract: contractFromJson<Contract>(contractJson) });
28
+ * ```
29
+ */
30
+ declare function mysqlStatic<TContract extends Contract<SqlStorage>>(options: {
31
+ readonly contract: TContract;
32
+ readonly extensions?: readonly SqlRuntimeExtensionDescriptor<MysqlTargetId>[];
33
+ }): MysqlStaticContext<TContract>;
34
+ //#endregion
35
+ //#region src/runtime/mysql.d.ts
36
+ type MysqlTargetId = 'mysql';
37
+ type OrmClient<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses> = ReturnType<typeof orm<TContract, TCollections>>;
38
+ type UnboundSql<TContract extends Contract<SqlStorage>> = Db<TContract>[typeof UNBOUND_NAMESPACE_ID];
39
+ type UnboundOrm<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses> = OrmClient<TContract, TCollections>[typeof UNBOUND_NAMESPACE_ID];
40
+ /** The models of MySQL's single namespace, and `fragment` unless a model is named `fragment`. */
41
+ type MysqlOrm<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses> = 'fragment' extends keyof UnboundOrm<TContract, TCollections> ? UnboundOrm<TContract, TCollections> : UnboundOrm<TContract, TCollections> & OrmClientRootMembers<TContract>;
42
+ /** The query members of a MySQL client, which its transactions offer with the same types. */
43
+ interface MysqlQueryMembers<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses> extends PrepareMember<TContract>, RuntimeScope, ToSqlMember {
44
+ readonly sql: UnboundSql<TContract>;
45
+ readonly orm: MysqlOrm<TContract, TCollections>;
46
+ readonly raw: RawLane<TContract>;
47
+ }
48
+ interface MysqlTransactionContext<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses> extends TransactionContext, MysqlQueryMembers<TContract, TCollections> {
49
+ readonly enums: MysqlStaticContext<TContract>['enums'];
50
+ }
51
+ interface MysqlStaticMembers<TContract extends Contract<SqlStorage>> extends MysqlStaticContext<TContract> {
52
+ readonly stack: SqlExecutionStackWithDriver<MysqlTargetId>;
53
+ }
54
+ interface MysqlClient<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses> extends MysqlQueryMembers<TContract, TCollections>, MysqlStaticMembers<TContract> {
55
+ connect(bindingInput?: {
56
+ readonly url: string;
57
+ }): Promise<Runtime>;
58
+ runtime(): Runtime;
59
+ transaction<R>(fn: (tx: MysqlTransactionContext<TContract, TCollections>) => PromiseLike<R>): Promise<R>;
60
+ close(): Promise<void>;
61
+ [Symbol.asyncDispose](): Promise<void>;
62
+ }
63
+ interface MysqlOptionsBase {
64
+ readonly extensions?: readonly SqlRuntimeExtensionDescriptor<MysqlTargetId>[];
65
+ readonly middleware?: readonly SqlMiddleware[];
66
+ readonly verifyMarker?: VerifyMarkerOption;
67
+ readonly log?: Log;
68
+ readonly mode?: RuntimeMode;
69
+ /**
70
+ * Stream each query's rows as they arrive. Unset reads the whole result before the first row, as the Postgres facade does without `cursor`. It is a boolean, not Postgres's `cursor: { batchSize }`, because MySQL has no server-side cursor for a query: the server sends the whole result and the driver reads it from the socket as the caller asks for rows. A value that is not a boolean fails the factory call. While a stream on a connection is open, a statement sent on the same connection waits for it, so one awaited inside the loop over a stream in a transaction never finishes.
71
+ */
72
+ readonly stream?: boolean;
73
+ readonly poolOptions?: MysqlPoolOptions;
74
+ }
75
+ type MysqlOptions<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses> = MysqlOptionsBase & {
76
+ readonly contract: TContract;
77
+ readonly collections?: TCollections;
78
+ readonly url?: string;
79
+ };
80
+ /**
81
+ * Creates a lazy MySQL client. The client infers its contract type from `contract`: a value from
82
+ * `contractFromJson` for an emitted contract, or a TypeScript-authored contract. A contract is
83
+ * validated once, however many clients are built from it. The database opens on the first query
84
+ * or `connect()`.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * import { contractFromJson } from '@prisma/orm-mysql/static';
89
+ * import mysql from '@prisma/orm-mysql/runtime';
90
+ * import type { Contract } from './contract.d';
91
+ * import contractJson from './contract.json' with { type: 'json' };
92
+ *
93
+ * export const contract = contractFromJson<Contract>(contractJson);
94
+ * export const db = mysql({ contract, url: process.env.DATABASE_URL });
95
+ * ```
96
+ */
97
+ declare function mysql<TContract extends Contract<SqlStorage>, TCollections extends CollectionClasses = NoCollectionClasses>(options: MysqlOptions<TContract, TCollections>): MysqlClient<TContract, TCollections>;
98
+ //#endregion
99
+ export { MysqlQueryMembers as a, MysqlTargetId as c, mysqlStatic as d, MysqlOrm as i, MysqlTransactionContext as l, MysqlOptions as n, MysqlStaticContext as o, MysqlOptionsBase as r, MysqlStaticMembers as s, MysqlClient as t, mysql as u };
100
+ //# sourceMappingURL=mysql-uiFioAtk-BuXtMcWO.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql-uiFioAtk-BuXtMcWO.d.mts","names":[],"sources":["../../../../3-targets/mysql/9-facade/dist/mysql-uiFioAtk.d.mts"],"mappings":";;;;;;;;;;;KAUK,aAAa,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC5E,aAAa,kBAAkB,SAAS,eAAe,gBAAgB,kBAAkB;UACpF,mBAAmB,kBAAkB,SAAS,qBAAqB;WAClE,SAAS,iBAAiB;WAC1B,UAAU;WACV,OAAO,aAAa;WACpB,KAAK,aAAa;WAClB,KAAK,QAAQ;;;;;;;;;;;iBAWP,YAAY,kBAAkB,SAAS,aAAa;WAC1D,UAAU;WACV,sBAAsB,8BAA8B;IAC3D,mBAAmB;;;KAGlB;KACA,UAAU,kBAAkB,SAAS,aAAa,qBAAqB,qBAAqB,kBAAkB,IAAI,WAAW;KAC7H,WAAW,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC1E,WAAW,kBAAkB,SAAS,aAAa,qBAAqB,qBAAqB,UAAU,WAAW,qBAAqB;;KAEvI,SAAS,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,gDAAgD,WAAW,WAAW,gBAAgB,WAAW,WAAW,gBAAgB,WAAW,WAAW,gBAAgB,qBAAqB;;UAE5Q,kBAAkB,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,6BAA6B,cAAc,YAAY,cAAc;WACvK,KAAK,WAAW;WAChB,KAAK,SAAS,WAAW;WACzB,KAAK,QAAQ;;UAEd,wBAAwB,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,6BAA6B,oBAAoB,kBAAkB,WAAW;WACtL,OAAO,mBAAmB;;UAE3B,mBAAmB,kBAAkB,SAAS,qBAAqB,mBAAmB;WACrF,OAAO,4BAA4B;;UAEpC,YAAY,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,6BAA6B,kBAAkB,WAAW,eAAe,mBAAmB;EACjM,QAAQ;aACG;MACP,QAAQ;EACZ,WAAW;EACX,YAAY,GAAG,KAAK,IAAI,wBAAwB,WAAW,kBAAkB,YAAY,KAAK,QAAQ;EACtG,SAAS;GACR,OAAO,iBAAiB;;UAEjB;WACC,sBAAsB,8BAA8B;WACpD,sBAAsB;WACtB,eAAe;WACf,MAAM;WACN,OAAO;;;;WAIP;WACA,cAAc;;KAEpB,aAAa,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,uBAAuB;WAC/G,UAAU;WACV,cAAc;WACd;;;;;;;;;;;;;;;;;;;iBAmBM,MAAM,kBAAkB,SAAS,aAAa,qBAAqB,oBAAoB,qBAAqB,SAAS,aAAa,WAAW,gBAAgB,YAAY,WAAW"}
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/orm-client";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/orm-client";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/aggregate-descriptor-registry";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/aggregate-descriptor-registry";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/ast";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/ast";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/collection-methods";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/collection-methods";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/contract-free";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/contract-free";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/expression";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/expression";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/functions";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/functions";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/index-reference";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/index-reference";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/middleware";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/middleware";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/plan";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/plan";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/query-lane-context";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/query-lane-context";
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/types";
@@ -0,0 +1,2 @@
1
+ export * from "@prisma/orm-family-sql/relational-core/types";
2
+ export {};
@@ -0,0 +1,24 @@
1
+ import { a as MysqlQueryMembers, c as MysqlTargetId, i as MysqlOrm, l as MysqlTransactionContext, n as MysqlOptions, r as MysqlOptionsBase, s as MysqlStaticMembers, t as MysqlClient, u as mysql } from "./mysql-uiFioAtk-BuXtMcWO.mjs";
2
+ import { Runtime, SqlRuntimeBase } from "@prisma/orm-family-sql/runtime";
3
+ import { MysqlPoolOptions } from "@prisma/orm-target-mysql/driver/runtime";
4
+ import { Contract } from "@prisma/orm-framework/contract/types";
5
+ import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
6
+ //#region ../../../3-targets/mysql/9-facade/dist/runtime.d.mts
7
+ //#region src/runtime/binding.d.ts
8
+ type MysqlBindingInput = {
9
+ readonly url: string;
10
+ };
11
+ //#endregion
12
+ //#region src/runtime/mysql-runtime.d.ts
13
+ /**
14
+ * The MySQL runtime interface. App code depends on this — `mysql()` returns it
15
+ * and `Runtime` (the common interface) is the everyday parameter type.
16
+ *
17
+ * `MysqlRuntimeImpl` is the implementing class. It is exported so that other
18
+ * extensions can subclass it; app code never references it directly.
19
+ */
20
+ interface MysqlRuntime extends Runtime {}
21
+ declare class MysqlRuntimeImpl<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> extends SqlRuntimeBase<TContract> {}
22
+ //#endregion
23
+ export { type MysqlBindingInput, type MysqlClient, type MysqlOptions, type MysqlOptionsBase, type MysqlOrm, type MysqlPoolOptions, type MysqlQueryMembers, type MysqlRuntime, MysqlRuntimeImpl, type MysqlStaticMembers, type MysqlTargetId, type MysqlTransactionContext, mysql as default };
24
+ //# sourceMappingURL=runtime.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../../../3-targets/mysql/9-facade/dist/runtime.d.mts"],"mappings":";;;;;;;KAMK;WACM;;;;;;;;;;;UAWD,qBAAqB;cACjB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS,qBAAqB,eAAe"}