@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.
- package/LICENSE +201 -0
- package/dist/Generator.d.ts +42 -0
- package/dist/Generator.js +29 -0
- package/dist/WasmPanicRegistry.d.ts +5 -0
- package/dist/WasmPanicRegistry.js +25 -0
- package/dist/WasmSchemaEngineLoader.d.ts +5 -0
- package/dist/WasmSchemaEngineLoader.js +25 -0
- package/dist/built-in-provider.d.ts +5 -0
- package/dist/built-in-provider.js +25 -0
- package/dist/chunk-2B26F5N3.js +72 -0
- package/dist/chunk-2IOZUH3U.js +26 -0
- package/dist/chunk-2SDPW6AX.js +39 -0
- package/dist/chunk-3IMRWXIL.js +176 -0
- package/dist/chunk-3TYD3ZGQ.js +115 -0
- package/dist/chunk-3U4QB2G3.js +166 -0
- package/dist/chunk-3VD46SL7.js +151 -0
- package/dist/chunk-3YOF262C.js +176 -0
- package/dist/chunk-3ZHE2IX4.js +55 -0
- package/dist/chunk-4VNS5WPM.js +61 -0
- package/dist/chunk-5AI4FIZ3.js +1342 -0
- package/dist/chunk-5BDP445D.js +51 -0
- package/dist/chunk-5DBOS77Y.js +609 -0
- package/dist/chunk-5FJ3MENK.js +30 -0
- package/dist/chunk-5I4ERIIY.js +30 -0
- package/dist/chunk-5PJQQKQI.js +106 -0
- package/dist/chunk-5VQNKCKW.js +38 -0
- package/dist/chunk-5WRIOIZY.js +31 -0
- package/dist/chunk-6JE6QGSJ.js +37 -0
- package/dist/chunk-6PWHYRKR.js +74 -0
- package/dist/chunk-6QMQ2JYG.js +122 -0
- package/dist/chunk-6Z766KGR.js +95 -0
- package/dist/chunk-74RGCSUJ.js +44 -0
- package/dist/chunk-7B5PXS6N.js +29 -0
- package/dist/chunk-ANU3HEGF.js +29 -0
- package/dist/chunk-BERN76ZI.js +347 -0
- package/dist/chunk-BGMZPA2F.js +39 -0
- package/dist/chunk-BPDMLM32.js +105 -0
- package/dist/chunk-C47SCASR.js +37 -0
- package/dist/chunk-CGFNDGGI.js +40 -0
- package/dist/chunk-CTQD6OLG.js +438 -0
- package/dist/chunk-CUD726EK.js +36 -0
- package/dist/chunk-CXEXLFVL.js +166 -0
- package/dist/chunk-CYAS6B5N.js +48 -0
- package/dist/chunk-D4VZUY3O.js +71 -0
- package/dist/chunk-DODIJPCS.js +34 -0
- package/dist/chunk-DTPFRZWV.js +31 -0
- package/dist/chunk-DUDEWDFC.js +101 -0
- package/dist/chunk-DZ4QWHTB.js +127 -0
- package/dist/chunk-E23HYCQJ.js +37 -0
- package/dist/chunk-E476ARWS.js +2091 -0
- package/dist/chunk-EKGEKB22.js +28 -0
- package/dist/chunk-EU6UOKRD.js +26 -0
- package/dist/chunk-EWPXLBGE.js +115 -0
- package/dist/chunk-FCYHZHVW.js +43 -0
- package/dist/chunk-FRVJZOHP.js +1823 -0
- package/dist/chunk-GJSFP4V4.js +30 -0
- package/dist/chunk-GXW4NTU2.js +34 -0
- package/dist/chunk-H4NI2RIK.js +35 -0
- package/dist/chunk-HHG4DGHC.js +496 -0
- package/dist/chunk-HPVMQFIY.js +407 -0
- package/dist/chunk-I2CBQZJY.js +122 -0
- package/dist/chunk-I4K46RGG.js +31 -0
- package/dist/chunk-I6WLABB2.js +429 -0
- package/dist/chunk-ICFLO5JW.js +26 -0
- package/dist/chunk-IL7PSY44.js +26 -0
- package/dist/chunk-IOIAK7V7.js +53 -0
- package/dist/chunk-IYN5VKMD.js +110 -0
- package/dist/chunk-J77ZIDXB.js +69 -0
- package/dist/chunk-J7ZPY2XA.js +47 -0
- package/dist/chunk-JFXHOFJA.js +46 -0
- package/dist/chunk-JOIHHXR6.js +2067 -0
- package/dist/chunk-JPZYSRK3.js +6412 -0
- package/dist/chunk-JTKAT4KZ.js +26 -0
- package/dist/chunk-K2EOOA2X.js +91 -0
- package/dist/chunk-KDP6C3CB.js +56 -0
- package/dist/chunk-L3LDE52J.js +51 -0
- package/dist/chunk-L6V54WGO.js +39 -0
- package/dist/chunk-LMVSIVKQ.js +62 -0
- package/dist/chunk-LPNBWFQ3.js +38 -0
- package/dist/chunk-LRBXMV4B.js +26 -0
- package/dist/chunk-LRU47BGE.js +78 -0
- package/dist/chunk-M3GBKLGE.js +24 -0
- package/dist/chunk-MCS5ZY6Y.js +27 -0
- package/dist/chunk-NBWRGVYR.js +47 -0
- package/dist/chunk-NIWBAJZV.js +36 -0
- package/dist/chunk-NTDBN2N2.js +104 -0
- package/dist/chunk-NVNI2SRU.js +4230 -0
- package/dist/chunk-OIVPX3BR.js +32 -0
- package/dist/chunk-PFYALFCY.js +26 -0
- package/dist/chunk-PG5FDKSF.js +79 -0
- package/dist/chunk-PKF53VLJ.js +26 -0
- package/dist/chunk-PTPRBA7K.js +6675 -0
- package/dist/chunk-QBNYSYZK.js +74 -0
- package/dist/chunk-QMNPESAP.js +124 -0
- package/dist/chunk-QN6PSQY7.js +37 -0
- package/dist/chunk-QVJ2BXKF.js +3997 -0
- package/dist/chunk-R47SFJ5Z.js +104 -0
- package/dist/chunk-R6QH57HZ.js +311 -0
- package/dist/chunk-RBDYOTWB.js +193 -0
- package/dist/chunk-SBUSVJCV.js +62 -0
- package/dist/chunk-SP2ETLT2.js +41 -0
- package/dist/chunk-TPCPXGC5.js +218 -0
- package/dist/chunk-TWSLDIFL.js +48 -0
- package/dist/chunk-UGR6KLZN.js +30 -0
- package/dist/chunk-UMM35VP5.js +1193 -0
- package/dist/chunk-VFNP7Q3Y.js +15529 -0
- package/dist/chunk-VNIE2AZB.js +41 -0
- package/dist/chunk-VUGB2H7M.js +438 -0
- package/dist/chunk-WFMA7DI5.js +92 -0
- package/dist/chunk-WV4QHCSM.js +26 -0
- package/dist/chunk-WXRVYSYN.js +33 -0
- package/dist/chunk-X3P4J7WW.js +28 -0
- package/dist/chunk-X77CS5RK.js +33 -0
- package/dist/chunk-XAAVALN7.js +110 -0
- package/dist/chunk-XXTPN4LB.js +41 -0
- package/dist/chunk-XYCIH36R.js +29 -0
- package/dist/chunk-Y4TOGY6I.js +30 -0
- package/dist/chunk-YNDZCLVL.js +307 -0
- package/dist/chunk-YXB6APHS.js +447 -0
- package/dist/chunk-ZJWZK45Z.js +68 -0
- package/dist/chunk-ZKWDIAVF.js +29 -0
- package/dist/cli/Help.d.ts +11 -0
- package/dist/cli/Help.js +27 -0
- package/dist/cli/checkUnsupportedDataProxy.d.ts +16 -0
- package/dist/cli/checkUnsupportedDataProxy.js +125 -0
- package/dist/cli/completion-values.d.ts +24 -0
- package/dist/cli/completion-values.js +47 -0
- package/dist/cli/directoryConfig.d.ts +11 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.d.ts +7 -0
- package/dist/cli/getGeneratorSuccessMessage.js +29 -0
- package/dist/cli/getSchema.d.ts +46 -0
- package/dist/cli/getSchema.js +31 -0
- package/dist/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/cli/getTypescriptVersion.js +25 -0
- package/dist/cli/hashes.d.ts +11 -0
- package/dist/cli/hashes.js +28 -0
- package/dist/cli/schemaContext.d.ts +56 -0
- package/dist/cli/schemaContext.js +126 -0
- package/dist/cli/types.d.ts +63 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/utils.d.ts +13 -0
- package/dist/cli/utils.js +27 -0
- package/dist/convertCredentials.d.ts +10 -0
- package/dist/convertCredentials.js +28 -0
- package/dist/engine-commands/errorHelpers.d.ts +4 -0
- package/dist/engine-commands/errorHelpers.js +28 -0
- package/dist/engine-commands/formatSchema.d.ts +22 -0
- package/dist/engine-commands/formatSchema.js +124 -0
- package/dist/engine-commands/getConfig.d.ts +27 -0
- package/dist/engine-commands/getConfig.js +39 -0
- package/dist/engine-commands/getDmmf.d.ts +21 -0
- package/dist/engine-commands/getDmmf.js +40 -0
- package/dist/engine-commands/getEngineVersion.d.ts +4 -0
- package/dist/engine-commands/getEngineVersion.js +33 -0
- package/dist/engine-commands/getEnginesInfo.d.ts +20 -0
- package/dist/engine-commands/getEnginesInfo.js +36 -0
- package/dist/engine-commands/index.d.ts +10 -0
- package/dist/engine-commands/index.js +136 -0
- package/dist/engine-commands/lintSchema.d.ts +26 -0
- package/dist/engine-commands/lintSchema.js +34 -0
- package/dist/engine-commands/mergeSchemas.d.ts +12 -0
- package/dist/engine-commands/mergeSchemas.js +39 -0
- package/dist/engine-commands/queryEngineCommons.d.ts +31 -0
- package/dist/engine-commands/queryEngineCommons.js +33 -0
- package/dist/engine-commands/relativizePathInPSLError.d.ts +1 -0
- package/dist/engine-commands/relativizePathInPSLError.js +25 -0
- package/dist/engine-commands/validate.d.ts +12 -0
- package/dist/engine-commands/validate.js +39 -0
- package/dist/errorReporting.d.ts +25 -0
- package/dist/errorReporting.js +29 -0
- package/dist/get-generators/getGenerators.d.ts +71 -0
- package/dist/get-generators/getGenerators.js +127 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +3 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.js +25 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +3 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.js +25 -0
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +3 -0
- package/dist/get-generators/utils/fixBinaryTargets.js +25 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +7 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +30 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +2 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +25 -0
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +9 -0
- package/dist/get-generators/utils/printGeneratorConfig.js +29 -0
- package/dist/getPackedPackage.d.ts +1 -0
- package/dist/getPackedPackage.js +29 -0
- package/dist/highlight/highlight.d.ts +3 -0
- package/dist/highlight/highlight.js +32 -0
- package/dist/highlight/languages/dml.d.ts +2 -0
- package/dist/highlight/languages/dml.js +25 -0
- package/dist/highlight/languages/sql.d.ts +2 -0
- package/dist/highlight/languages/sql.js +25 -0
- package/dist/highlight/prism.d.ts +6 -0
- package/dist/highlight/prism.js +28 -0
- package/dist/highlight/theme.d.ts +2 -0
- package/dist/highlight/theme.js +26 -0
- package/dist/highlight/types.d.ts +35 -0
- package/dist/highlight/types.js +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +257 -0
- package/dist/logger.d.ts +14 -0
- package/dist/logger.js +32 -0
- package/dist/magic-string.es-B2CP4FDB.js +1324 -0
- package/dist/migrateTypes.d.ts +99 -0
- package/dist/migrateTypes.js +1 -0
- package/dist/multipart-parser-3AFJFP6K.js +374 -0
- package/dist/panic.d.ts +31 -0
- package/dist/panic.js +29 -0
- package/dist/resolveBinary.d.ts +6 -0
- package/dist/resolveBinary.js +34 -0
- package/dist/resolveOutput.d.ts +5 -0
- package/dist/resolveOutput.js +25 -0
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/resolvePkg.js +25 -0
- package/dist/schemaEngineCommands.d.ts +36 -0
- package/dist/schemaEngineCommands.js +36 -0
- package/dist/sendPanic.d.ts +10 -0
- package/dist/sendPanic.js +29 -0
- package/dist/types.d.ts +34 -0
- package/dist/types.js +1 -0
- package/dist/utils/__tests__/isCi.test.js +58 -0
- package/dist/utils/__tests__/isInteractive.test.js +47 -0
- package/dist/utils/assertAlways.d.ts +14 -0
- package/dist/utils/assertAlways.js +25 -0
- package/dist/utils/assertNever.d.ts +27 -0
- package/dist/utils/assertNever.js +25 -0
- package/dist/utils/binaryTargetRegex.d.ts +8 -0
- package/dist/utils/binaryTargetRegex.js +25 -0
- package/dist/utils/callOnce.d.ts +13 -0
- package/dist/utils/callOnce.js +25 -0
- package/dist/utils/callOnce.test.d.ts +1 -0
- package/dist/utils/callOnce.test.js +36 -0
- package/dist/utils/canPrompt.d.ts +1 -0
- package/dist/utils/canPrompt.js +27 -0
- package/dist/utils/chmodPlusX.d.ts +1 -0
- package/dist/utils/chmodPlusX.js +25 -0
- package/dist/utils/drawBox.d.ts +9 -0
- package/dist/utils/drawBox.js +26 -0
- package/dist/utils/extractPreviewFeatures.d.ts +2 -0
- package/dist/utils/extractPreviewFeatures.js +28 -0
- package/dist/utils/formatTable.d.ts +5 -0
- package/dist/utils/formatTable.js +25 -0
- package/dist/utils/formatms.d.ts +5 -0
- package/dist/utils/formatms.js +25 -0
- package/dist/utils/fs-functional.d.ts +53 -0
- package/dist/utils/fs-functional.js +35 -0
- package/dist/utils/fs-utils.d.ts +30 -0
- package/dist/utils/fs-utils.js +32 -0
- package/dist/utils/getCommandWithExecutor.d.ts +1 -0
- package/dist/utils/getCommandWithExecutor.js +26 -0
- package/dist/utils/getGitHubIssueUrl.d.ts +18 -0
- package/dist/utils/getGitHubIssueUrl.js +27 -0
- package/dist/utils/getVersionFromPackageJson.d.ts +1 -0
- package/dist/utils/getVersionFromPackageJson.js +26 -0
- package/dist/utils/handlePanic.d.ts +11 -0
- package/dist/utils/handlePanic.js +36 -0
- package/dist/utils/hasOwnProperty.d.ts +1 -0
- package/dist/utils/hasOwnProperty.js +25 -0
- package/dist/utils/isCi.d.ts +1 -0
- package/dist/utils/isCi.js +25 -0
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -0
- package/dist/utils/isCurrentBinInstalledGlobally.js +25 -0
- package/dist/utils/isInContainer.d.ts +5 -0
- package/dist/utils/isInContainer.js +25 -0
- package/dist/utils/isInNpmLifecycleHook.d.ts +4 -0
- package/dist/utils/isInNpmLifecycleHook.js +25 -0
- package/dist/utils/isInteractive.d.ts +6 -0
- package/dist/utils/isInteractive.js +25 -0
- package/dist/utils/isPromiseLike.d.ts +1 -0
- package/dist/utils/isPromiseLike.js +25 -0
- package/dist/utils/isValidJsIdentifier.d.ts +1 -0
- package/dist/utils/isValidJsIdentifier.js +25 -0
- package/dist/utils/keyBy.d.ts +9 -0
- package/dist/utils/keyBy.js +25 -0
- package/dist/utils/link.d.ts +1 -0
- package/dist/utils/link.js +26 -0
- package/dist/utils/mapKeys.d.ts +1 -0
- package/dist/utils/mapKeys.js +25 -0
- package/dist/utils/mapObjectValues.d.ts +1 -0
- package/dist/utils/mapObjectValues.js +25 -0
- package/dist/utils/max.d.ts +11 -0
- package/dist/utils/max.js +26 -0
- package/dist/utils/max.test.d.ts +1 -0
- package/dist/utils/max.test.js +22 -0
- package/dist/utils/maybeInGitHook.d.ts +9 -0
- package/dist/utils/maybeInGitHook.js +25 -0
- package/dist/utils/missingDatasource.d.ts +1 -0
- package/dist/utils/missingDatasource.js +32 -0
- package/dist/utils/missingGeneratorMessage.d.ts +3 -0
- package/dist/utils/missingGeneratorMessage.js +34 -0
- package/dist/utils/now.d.ts +3 -0
- package/dist/utils/now.js +51 -0
- package/dist/utils/omit.d.ts +6 -0
- package/dist/utils/omit.js +30 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +1 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +25 -0
- package/dist/utils/parseEnvValue.d.ts +17 -0
- package/dist/utils/parseEnvValue.js +27 -0
- package/dist/utils/path.d.ts +14 -0
- package/dist/utils/path.js +26 -0
- package/dist/utils/path.test.d.ts +1 -0
- package/dist/utils/path.test.js +54 -0
- package/dist/utils/pick.d.ts +1 -0
- package/dist/utils/pick.js +25 -0
- package/dist/utils/printConfigWarnings.d.ts +1 -0
- package/dist/utils/printConfigWarnings.js +26 -0
- package/dist/utils/prismaPostgres.d.ts +13 -0
- package/dist/utils/prismaPostgres.js +28 -0
- package/dist/utils/prismaPostgres.test.d.ts +1 -0
- package/dist/utils/prismaPostgres.test.js +33 -0
- package/dist/utils/schemaFileInput.d.ts +2 -0
- package/dist/utils/schemaFileInput.js +25 -0
- package/dist/utils/setClassName.d.ts +9 -0
- package/dist/utils/setClassName.js +25 -0
- package/dist/utils/toSchemasContainer.d.ts +5 -0
- package/dist/utils/toSchemasContainer.js +26 -0
- package/dist/utils/unique.d.ts +5 -0
- package/dist/utils/unique.js +38 -0
- package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
- package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
- package/dist/utils/vercelPkgPathRegex.d.ts +1 -0
- package/dist/utils/vercelPkgPathRegex.js +25 -0
- package/dist/warnOnce.d.ts +1 -0
- package/dist/warnOnce.js +27 -0
- package/dist/wasm.d.ts +5 -0
- package/dist/wasm.js +29 -0
- package/package.json +93 -0
|
@@ -0,0 +1,125 @@
|
|
|
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 checkUnsupportedDataProxy_exports = {};
|
|
20
|
+
__export(checkUnsupportedDataProxy_exports, {
|
|
21
|
+
checkUnsupportedDataProxy: () => import_chunk_CTQD6OLG.checkUnsupportedDataProxy,
|
|
22
|
+
forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_CTQD6OLG.forbiddenCmdWithDataProxyFlagMessage
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
|
|
25
|
+
var import_chunk_CTQD6OLG = require("../chunk-CTQD6OLG.js");
|
|
26
|
+
var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
|
|
27
|
+
var import_chunk_DZ4QWHTB = require("../chunk-DZ4QWHTB.js");
|
|
28
|
+
var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
|
|
29
|
+
var import_chunk_GJSFP4V4 = require("../chunk-GJSFP4V4.js");
|
|
30
|
+
var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
|
|
31
|
+
var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
|
|
32
|
+
var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
|
|
33
|
+
var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
|
|
34
|
+
var import_chunk_SP2ETLT2 = require("../chunk-SP2ETLT2.js");
|
|
35
|
+
var import_chunk_JFXHOFJA = require("../chunk-JFXHOFJA.js");
|
|
36
|
+
var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
|
|
37
|
+
var import_chunk_WFMA7DI5 = require("../chunk-WFMA7DI5.js");
|
|
38
|
+
var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
|
|
39
|
+
var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
|
|
40
|
+
var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
|
|
41
|
+
var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
|
|
42
|
+
var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
|
|
43
|
+
var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
|
|
44
|
+
var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
|
|
45
|
+
var import_chunk_BGMZPA2F = require("../chunk-BGMZPA2F.js");
|
|
46
|
+
var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
|
|
47
|
+
var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
|
|
48
|
+
var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
|
|
49
|
+
var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
|
|
50
|
+
var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
|
|
51
|
+
var import_chunk_QVJ2BXKF = require("../chunk-QVJ2BXKF.js");
|
|
52
|
+
var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
|
|
53
|
+
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
54
|
+
var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
|
|
55
|
+
var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
|
|
56
|
+
var import_chunk_DUDEWDFC = require("../chunk-DUDEWDFC.js");
|
|
57
|
+
var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
|
|
58
|
+
var import_chunk_YXB6APHS = require("../chunk-YXB6APHS.js");
|
|
59
|
+
var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
|
|
60
|
+
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
61
|
+
var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
|
|
62
|
+
var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
|
|
63
|
+
var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
|
|
64
|
+
var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
|
|
65
|
+
var import_chunk_EKGEKB22 = require("../chunk-EKGEKB22.js");
|
|
66
|
+
var import_chunk_3TYD3ZGQ = require("../chunk-3TYD3ZGQ.js");
|
|
67
|
+
var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
|
|
68
|
+
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
|
69
|
+
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
|
70
|
+
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
|
71
|
+
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
|
72
|
+
var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
73
|
+
var import_chunk_3YOF262C = require("../chunk-3YOF262C.js");
|
|
74
|
+
var import_chunk_NTDBN2N2 = require("../chunk-NTDBN2N2.js");
|
|
75
|
+
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
|
76
|
+
var import_chunk_3VD46SL7 = require("../chunk-3VD46SL7.js");
|
|
77
|
+
var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
|
|
78
|
+
var import_chunk_6PWHYRKR = require("../chunk-6PWHYRKR.js");
|
|
79
|
+
var import_chunk_IYN5VKMD = require("../chunk-IYN5VKMD.js");
|
|
80
|
+
var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
|
|
81
|
+
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
|
82
|
+
var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
|
|
83
|
+
var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
|
|
84
|
+
var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
|
|
85
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
86
|
+
var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
|
|
87
|
+
var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
|
|
88
|
+
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
|
89
|
+
var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
|
|
90
|
+
var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
|
|
91
|
+
var import_chunk_L3LDE52J = require("../chunk-L3LDE52J.js");
|
|
92
|
+
var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
|
|
93
|
+
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
|
94
|
+
var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
|
|
95
|
+
var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
|
|
96
|
+
var import_chunk_3ZHE2IX4 = require("../chunk-3ZHE2IX4.js");
|
|
97
|
+
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
|
98
|
+
var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
|
|
99
|
+
var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
|
|
100
|
+
var import_chunk_CXEXLFVL = require("../chunk-CXEXLFVL.js");
|
|
101
|
+
var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
|
|
102
|
+
var import_chunk_5PJQQKQI = require("../chunk-5PJQQKQI.js");
|
|
103
|
+
var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
|
|
104
|
+
var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
|
|
105
|
+
var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
|
|
106
|
+
var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
|
|
107
|
+
var import_chunk_FRVJZOHP = require("../chunk-FRVJZOHP.js");
|
|
108
|
+
var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
|
|
109
|
+
var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
|
|
110
|
+
var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
|
|
111
|
+
var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
|
|
112
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
113
|
+
var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
|
|
114
|
+
var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
|
|
115
|
+
var import_chunk_MCS5ZY6Y = require("../chunk-MCS5ZY6Y.js");
|
|
116
|
+
var import_chunk_3U4QB2G3 = require("../chunk-3U4QB2G3.js");
|
|
117
|
+
var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
|
|
118
|
+
var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
|
|
119
|
+
var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
|
|
120
|
+
var import_chunk_PTPRBA7K = require("../chunk-PTPRBA7K.js");
|
|
121
|
+
var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
|
|
122
|
+
var import_chunk_JPZYSRK3 = require("../chunk-JPZYSRK3.js");
|
|
123
|
+
var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
|
|
124
|
+
var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
|
|
125
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CompletionValue } from './types';
|
|
2
|
+
export declare const completionSchemaPaths: CompletionValue[];
|
|
3
|
+
export declare const completionConfigPaths: CompletionValue[];
|
|
4
|
+
export declare const completionDatasourceUrls: CompletionValue[];
|
|
5
|
+
export declare const completionApiKeyHint: CompletionValue[];
|
|
6
|
+
export declare const completionDatabaseIdHint: CompletionValue[];
|
|
7
|
+
export declare const completionGeneratorNames: CompletionValue[];
|
|
8
|
+
export declare const completionClientOutputPaths: CompletionValue[];
|
|
9
|
+
export declare const completionPreviewFeatures: CompletionValue[];
|
|
10
|
+
export declare const completionSqlScriptPaths: CompletionValue[];
|
|
11
|
+
export declare const completionMigrationsDirPaths: CompletionValue[];
|
|
12
|
+
export declare const completionDiffOutputPaths: CompletionValue[];
|
|
13
|
+
export declare const completionMigrationNames: CompletionValue[];
|
|
14
|
+
export declare const completionMigrationIds: CompletionValue[];
|
|
15
|
+
export declare const completionCompositeTypeDepths: CompletionValue[];
|
|
16
|
+
export declare const completionDatabaseSchemas: CompletionValue[];
|
|
17
|
+
export declare const completionDatasourceProviders: CompletionValue[];
|
|
18
|
+
export declare const completionGeneratorProviders: CompletionValue[];
|
|
19
|
+
export declare const completionStudioPorts: CompletionValue[];
|
|
20
|
+
export declare const completionStudioBrowsers: CompletionValue[];
|
|
21
|
+
export declare const completionDevServerNames: CompletionValue[];
|
|
22
|
+
export declare const completionDevHttpPorts: CompletionValue[];
|
|
23
|
+
export declare const completionDevDbPorts: CompletionValue[];
|
|
24
|
+
export declare const completionDevShadowDbPorts: CompletionValue[];
|
|
@@ -0,0 +1,47 @@
|
|
|
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 completion_values_exports = {};
|
|
20
|
+
__export(completion_values_exports, {
|
|
21
|
+
completionApiKeyHint: () => import_chunk_QMNPESAP.completionApiKeyHint,
|
|
22
|
+
completionClientOutputPaths: () => import_chunk_QMNPESAP.completionClientOutputPaths,
|
|
23
|
+
completionCompositeTypeDepths: () => import_chunk_QMNPESAP.completionCompositeTypeDepths,
|
|
24
|
+
completionConfigPaths: () => import_chunk_QMNPESAP.completionConfigPaths,
|
|
25
|
+
completionDatabaseIdHint: () => import_chunk_QMNPESAP.completionDatabaseIdHint,
|
|
26
|
+
completionDatabaseSchemas: () => import_chunk_QMNPESAP.completionDatabaseSchemas,
|
|
27
|
+
completionDatasourceProviders: () => import_chunk_QMNPESAP.completionDatasourceProviders,
|
|
28
|
+
completionDatasourceUrls: () => import_chunk_QMNPESAP.completionDatasourceUrls,
|
|
29
|
+
completionDevDbPorts: () => import_chunk_QMNPESAP.completionDevDbPorts,
|
|
30
|
+
completionDevHttpPorts: () => import_chunk_QMNPESAP.completionDevHttpPorts,
|
|
31
|
+
completionDevServerNames: () => import_chunk_QMNPESAP.completionDevServerNames,
|
|
32
|
+
completionDevShadowDbPorts: () => import_chunk_QMNPESAP.completionDevShadowDbPorts,
|
|
33
|
+
completionDiffOutputPaths: () => import_chunk_QMNPESAP.completionDiffOutputPaths,
|
|
34
|
+
completionGeneratorNames: () => import_chunk_QMNPESAP.completionGeneratorNames,
|
|
35
|
+
completionGeneratorProviders: () => import_chunk_QMNPESAP.completionGeneratorProviders,
|
|
36
|
+
completionMigrationIds: () => import_chunk_QMNPESAP.completionMigrationIds,
|
|
37
|
+
completionMigrationNames: () => import_chunk_QMNPESAP.completionMigrationNames,
|
|
38
|
+
completionMigrationsDirPaths: () => import_chunk_QMNPESAP.completionMigrationsDirPaths,
|
|
39
|
+
completionPreviewFeatures: () => import_chunk_QMNPESAP.completionPreviewFeatures,
|
|
40
|
+
completionSchemaPaths: () => import_chunk_QMNPESAP.completionSchemaPaths,
|
|
41
|
+
completionSqlScriptPaths: () => import_chunk_QMNPESAP.completionSqlScriptPaths,
|
|
42
|
+
completionStudioBrowsers: () => import_chunk_QMNPESAP.completionStudioBrowsers,
|
|
43
|
+
completionStudioPorts: () => import_chunk_QMNPESAP.completionStudioPorts
|
|
44
|
+
});
|
|
45
|
+
module.exports = __toCommonJS(completion_values_exports);
|
|
46
|
+
var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
|
|
47
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PrismaConfig } from '@prisma/config';
|
|
2
|
+
import { SchemaContext } from './schemaContext';
|
|
3
|
+
export type DirectoryConfig = {
|
|
4
|
+
viewsDirPath: string;
|
|
5
|
+
typedSqlDirPath: string;
|
|
6
|
+
migrationsDirPath: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* TODO: `config` should very likely be mandatory here.
|
|
10
|
+
*/
|
|
11
|
+
export declare function inferDirectoryConfig(schemaContext?: SchemaContext | null, config?: Pick<PrismaConfig, 'views' | 'typedSql' | 'migrations'>, cwd?: string): DirectoryConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 directoryConfig_exports = {};
|
|
20
|
+
__export(directoryConfig_exports, {
|
|
21
|
+
inferDirectoryConfig: () => import_chunk_NBWRGVYR.inferDirectoryConfig
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(directoryConfig_exports);
|
|
24
|
+
var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Generator } from '../Generator';
|
|
2
|
+
/**
|
|
3
|
+
* Creates and formats the success message for the given generator to print to
|
|
4
|
+
* the console after generation finishes.
|
|
5
|
+
* @param time time in milliseconds it took for the generator to run.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getGeneratorSuccessMessage(generator: Generator, time: number): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 getGeneratorSuccessMessage_exports = {};
|
|
20
|
+
__export(getGeneratorSuccessMessage_exports, {
|
|
21
|
+
getGeneratorSuccessMessage: () => import_chunk_3ZHE2IX4.getGeneratorSuccessMessage
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getGeneratorSuccessMessage_exports);
|
|
24
|
+
var import_chunk_3ZHE2IX4 = require("../chunk-3ZHE2IX4.js");
|
|
25
|
+
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
|
26
|
+
var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
|
|
27
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
28
|
+
var import_chunk_MCS5ZY6Y = require("../chunk-MCS5ZY6Y.js");
|
|
29
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { GetSchemaResult } from '@prisma/schema-files-loader';
|
|
2
|
+
export type GetSchemaOptions = {
|
|
3
|
+
schemaPath: SchemaPathInput;
|
|
4
|
+
cwd?: string;
|
|
5
|
+
argumentName?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Creates SchemaPathInput based on a combination of possible inputs
|
|
9
|
+
* from CLI args, config file, or base directory.
|
|
10
|
+
* `baseDir` is either the directory containing the prisma config file or the working directory
|
|
11
|
+
* of the CLI invocation if no config file is found.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createSchemaPathInput({ schemaPathFromArgs, schemaPathFromConfig, baseDir, }: {
|
|
14
|
+
schemaPathFromArgs?: string;
|
|
15
|
+
schemaPathFromConfig?: string;
|
|
16
|
+
baseDir: string;
|
|
17
|
+
}): SchemaPathInput;
|
|
18
|
+
/**
|
|
19
|
+
* Loads the schema, throws an error if it is not found
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSchemaWithPath({ schemaPath, cwd, argumentName, }: GetSchemaOptions): Promise<GetSchemaResult>;
|
|
22
|
+
/**
|
|
23
|
+
* The schema path can be provided as a CLI argument, a configuration file, or a base directory
|
|
24
|
+
* that is expected to contain the schema in one of the default locations.
|
|
25
|
+
*/
|
|
26
|
+
export type SchemaPathInput = {
|
|
27
|
+
cliProvidedPath: string;
|
|
28
|
+
} | {
|
|
29
|
+
configProvidedPath: string;
|
|
30
|
+
} | {
|
|
31
|
+
baseDir: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Loads the schema, returns null if it is not found
|
|
35
|
+
* Throws an error if schema is specified explicitly in
|
|
36
|
+
* any of the available ways (argument, package.json config), but
|
|
37
|
+
* can not be loaded
|
|
38
|
+
* @param schemaPathFromArgs
|
|
39
|
+
* @param schemaPathFromConfig
|
|
40
|
+
* @param opts
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSchemaWithPathOptional({ schemaPath, cwd, argumentName, }: GetSchemaOptions): Promise<GetSchemaResult | null>;
|
|
44
|
+
export declare function printSchemaLoadedMessage(schemaPath: string): void;
|
|
45
|
+
export declare function getCliProvidedSchemaFile(schemaPathFromArgs: string, cwd?: string, argumentName?: string): Promise<GetSchemaResult>;
|
|
46
|
+
export declare function getConfigProvidedSchemaFile(schemaPathFromConfig: string): Promise<GetSchemaResult>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 getSchema_exports = {};
|
|
20
|
+
__export(getSchema_exports, {
|
|
21
|
+
createSchemaPathInput: () => import_chunk_TPCPXGC5.createSchemaPathInput,
|
|
22
|
+
getCliProvidedSchemaFile: () => import_chunk_TPCPXGC5.getCliProvidedSchemaFile,
|
|
23
|
+
getConfigProvidedSchemaFile: () => import_chunk_TPCPXGC5.getConfigProvidedSchemaFile,
|
|
24
|
+
getSchemaWithPath: () => import_chunk_TPCPXGC5.getSchemaWithPath,
|
|
25
|
+
getSchemaWithPathOptional: () => import_chunk_TPCPXGC5.getSchemaWithPathOptional,
|
|
26
|
+
printSchemaLoadedMessage: () => import_chunk_TPCPXGC5.printSchemaLoadedMessage
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(getSchema_exports);
|
|
29
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
30
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
31
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTypescriptVersion(): Promise<string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 getTypescriptVersion_exports = {};
|
|
20
|
+
__export(getTypescriptVersion_exports, {
|
|
21
|
+
getTypescriptVersion: () => import_chunk_J7ZPY2XA.getTypescriptVersion
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getTypescriptVersion_exports);
|
|
24
|
+
var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SchemaPathInput } from './getSchema';
|
|
2
|
+
/**
|
|
3
|
+
* Get a unique identifier for the project by hashing
|
|
4
|
+
* the directory with `schema.prisma`
|
|
5
|
+
*/
|
|
6
|
+
export declare function getProjectHash(schemaPath: SchemaPathInput): Promise<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Get a unique identifier for the CLI installation path
|
|
9
|
+
* which can be either global or local (in project's node_modules)
|
|
10
|
+
*/
|
|
11
|
+
export declare function getCLIPathHash(): 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 hashes_exports = {};
|
|
20
|
+
__export(hashes_exports, {
|
|
21
|
+
getCLIPathHash: () => import_chunk_74RGCSUJ.getCLIPathHash,
|
|
22
|
+
getProjectHash: () => import_chunk_74RGCSUJ.getProjectHash
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(hashes_exports);
|
|
25
|
+
var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
|
|
26
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
27
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
28
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ActiveConnectorType, DataSource, GeneratorConfig } from '@prisma/generator';
|
|
2
|
+
import { GetSchemaResult, LoadedFile } from '@prisma/schema-files-loader';
|
|
3
|
+
import { SchemaPathInput } from './getSchema';
|
|
4
|
+
export type SchemaContext = {
|
|
5
|
+
/**
|
|
6
|
+
* All loaded schema files and their paths.
|
|
7
|
+
*/
|
|
8
|
+
schemaFiles: LoadedFile[];
|
|
9
|
+
/**
|
|
10
|
+
* The root directory of the schema files.
|
|
11
|
+
* Either set explicitly from a schema folder based config or the parent directory of the schema.prisma file.
|
|
12
|
+
*/
|
|
13
|
+
schemaRootDir: string;
|
|
14
|
+
/**
|
|
15
|
+
* The path that shall be printed in user facing logs messages informing them from where the schema was loaded.
|
|
16
|
+
*/
|
|
17
|
+
loadedFromPathForLogMessages: string;
|
|
18
|
+
/**
|
|
19
|
+
* The datasource extracted from the Prisma schema. So far we only support a single datasource block.
|
|
20
|
+
*/
|
|
21
|
+
primaryDatasource: DataSource | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Warnings that were raised during Prisma schema parsing.
|
|
24
|
+
*/
|
|
25
|
+
warnings: string[] | [];
|
|
26
|
+
/**
|
|
27
|
+
* The datasources extracted from the Prisma schema. Prefer to use primaryDatasource for most cases.
|
|
28
|
+
*/
|
|
29
|
+
datasources: DataSource[] | [];
|
|
30
|
+
/**
|
|
31
|
+
* The generators extracted from the Prisma schema.
|
|
32
|
+
*/
|
|
33
|
+
generators: GeneratorConfig[] | [];
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Only used during the refactoring for backwards compatibility. Use `schemaFiles` instead or determine needed file paths otherwise.
|
|
36
|
+
*/
|
|
37
|
+
schemaPath: string;
|
|
38
|
+
};
|
|
39
|
+
type LoadSchemaContextOptions = {
|
|
40
|
+
schemaPath: SchemaPathInput;
|
|
41
|
+
printLoadMessage?: boolean;
|
|
42
|
+
allowNull?: boolean;
|
|
43
|
+
schemaPathArgumentName?: string;
|
|
44
|
+
cwd?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare function loadSchemaContext(opts: LoadSchemaContextOptions & {
|
|
47
|
+
allowNull: true;
|
|
48
|
+
}): Promise<SchemaContext | null>;
|
|
49
|
+
export declare function loadSchemaContext(opts?: LoadSchemaContextOptions): Promise<SchemaContext>;
|
|
50
|
+
export declare function processSchemaResult({ schemaResult, printLoadMessage, cwd, }: {
|
|
51
|
+
schemaResult: GetSchemaResult;
|
|
52
|
+
printLoadMessage?: boolean;
|
|
53
|
+
cwd?: string;
|
|
54
|
+
}): Promise<SchemaContext>;
|
|
55
|
+
export declare function getSchemaDatasourceProvider(schemaContext: SchemaContext): ActiveConnectorType;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
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 schemaContext_exports = {};
|
|
20
|
+
__export(schemaContext_exports, {
|
|
21
|
+
getSchemaDatasourceProvider: () => import_chunk_CTQD6OLG.getSchemaDatasourceProvider,
|
|
22
|
+
loadSchemaContext: () => import_chunk_CTQD6OLG.loadSchemaContext,
|
|
23
|
+
processSchemaResult: () => import_chunk_CTQD6OLG.processSchemaResult
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(schemaContext_exports);
|
|
26
|
+
var import_chunk_CTQD6OLG = require("../chunk-CTQD6OLG.js");
|
|
27
|
+
var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
|
|
28
|
+
var import_chunk_DZ4QWHTB = require("../chunk-DZ4QWHTB.js");
|
|
29
|
+
var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
|
|
30
|
+
var import_chunk_GJSFP4V4 = require("../chunk-GJSFP4V4.js");
|
|
31
|
+
var import_chunk_X3P4J7WW = require("../chunk-X3P4J7WW.js");
|
|
32
|
+
var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
|
|
33
|
+
var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
|
|
34
|
+
var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
|
|
35
|
+
var import_chunk_SP2ETLT2 = require("../chunk-SP2ETLT2.js");
|
|
36
|
+
var import_chunk_JFXHOFJA = require("../chunk-JFXHOFJA.js");
|
|
37
|
+
var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
|
|
38
|
+
var import_chunk_WFMA7DI5 = require("../chunk-WFMA7DI5.js");
|
|
39
|
+
var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
|
|
40
|
+
var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
|
|
41
|
+
var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
|
|
42
|
+
var import_chunk_7B5PXS6N = require("../chunk-7B5PXS6N.js");
|
|
43
|
+
var import_chunk_UGR6KLZN = require("../chunk-UGR6KLZN.js");
|
|
44
|
+
var import_chunk_CGFNDGGI = require("../chunk-CGFNDGGI.js");
|
|
45
|
+
var import_chunk_LRBXMV4B = require("../chunk-LRBXMV4B.js");
|
|
46
|
+
var import_chunk_BGMZPA2F = require("../chunk-BGMZPA2F.js");
|
|
47
|
+
var import_chunk_WV4QHCSM = require("../chunk-WV4QHCSM.js");
|
|
48
|
+
var import_chunk_XXTPN4LB = require("../chunk-XXTPN4LB.js");
|
|
49
|
+
var import_chunk_2IOZUH3U = require("../chunk-2IOZUH3U.js");
|
|
50
|
+
var import_chunk_JTKAT4KZ = require("../chunk-JTKAT4KZ.js");
|
|
51
|
+
var import_chunk_RBDYOTWB = require("../chunk-RBDYOTWB.js");
|
|
52
|
+
var import_chunk_QVJ2BXKF = require("../chunk-QVJ2BXKF.js");
|
|
53
|
+
var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
|
|
54
|
+
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
55
|
+
var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
|
|
56
|
+
var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
|
|
57
|
+
var import_chunk_DUDEWDFC = require("../chunk-DUDEWDFC.js");
|
|
58
|
+
var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
|
|
59
|
+
var import_chunk_YXB6APHS = require("../chunk-YXB6APHS.js");
|
|
60
|
+
var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
|
|
61
|
+
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
62
|
+
var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
|
|
63
|
+
var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
|
|
64
|
+
var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
|
|
65
|
+
var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
|
|
66
|
+
var import_chunk_EKGEKB22 = require("../chunk-EKGEKB22.js");
|
|
67
|
+
var import_chunk_3TYD3ZGQ = require("../chunk-3TYD3ZGQ.js");
|
|
68
|
+
var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
|
|
69
|
+
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
|
70
|
+
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
|
71
|
+
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
|
72
|
+
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
|
73
|
+
var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
74
|
+
var import_chunk_3YOF262C = require("../chunk-3YOF262C.js");
|
|
75
|
+
var import_chunk_NTDBN2N2 = require("../chunk-NTDBN2N2.js");
|
|
76
|
+
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
|
77
|
+
var import_chunk_3VD46SL7 = require("../chunk-3VD46SL7.js");
|
|
78
|
+
var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
|
|
79
|
+
var import_chunk_6PWHYRKR = require("../chunk-6PWHYRKR.js");
|
|
80
|
+
var import_chunk_IYN5VKMD = require("../chunk-IYN5VKMD.js");
|
|
81
|
+
var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
|
|
82
|
+
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
|
83
|
+
var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
|
|
84
|
+
var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
|
|
85
|
+
var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
|
|
86
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
87
|
+
var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
|
|
88
|
+
var import_chunk_I4K46RGG = require("../chunk-I4K46RGG.js");
|
|
89
|
+
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
|
90
|
+
var import_chunk_EU6UOKRD = require("../chunk-EU6UOKRD.js");
|
|
91
|
+
var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
|
|
92
|
+
var import_chunk_L3LDE52J = require("../chunk-L3LDE52J.js");
|
|
93
|
+
var import_chunk_I2CBQZJY = require("../chunk-I2CBQZJY.js");
|
|
94
|
+
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
|
95
|
+
var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
|
|
96
|
+
var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
|
|
97
|
+
var import_chunk_3ZHE2IX4 = require("../chunk-3ZHE2IX4.js");
|
|
98
|
+
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
|
99
|
+
var import_chunk_ZJWZK45Z = require("../chunk-ZJWZK45Z.js");
|
|
100
|
+
var import_chunk_2B26F5N3 = require("../chunk-2B26F5N3.js");
|
|
101
|
+
var import_chunk_CXEXLFVL = require("../chunk-CXEXLFVL.js");
|
|
102
|
+
var import_chunk_JOIHHXR6 = require("../chunk-JOIHHXR6.js");
|
|
103
|
+
var import_chunk_5PJQQKQI = require("../chunk-5PJQQKQI.js");
|
|
104
|
+
var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
|
|
105
|
+
var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
|
|
106
|
+
var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
|
|
107
|
+
var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
|
|
108
|
+
var import_chunk_FRVJZOHP = require("../chunk-FRVJZOHP.js");
|
|
109
|
+
var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
|
|
110
|
+
var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
|
|
111
|
+
var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
|
|
112
|
+
var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
|
|
113
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
114
|
+
var import_chunk_WXRVYSYN = require("../chunk-WXRVYSYN.js");
|
|
115
|
+
var import_chunk_SBUSVJCV = require("../chunk-SBUSVJCV.js");
|
|
116
|
+
var import_chunk_MCS5ZY6Y = require("../chunk-MCS5ZY6Y.js");
|
|
117
|
+
var import_chunk_3U4QB2G3 = require("../chunk-3U4QB2G3.js");
|
|
118
|
+
var import_chunk_LPNBWFQ3 = require("../chunk-LPNBWFQ3.js");
|
|
119
|
+
var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
|
|
120
|
+
var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
|
|
121
|
+
var import_chunk_PTPRBA7K = require("../chunk-PTPRBA7K.js");
|
|
122
|
+
var import_chunk_KDP6C3CB = require("../chunk-KDP6C3CB.js");
|
|
123
|
+
var import_chunk_JPZYSRK3 = require("../chunk-JPZYSRK3.js");
|
|
124
|
+
var import_chunk_UMM35VP5 = require("../chunk-UMM35VP5.js");
|
|
125
|
+
var import_chunk_5VQNKCKW = require("../chunk-5VQNKCKW.js");
|
|
126
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|