@ohos-ports/prisma-internals 7.10.0-beta.0

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 (328) hide show
  1. package/LICENSE +201 -0
  2. package/dist/Generator.d.ts +42 -0
  3. package/dist/Generator.js +29 -0
  4. package/dist/WasmPanicRegistry.d.ts +5 -0
  5. package/dist/WasmPanicRegistry.js +25 -0
  6. package/dist/WasmSchemaEngineLoader.d.ts +5 -0
  7. package/dist/WasmSchemaEngineLoader.js +25 -0
  8. package/dist/built-in-provider.d.ts +5 -0
  9. package/dist/built-in-provider.js +25 -0
  10. package/dist/chunk-2B26F5N3.js +72 -0
  11. package/dist/chunk-2IOZUH3U.js +26 -0
  12. package/dist/chunk-2SDPW6AX.js +39 -0
  13. package/dist/chunk-3IMRWXIL.js +176 -0
  14. package/dist/chunk-3TYD3ZGQ.js +115 -0
  15. package/dist/chunk-3U4QB2G3.js +166 -0
  16. package/dist/chunk-3VD46SL7.js +151 -0
  17. package/dist/chunk-3YOF262C.js +176 -0
  18. package/dist/chunk-3ZHE2IX4.js +55 -0
  19. package/dist/chunk-4VNS5WPM.js +61 -0
  20. package/dist/chunk-5AI4FIZ3.js +1342 -0
  21. package/dist/chunk-5BDP445D.js +51 -0
  22. package/dist/chunk-5DBOS77Y.js +609 -0
  23. package/dist/chunk-5FJ3MENK.js +30 -0
  24. package/dist/chunk-5I4ERIIY.js +30 -0
  25. package/dist/chunk-5PJQQKQI.js +106 -0
  26. package/dist/chunk-5VQNKCKW.js +38 -0
  27. package/dist/chunk-5WRIOIZY.js +31 -0
  28. package/dist/chunk-6JE6QGSJ.js +37 -0
  29. package/dist/chunk-6PWHYRKR.js +74 -0
  30. package/dist/chunk-6QMQ2JYG.js +122 -0
  31. package/dist/chunk-6Z766KGR.js +95 -0
  32. package/dist/chunk-74RGCSUJ.js +44 -0
  33. package/dist/chunk-7B5PXS6N.js +29 -0
  34. package/dist/chunk-ANU3HEGF.js +29 -0
  35. package/dist/chunk-BERN76ZI.js +347 -0
  36. package/dist/chunk-BGMZPA2F.js +39 -0
  37. package/dist/chunk-BPDMLM32.js +105 -0
  38. package/dist/chunk-C47SCASR.js +37 -0
  39. package/dist/chunk-CGFNDGGI.js +40 -0
  40. package/dist/chunk-CTQD6OLG.js +438 -0
  41. package/dist/chunk-CUD726EK.js +36 -0
  42. package/dist/chunk-CXEXLFVL.js +166 -0
  43. package/dist/chunk-CYAS6B5N.js +48 -0
  44. package/dist/chunk-D4VZUY3O.js +71 -0
  45. package/dist/chunk-DODIJPCS.js +34 -0
  46. package/dist/chunk-DTPFRZWV.js +31 -0
  47. package/dist/chunk-DUDEWDFC.js +101 -0
  48. package/dist/chunk-DZ4QWHTB.js +127 -0
  49. package/dist/chunk-E23HYCQJ.js +37 -0
  50. package/dist/chunk-E476ARWS.js +2091 -0
  51. package/dist/chunk-EKGEKB22.js +28 -0
  52. package/dist/chunk-EU6UOKRD.js +26 -0
  53. package/dist/chunk-EWPXLBGE.js +115 -0
  54. package/dist/chunk-FCYHZHVW.js +43 -0
  55. package/dist/chunk-FRVJZOHP.js +1823 -0
  56. package/dist/chunk-GJSFP4V4.js +30 -0
  57. package/dist/chunk-GXW4NTU2.js +34 -0
  58. package/dist/chunk-H4NI2RIK.js +35 -0
  59. package/dist/chunk-HHG4DGHC.js +496 -0
  60. package/dist/chunk-HPVMQFIY.js +407 -0
  61. package/dist/chunk-I2CBQZJY.js +122 -0
  62. package/dist/chunk-I4K46RGG.js +31 -0
  63. package/dist/chunk-I6WLABB2.js +429 -0
  64. package/dist/chunk-ICFLO5JW.js +26 -0
  65. package/dist/chunk-IL7PSY44.js +26 -0
  66. package/dist/chunk-IOIAK7V7.js +53 -0
  67. package/dist/chunk-IYN5VKMD.js +110 -0
  68. package/dist/chunk-J77ZIDXB.js +69 -0
  69. package/dist/chunk-J7ZPY2XA.js +47 -0
  70. package/dist/chunk-JFXHOFJA.js +46 -0
  71. package/dist/chunk-JOIHHXR6.js +2067 -0
  72. package/dist/chunk-JPZYSRK3.js +6412 -0
  73. package/dist/chunk-JTKAT4KZ.js +26 -0
  74. package/dist/chunk-K2EOOA2X.js +91 -0
  75. package/dist/chunk-KDP6C3CB.js +56 -0
  76. package/dist/chunk-L3LDE52J.js +51 -0
  77. package/dist/chunk-L6V54WGO.js +39 -0
  78. package/dist/chunk-LMVSIVKQ.js +62 -0
  79. package/dist/chunk-LPNBWFQ3.js +38 -0
  80. package/dist/chunk-LRBXMV4B.js +26 -0
  81. package/dist/chunk-LRU47BGE.js +78 -0
  82. package/dist/chunk-M3GBKLGE.js +24 -0
  83. package/dist/chunk-MCS5ZY6Y.js +27 -0
  84. package/dist/chunk-NBWRGVYR.js +47 -0
  85. package/dist/chunk-NIWBAJZV.js +36 -0
  86. package/dist/chunk-NTDBN2N2.js +104 -0
  87. package/dist/chunk-NVNI2SRU.js +4230 -0
  88. package/dist/chunk-OIVPX3BR.js +32 -0
  89. package/dist/chunk-PFYALFCY.js +26 -0
  90. package/dist/chunk-PG5FDKSF.js +79 -0
  91. package/dist/chunk-PKF53VLJ.js +26 -0
  92. package/dist/chunk-PTPRBA7K.js +6675 -0
  93. package/dist/chunk-QBNYSYZK.js +74 -0
  94. package/dist/chunk-QMNPESAP.js +124 -0
  95. package/dist/chunk-QN6PSQY7.js +37 -0
  96. package/dist/chunk-QVJ2BXKF.js +3997 -0
  97. package/dist/chunk-R47SFJ5Z.js +104 -0
  98. package/dist/chunk-R6QH57HZ.js +311 -0
  99. package/dist/chunk-RBDYOTWB.js +193 -0
  100. package/dist/chunk-SBUSVJCV.js +62 -0
  101. package/dist/chunk-SP2ETLT2.js +41 -0
  102. package/dist/chunk-TPCPXGC5.js +218 -0
  103. package/dist/chunk-TWSLDIFL.js +48 -0
  104. package/dist/chunk-UGR6KLZN.js +30 -0
  105. package/dist/chunk-UMM35VP5.js +1193 -0
  106. package/dist/chunk-VFNP7Q3Y.js +15529 -0
  107. package/dist/chunk-VNIE2AZB.js +41 -0
  108. package/dist/chunk-VUGB2H7M.js +438 -0
  109. package/dist/chunk-WFMA7DI5.js +92 -0
  110. package/dist/chunk-WV4QHCSM.js +26 -0
  111. package/dist/chunk-WXRVYSYN.js +33 -0
  112. package/dist/chunk-X3P4J7WW.js +28 -0
  113. package/dist/chunk-X77CS5RK.js +33 -0
  114. package/dist/chunk-XAAVALN7.js +110 -0
  115. package/dist/chunk-XXTPN4LB.js +41 -0
  116. package/dist/chunk-XYCIH36R.js +29 -0
  117. package/dist/chunk-Y4TOGY6I.js +30 -0
  118. package/dist/chunk-YNDZCLVL.js +307 -0
  119. package/dist/chunk-YXB6APHS.js +447 -0
  120. package/dist/chunk-ZJWZK45Z.js +68 -0
  121. package/dist/chunk-ZKWDIAVF.js +29 -0
  122. package/dist/cli/Help.d.ts +11 -0
  123. package/dist/cli/Help.js +27 -0
  124. package/dist/cli/checkUnsupportedDataProxy.d.ts +16 -0
  125. package/dist/cli/checkUnsupportedDataProxy.js +125 -0
  126. package/dist/cli/completion-values.d.ts +24 -0
  127. package/dist/cli/completion-values.js +47 -0
  128. package/dist/cli/directoryConfig.d.ts +11 -0
  129. package/dist/cli/directoryConfig.js +25 -0
  130. package/dist/cli/getGeneratorSuccessMessage.d.ts +7 -0
  131. package/dist/cli/getGeneratorSuccessMessage.js +29 -0
  132. package/dist/cli/getSchema.d.ts +46 -0
  133. package/dist/cli/getSchema.js +31 -0
  134. package/dist/cli/getTypescriptVersion.d.ts +1 -0
  135. package/dist/cli/getTypescriptVersion.js +25 -0
  136. package/dist/cli/hashes.d.ts +11 -0
  137. package/dist/cli/hashes.js +28 -0
  138. package/dist/cli/schemaContext.d.ts +56 -0
  139. package/dist/cli/schemaContext.js +126 -0
  140. package/dist/cli/types.d.ts +63 -0
  141. package/dist/cli/types.js +1 -0
  142. package/dist/cli/utils.d.ts +13 -0
  143. package/dist/cli/utils.js +27 -0
  144. package/dist/convertCredentials.d.ts +10 -0
  145. package/dist/convertCredentials.js +28 -0
  146. package/dist/engine-commands/errorHelpers.d.ts +4 -0
  147. package/dist/engine-commands/errorHelpers.js +28 -0
  148. package/dist/engine-commands/formatSchema.d.ts +22 -0
  149. package/dist/engine-commands/formatSchema.js +124 -0
  150. package/dist/engine-commands/getConfig.d.ts +27 -0
  151. package/dist/engine-commands/getConfig.js +39 -0
  152. package/dist/engine-commands/getDmmf.d.ts +21 -0
  153. package/dist/engine-commands/getDmmf.js +40 -0
  154. package/dist/engine-commands/getEngineVersion.d.ts +4 -0
  155. package/dist/engine-commands/getEngineVersion.js +33 -0
  156. package/dist/engine-commands/getEnginesInfo.d.ts +20 -0
  157. package/dist/engine-commands/getEnginesInfo.js +36 -0
  158. package/dist/engine-commands/index.d.ts +10 -0
  159. package/dist/engine-commands/index.js +136 -0
  160. package/dist/engine-commands/lintSchema.d.ts +26 -0
  161. package/dist/engine-commands/lintSchema.js +34 -0
  162. package/dist/engine-commands/mergeSchemas.d.ts +12 -0
  163. package/dist/engine-commands/mergeSchemas.js +39 -0
  164. package/dist/engine-commands/queryEngineCommons.d.ts +31 -0
  165. package/dist/engine-commands/queryEngineCommons.js +33 -0
  166. package/dist/engine-commands/relativizePathInPSLError.d.ts +1 -0
  167. package/dist/engine-commands/relativizePathInPSLError.js +25 -0
  168. package/dist/engine-commands/validate.d.ts +12 -0
  169. package/dist/engine-commands/validate.js +39 -0
  170. package/dist/errorReporting.d.ts +25 -0
  171. package/dist/errorReporting.js +29 -0
  172. package/dist/get-generators/getGenerators.d.ts +71 -0
  173. package/dist/get-generators/getGenerators.js +127 -0
  174. package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +3 -0
  175. package/dist/get-generators/utils/binaryTypeToEngineType.js +25 -0
  176. package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +3 -0
  177. package/dist/get-generators/utils/engineTypeToBinaryType.js +25 -0
  178. package/dist/get-generators/utils/fixBinaryTargets.d.ts +3 -0
  179. package/dist/get-generators/utils/fixBinaryTargets.js +25 -0
  180. package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +7 -0
  181. package/dist/get-generators/utils/getBinaryPathsByVersion.js +30 -0
  182. package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +2 -0
  183. package/dist/get-generators/utils/getEngineVersionForGenerator.js +25 -0
  184. package/dist/get-generators/utils/printGeneratorConfig.d.ts +9 -0
  185. package/dist/get-generators/utils/printGeneratorConfig.js +29 -0
  186. package/dist/getPackedPackage.d.ts +1 -0
  187. package/dist/getPackedPackage.js +29 -0
  188. package/dist/highlight/highlight.d.ts +3 -0
  189. package/dist/highlight/highlight.js +32 -0
  190. package/dist/highlight/languages/dml.d.ts +2 -0
  191. package/dist/highlight/languages/dml.js +25 -0
  192. package/dist/highlight/languages/sql.d.ts +2 -0
  193. package/dist/highlight/languages/sql.js +25 -0
  194. package/dist/highlight/prism.d.ts +6 -0
  195. package/dist/highlight/prism.js +28 -0
  196. package/dist/highlight/theme.d.ts +2 -0
  197. package/dist/highlight/theme.js +26 -0
  198. package/dist/highlight/types.d.ts +35 -0
  199. package/dist/highlight/types.js +1 -0
  200. package/dist/index.d.ts +80 -0
  201. package/dist/index.js +257 -0
  202. package/dist/logger.d.ts +14 -0
  203. package/dist/logger.js +32 -0
  204. package/dist/magic-string.es-B2CP4FDB.js +1324 -0
  205. package/dist/migrateTypes.d.ts +99 -0
  206. package/dist/migrateTypes.js +1 -0
  207. package/dist/multipart-parser-3AFJFP6K.js +374 -0
  208. package/dist/panic.d.ts +31 -0
  209. package/dist/panic.js +29 -0
  210. package/dist/resolveBinary.d.ts +6 -0
  211. package/dist/resolveBinary.js +34 -0
  212. package/dist/resolveOutput.d.ts +5 -0
  213. package/dist/resolveOutput.js +25 -0
  214. package/dist/resolvePkg.d.ts +7 -0
  215. package/dist/resolvePkg.js +25 -0
  216. package/dist/schemaEngineCommands.d.ts +36 -0
  217. package/dist/schemaEngineCommands.js +36 -0
  218. package/dist/sendPanic.d.ts +10 -0
  219. package/dist/sendPanic.js +29 -0
  220. package/dist/types.d.ts +34 -0
  221. package/dist/types.js +1 -0
  222. package/dist/utils/__tests__/isCi.test.js +58 -0
  223. package/dist/utils/__tests__/isInteractive.test.js +47 -0
  224. package/dist/utils/assertAlways.d.ts +14 -0
  225. package/dist/utils/assertAlways.js +25 -0
  226. package/dist/utils/assertNever.d.ts +27 -0
  227. package/dist/utils/assertNever.js +25 -0
  228. package/dist/utils/binaryTargetRegex.d.ts +8 -0
  229. package/dist/utils/binaryTargetRegex.js +25 -0
  230. package/dist/utils/callOnce.d.ts +13 -0
  231. package/dist/utils/callOnce.js +25 -0
  232. package/dist/utils/callOnce.test.d.ts +1 -0
  233. package/dist/utils/callOnce.test.js +36 -0
  234. package/dist/utils/canPrompt.d.ts +1 -0
  235. package/dist/utils/canPrompt.js +27 -0
  236. package/dist/utils/chmodPlusX.d.ts +1 -0
  237. package/dist/utils/chmodPlusX.js +25 -0
  238. package/dist/utils/drawBox.d.ts +9 -0
  239. package/dist/utils/drawBox.js +26 -0
  240. package/dist/utils/extractPreviewFeatures.d.ts +2 -0
  241. package/dist/utils/extractPreviewFeatures.js +28 -0
  242. package/dist/utils/formatTable.d.ts +5 -0
  243. package/dist/utils/formatTable.js +25 -0
  244. package/dist/utils/formatms.d.ts +5 -0
  245. package/dist/utils/formatms.js +25 -0
  246. package/dist/utils/fs-functional.d.ts +53 -0
  247. package/dist/utils/fs-functional.js +35 -0
  248. package/dist/utils/fs-utils.d.ts +30 -0
  249. package/dist/utils/fs-utils.js +32 -0
  250. package/dist/utils/getCommandWithExecutor.d.ts +1 -0
  251. package/dist/utils/getCommandWithExecutor.js +26 -0
  252. package/dist/utils/getGitHubIssueUrl.d.ts +18 -0
  253. package/dist/utils/getGitHubIssueUrl.js +27 -0
  254. package/dist/utils/getVersionFromPackageJson.d.ts +1 -0
  255. package/dist/utils/getVersionFromPackageJson.js +26 -0
  256. package/dist/utils/handlePanic.d.ts +11 -0
  257. package/dist/utils/handlePanic.js +36 -0
  258. package/dist/utils/hasOwnProperty.d.ts +1 -0
  259. package/dist/utils/hasOwnProperty.js +25 -0
  260. package/dist/utils/isCi.d.ts +1 -0
  261. package/dist/utils/isCi.js +25 -0
  262. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -0
  263. package/dist/utils/isCurrentBinInstalledGlobally.js +25 -0
  264. package/dist/utils/isInContainer.d.ts +5 -0
  265. package/dist/utils/isInContainer.js +25 -0
  266. package/dist/utils/isInNpmLifecycleHook.d.ts +4 -0
  267. package/dist/utils/isInNpmLifecycleHook.js +25 -0
  268. package/dist/utils/isInteractive.d.ts +6 -0
  269. package/dist/utils/isInteractive.js +25 -0
  270. package/dist/utils/isPromiseLike.d.ts +1 -0
  271. package/dist/utils/isPromiseLike.js +25 -0
  272. package/dist/utils/isValidJsIdentifier.d.ts +1 -0
  273. package/dist/utils/isValidJsIdentifier.js +25 -0
  274. package/dist/utils/keyBy.d.ts +9 -0
  275. package/dist/utils/keyBy.js +25 -0
  276. package/dist/utils/link.d.ts +1 -0
  277. package/dist/utils/link.js +26 -0
  278. package/dist/utils/mapKeys.d.ts +1 -0
  279. package/dist/utils/mapKeys.js +25 -0
  280. package/dist/utils/mapObjectValues.d.ts +1 -0
  281. package/dist/utils/mapObjectValues.js +25 -0
  282. package/dist/utils/max.d.ts +11 -0
  283. package/dist/utils/max.js +26 -0
  284. package/dist/utils/max.test.d.ts +1 -0
  285. package/dist/utils/max.test.js +22 -0
  286. package/dist/utils/maybeInGitHook.d.ts +9 -0
  287. package/dist/utils/maybeInGitHook.js +25 -0
  288. package/dist/utils/missingDatasource.d.ts +1 -0
  289. package/dist/utils/missingDatasource.js +32 -0
  290. package/dist/utils/missingGeneratorMessage.d.ts +3 -0
  291. package/dist/utils/missingGeneratorMessage.js +34 -0
  292. package/dist/utils/now.d.ts +3 -0
  293. package/dist/utils/now.js +51 -0
  294. package/dist/utils/omit.d.ts +6 -0
  295. package/dist/utils/omit.js +30 -0
  296. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +1 -0
  297. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +25 -0
  298. package/dist/utils/parseEnvValue.d.ts +17 -0
  299. package/dist/utils/parseEnvValue.js +27 -0
  300. package/dist/utils/path.d.ts +14 -0
  301. package/dist/utils/path.js +26 -0
  302. package/dist/utils/path.test.d.ts +1 -0
  303. package/dist/utils/path.test.js +54 -0
  304. package/dist/utils/pick.d.ts +1 -0
  305. package/dist/utils/pick.js +25 -0
  306. package/dist/utils/printConfigWarnings.d.ts +1 -0
  307. package/dist/utils/printConfigWarnings.js +26 -0
  308. package/dist/utils/prismaPostgres.d.ts +13 -0
  309. package/dist/utils/prismaPostgres.js +28 -0
  310. package/dist/utils/prismaPostgres.test.d.ts +1 -0
  311. package/dist/utils/prismaPostgres.test.js +33 -0
  312. package/dist/utils/schemaFileInput.d.ts +2 -0
  313. package/dist/utils/schemaFileInput.js +25 -0
  314. package/dist/utils/setClassName.d.ts +9 -0
  315. package/dist/utils/setClassName.js +25 -0
  316. package/dist/utils/toSchemasContainer.d.ts +5 -0
  317. package/dist/utils/toSchemasContainer.js +26 -0
  318. package/dist/utils/unique.d.ts +5 -0
  319. package/dist/utils/unique.js +38 -0
  320. package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
  321. package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
  322. package/dist/utils/vercelPkgPathRegex.d.ts +1 -0
  323. package/dist/utils/vercelPkgPathRegex.js +25 -0
  324. package/dist/warnOnce.d.ts +1 -0
  325. package/dist/warnOnce.js +27 -0
  326. package/dist/wasm.d.ts +5 -0
  327. package/dist/wasm.js +29 -0
  328. package/package.json +93 -0
@@ -0,0 +1,63 @@
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
+ /**
3
+ * Command interface
4
+ */
5
+ export interface Command {
6
+ parse(argv: string[], config: PrismaConfigInternal, baseDir: string): Promise<string | Error>;
7
+ }
8
+ /**
9
+ * Commands
10
+ */
11
+ export type Commands = {
12
+ [command: string]: Command;
13
+ };
14
+ export type CompletionValue = {
15
+ value: string;
16
+ description?: string;
17
+ };
18
+ export interface CompletionOption {
19
+ name: string;
20
+ description: string;
21
+ alias?: string;
22
+ values?: CompletionValue[] | (() => CompletionValue[]);
23
+ }
24
+ export interface CommandCompletion {
25
+ name: string;
26
+ description: string;
27
+ options?: CompletionOption[];
28
+ subcommands?: CommandCompletion[];
29
+ }
30
+ export type Dictionary<T> = {
31
+ [key: string]: T;
32
+ };
33
+ export type GeneratorConfig = {
34
+ output: string | null;
35
+ name: string;
36
+ provider: string;
37
+ config: Dictionary<string>;
38
+ binaryTargets: string[];
39
+ pinnedBinaryTargets?: string | null;
40
+ };
41
+ export type GeneratorOptions = {
42
+ generator: GeneratorConfig;
43
+ otherGenerators: GeneratorConfig[];
44
+ cwd: string;
45
+ dmmf: any;
46
+ datasources: any;
47
+ datamodel: string;
48
+ };
49
+ export type GeneratorFunction = (options: GeneratorOptions) => Promise<string>;
50
+ export type GeneratorDefinition = {
51
+ prettyName?: string;
52
+ generate: GeneratorFunction;
53
+ defaultOutput: string;
54
+ };
55
+ export type GeneratorDefinitionWithPackage = {
56
+ definition: GeneratorDefinition;
57
+ packagePath: string;
58
+ };
59
+ export type CompiledGeneratorDefinition = {
60
+ prettyName?: string;
61
+ output?: string | null;
62
+ generate: () => Promise<string>;
63
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,13 @@
1
+ import Arg from 'arg';
2
+ /**
3
+ * format
4
+ */
5
+ export declare function format(input?: string): string;
6
+ /**
7
+ * Wrap arg to return an error instead of throwing
8
+ */
9
+ export declare function arg<T extends Arg.Spec>(argv: string[], spec: T, stopAtPositional?: boolean, permissive?: boolean): Arg.Result<T> | Error;
10
+ /**
11
+ * Check if result is an error
12
+ */
13
+ export declare function isError(result: any): result is Error;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ arg: () => import_chunk_D4VZUY3O.arg,
22
+ format: () => import_chunk_D4VZUY3O.format,
23
+ isError: () => import_chunk_D4VZUY3O.isError
24
+ });
25
+ module.exports = __toCommonJS(utils_exports);
26
+ var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
27
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,10 @@
1
+ import type { ConnectorType } from '@prisma/generator';
2
+ import type { DatabaseCredentials } from './types';
3
+ export declare function credentialsToUri(credentials: DatabaseCredentials): string;
4
+ export declare function uriToCredentials(connectionString: string): DatabaseCredentials;
5
+ /**
6
+ * Convert a protocol to the equivalent database connector type.
7
+ * Throws an error if the protocol is not recognized.
8
+ * @param protocol e.g., 'postgres:'
9
+ */
10
+ export declare function protocolToConnectorType(protocol: string): ConnectorType;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var convertCredentials_exports = {};
20
+ __export(convertCredentials_exports, {
21
+ credentialsToUri: () => import_chunk_3U4QB2G3.credentialsToUri,
22
+ protocolToConnectorType: () => import_chunk_3U4QB2G3.protocolToConnectorType,
23
+ uriToCredentials: () => import_chunk_3U4QB2G3.uriToCredentials
24
+ });
25
+ module.exports = __toCommonJS(convertCredentials_exports);
26
+ var import_chunk_3U4QB2G3 = require("./chunk-3U4QB2G3.js");
27
+ var import_chunk_LPNBWFQ3 = require("./chunk-LPNBWFQ3.js");
28
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Adds `Prisma CLI Version : x.x.x` at the bottom of the error output.
3
+ */
4
+ export declare function addVersionDetailsToErrorMessage(message: string): string;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var errorHelpers_exports = {};
20
+ __export(errorHelpers_exports, {
21
+ addVersionDetailsToErrorMessage: () => import_chunk_I4K46RGG.addVersionDetailsToErrorMessage
22
+ });
23
+ module.exports = __toCommonJS(errorHelpers_exports);
24
+ var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
25
+ var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
26
+ var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
27
+ var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
28
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,22 @@
1
+ import type { MultipleSchemas } from '@prisma/get-dmmf';
2
+ type FormatSchemaParams = {
3
+ schemas: MultipleSchemas;
4
+ };
5
+ export declare function formatSchema({ schemas }: FormatSchemaParams, inputFormattingOptions?: Partial<DocumentFormattingParams['options']>): Promise<MultipleSchemas>;
6
+ type DocumentUri = string;
7
+ type TextDocument = {
8
+ /**
9
+ * The associated URI for this document. Most documents have the __file__-scheme, indicating that they
10
+ * represent files on disk. However, some documents may have other schemes indicating that they are not
11
+ * available on disk.
12
+ */
13
+ readonly uri: DocumentUri;
14
+ };
15
+ type DocumentFormattingParams = {
16
+ textDocument: TextDocument;
17
+ options: {
18
+ tabSize: number;
19
+ insertSpaces: boolean;
20
+ };
21
+ };
22
+ export {};
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var formatSchema_exports = {};
20
+ __export(formatSchema_exports, {
21
+ formatSchema: () => import_chunk_CTQD6OLG.formatSchema
22
+ });
23
+ module.exports = __toCommonJS(formatSchema_exports);
24
+ var import_chunk_CTQD6OLG = require("../chunk-CTQD6OLG.js");
25
+ var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
26
+ var import_chunk_DZ4QWHTB = require("../chunk-DZ4QWHTB.js");
27
+ var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
28
+ var import_chunk_GJSFP4V4 = require("../chunk-GJSFP4V4.js");
29
+ var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
30
+ var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
31
+ var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
32
+ var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
33
+ var import_chunk_SP2ETLT2 = require("../chunk-SP2ETLT2.js");
34
+ var import_chunk_JFXHOFJA = require("../chunk-JFXHOFJA.js");
35
+ var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
36
+ var import_chunk_WFMA7DI5 = require("../chunk-WFMA7DI5.js");
37
+ var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
38
+ var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
39
+ var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
40
+ var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
41
+ var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
42
+ var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
43
+ var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
44
+ var import_chunk_BGMZPA2F = require("../chunk-BGMZPA2F.js");
45
+ var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
46
+ var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
47
+ var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
48
+ var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
49
+ var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
50
+ var import_chunk_QVJ2BXKF = require("../chunk-QVJ2BXKF.js");
51
+ var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
52
+ var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
53
+ var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
54
+ var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
55
+ var import_chunk_DUDEWDFC = require("../chunk-DUDEWDFC.js");
56
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
57
+ var import_chunk_YXB6APHS = require("../chunk-YXB6APHS.js");
58
+ var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
59
+ var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
60
+ var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
61
+ var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
62
+ var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
63
+ var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
64
+ var import_chunk_EKGEKB22 = require("../chunk-EKGEKB22.js");
65
+ var import_chunk_3TYD3ZGQ = require("../chunk-3TYD3ZGQ.js");
66
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
67
+ var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
68
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
69
+ var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
70
+ var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
71
+ var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
72
+ var import_chunk_3YOF262C = require("../chunk-3YOF262C.js");
73
+ var import_chunk_NTDBN2N2 = require("../chunk-NTDBN2N2.js");
74
+ var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
75
+ var import_chunk_3VD46SL7 = require("../chunk-3VD46SL7.js");
76
+ var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
77
+ var import_chunk_6PWHYRKR = require("../chunk-6PWHYRKR.js");
78
+ var import_chunk_IYN5VKMD = require("../chunk-IYN5VKMD.js");
79
+ var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
80
+ var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
81
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
82
+ var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
83
+ var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
84
+ var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
85
+ var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
86
+ var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
87
+ var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
88
+ var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
89
+ var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
90
+ var import_chunk_L3LDE52J = require("../chunk-L3LDE52J.js");
91
+ var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
92
+ var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
93
+ var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
94
+ var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
95
+ var import_chunk_3ZHE2IX4 = require("../chunk-3ZHE2IX4.js");
96
+ var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
97
+ var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
98
+ var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
99
+ var import_chunk_CXEXLFVL = require("../chunk-CXEXLFVL.js");
100
+ var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
101
+ var import_chunk_5PJQQKQI = require("../chunk-5PJQQKQI.js");
102
+ var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
103
+ var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
104
+ var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
105
+ var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
106
+ var import_chunk_FRVJZOHP = require("../chunk-FRVJZOHP.js");
107
+ var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
108
+ var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
109
+ var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
110
+ var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
111
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
112
+ var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
113
+ var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
114
+ var import_chunk_MCS5ZY6Y = require("../chunk-MCS5ZY6Y.js");
115
+ var import_chunk_3U4QB2G3 = require("../chunk-3U4QB2G3.js");
116
+ var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
117
+ var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
118
+ var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
119
+ var import_chunk_PTPRBA7K = require("../chunk-PTPRBA7K.js");
120
+ var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
121
+ var import_chunk_JPZYSRK3 = require("../chunk-JPZYSRK3.js");
122
+ var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
123
+ var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
124
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,27 @@
1
+ import type { DataSource, GeneratorConfig } from '@prisma/generator';
2
+ import { SchemaFileInput } from '@prisma/get-dmmf';
3
+ import { QueryEngineErrorInit } from './queryEngineCommons';
4
+ export interface GetConfigResponse {
5
+ config: ConfigMetaFormat;
6
+ errors: GetConfigValidationError[];
7
+ }
8
+ export interface ConfigMetaFormat {
9
+ datasources: DataSource[] | [];
10
+ generators: GeneratorConfig[] | [];
11
+ warnings: string[] | [];
12
+ }
13
+ interface GetConfigValidationError {
14
+ fileName: string | null;
15
+ message: string;
16
+ }
17
+ export type GetConfigOptions = {
18
+ datamodel: SchemaFileInput;
19
+ };
20
+ export declare class GetConfigError extends Error {
21
+ constructor(params: QueryEngineErrorInit);
22
+ }
23
+ /**
24
+ * Wasm'd version of `getConfig`.
25
+ */
26
+ export declare function getConfig(options: GetConfigOptions): Promise<ConfigMetaFormat>;
27
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getConfig_exports = {};
20
+ __export(getConfig_exports, {
21
+ GetConfigError: () => import_chunk_3YOF262C.GetConfigError,
22
+ getConfig: () => import_chunk_3YOF262C.getConfig
23
+ });
24
+ module.exports = __toCommonJS(getConfig_exports);
25
+ var import_chunk_3YOF262C = require("../chunk-3YOF262C.js");
26
+ var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
27
+ var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
28
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
29
+ var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
30
+ var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
31
+ var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
32
+ var import_chunk_L3LDE52J = require("../chunk-L3LDE52J.js");
33
+ var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
34
+ var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
35
+ var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
36
+ var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
37
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
38
+ var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
39
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,21 @@
1
+ import type * as DMMF from '@prisma/dmmf';
2
+ import type { DataSource, GeneratorConfig } from '@prisma/generator';
3
+ import { type SchemaFileInput } from '@prisma/get-dmmf';
4
+ import { QueryEngineErrorInit } from './queryEngineCommons';
5
+ export { externalToInternalDmmf } from '@prisma/get-dmmf';
6
+ export interface ConfigMetaFormat {
7
+ datasources: DataSource[];
8
+ generators: GeneratorConfig[];
9
+ warnings: string[];
10
+ }
11
+ export type GetDMMFOptions = {
12
+ datamodel: SchemaFileInput;
13
+ };
14
+ export declare class GetDmmfError extends Error {
15
+ constructor(params: QueryEngineErrorInit);
16
+ }
17
+ /**
18
+ * Wasm'd version of `getDMMF`.
19
+ */
20
+ export declare function getDMMF(options: GetDMMFOptions): Promise<DMMF.Document>;
21
+ export declare function getInternalDMMF(options: GetDMMFOptions): Promise<DMMF.Document>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getDmmf_exports = {};
20
+ __export(getDmmf_exports, {
21
+ GetDmmfError: () => import_chunk_NTDBN2N2.GetDmmfError,
22
+ externalToInternalDmmf: () => import_chunk_NTDBN2N2.externalToInternalDmmf,
23
+ getDMMF: () => import_chunk_NTDBN2N2.getDMMF,
24
+ getInternalDMMF: () => import_chunk_NTDBN2N2.getInternalDMMF
25
+ });
26
+ module.exports = __toCommonJS(getDmmf_exports);
27
+ var import_chunk_NTDBN2N2 = require("../chunk-NTDBN2N2.js");
28
+ var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
29
+ var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
30
+ var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
31
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
32
+ var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
33
+ var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
34
+ var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
35
+ var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
36
+ var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
37
+ var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
38
+ var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
39
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
40
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,4 @@
1
+ import { BinaryType } from '@prisma/fetch-engine';
2
+ import * as TE from 'fp-ts/TaskEither';
3
+ export declare function getEngineVersion(enginePath?: string, binaryName?: BinaryType): Promise<string>;
4
+ export declare function safeGetEngineVersion(enginePath?: string, binaryName?: BinaryType): TE.TaskEither<Error, string>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getEngineVersion_exports = {};
20
+ __export(getEngineVersion_exports, {
21
+ getEngineVersion: () => import_chunk_L6V54WGO.getEngineVersion,
22
+ safeGetEngineVersion: () => import_chunk_L6V54WGO.safeGetEngineVersion
23
+ });
24
+ module.exports = __toCommonJS(getEngineVersion_exports);
25
+ var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
26
+ var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
27
+ var import_chunk_5PJQQKQI = require("../chunk-5PJQQKQI.js");
28
+ var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
29
+ var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
30
+ var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
31
+ var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
32
+ var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
33
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,20 @@
1
+ import { BinaryType } from '@prisma/fetch-engine';
2
+ import * as E from 'fp-ts/Either';
3
+ import * as O from 'fp-ts/Option';
4
+ /**
5
+ * Both an engine binary and a library might be resolved from and environment variable indicating a path.
6
+ * We first try to retrieve the engines' path from an env var; if it fails, we fall back to `safeResolveBinary`.
7
+ * If both fail, we return an error.
8
+ * Even if we resolve a path, retrieving the version might fail.
9
+ */
10
+ export type EngineInfo = {
11
+ fromEnvVar: O.Option<string>;
12
+ path: E.Either<Error, string>;
13
+ version: E.Either<Error, string>;
14
+ };
15
+ export type BinaryMatrix<T> = {
16
+ 'schema-engine': T;
17
+ };
18
+ export type BinaryInfoMatrix = BinaryMatrix<EngineInfo>;
19
+ export declare function getEnginesInfo(enginesInfo: EngineInfo): readonly [string, Error[]];
20
+ export declare function resolveEngine(binaryName: BinaryType): Promise<EngineInfo>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var getEnginesInfo_exports = {};
20
+ __export(getEnginesInfo_exports, {
21
+ getEnginesInfo: () => import_chunk_3VD46SL7.getEnginesInfo,
22
+ resolveEngine: () => import_chunk_3VD46SL7.resolveEngine
23
+ });
24
+ module.exports = __toCommonJS(getEnginesInfo_exports);
25
+ var import_chunk_3VD46SL7 = require("../chunk-3VD46SL7.js");
26
+ var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
27
+ var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
28
+ var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
29
+ var import_chunk_5PJQQKQI = require("../chunk-5PJQQKQI.js");
30
+ var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
31
+ var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
32
+ var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
33
+ var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
34
+ var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
35
+ var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
36
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,10 @@
1
+ export { formatSchema } from './formatSchema';
2
+ export type { ConfigMetaFormat } from './getConfig';
3
+ export { getConfig } from './getConfig';
4
+ export type { GetDMMFOptions } from './getDmmf';
5
+ export { externalToInternalDmmf, getDMMF, getInternalDMMF } from './getDmmf';
6
+ export { getEnginesInfo, resolveEngine } from './getEnginesInfo';
7
+ export { getEngineVersion } from './getEngineVersion';
8
+ export { getLintWarningsAsText, handleLintPanic, lintSchema } from './lintSchema';
9
+ export { mergeSchemas } from './mergeSchemas';
10
+ export { validate } from './validate';