@prisma/internals 6.1.0-dev.2 → 6.1.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-REPCDWZ2.js → chunk-24J4RS7W.js} +6 -6
- package/dist/{chunk-H3T4L34H.js → chunk-25RJ7YTB.js} +88 -83
- package/dist/{chunk-S4LINK5Y.js → chunk-2XRDQCIA.js} +5 -5
- package/dist/{chunk-OLKRUSOM.js → chunk-367S2MBR.js} +15 -15
- package/dist/{chunk-JMZHUHCC.js → chunk-3DMEILBC.js} +13 -13
- package/dist/{chunk-2QSNILRH.js → chunk-3H62S3WD.js} +33 -804
- package/dist/{chunk-QRT26ULD.js → chunk-43VUK3MC.js} +5 -5
- package/dist/{chunk-XXYXWXRT.js → chunk-5OU6MVBS.js} +5 -5
- package/dist/{chunk-D4MCOTL5.js → chunk-5XRQ7ONW.js} +5 -5
- package/dist/{chunk-YRALI4Z5.js → chunk-6BHYPXCB.js} +5 -5
- package/dist/{chunk-UPOOOCZ4.js → chunk-6FIYAVRW.js} +5 -5
- package/dist/{chunk-QGYKPH55.js → chunk-7MM2QZYT.js} +14 -41
- package/dist/{chunk-I4467NNA.js → chunk-CXEMRKV4.js} +6 -6
- package/dist/{chunk-PKX4IW2Y.js → chunk-D6Z7NTDK.js} +13 -13
- package/dist/{chunk-G7LL2H2O.js → chunk-EKBX4J6O.js} +7 -7
- package/dist/{chunk-SV7K7BEF.js → chunk-FFCFNFDZ.js} +15 -15
- package/dist/{chunk-CO56NBYR.js → chunk-FTRKB7FO.js} +5 -5
- package/dist/{chunk-YALATXKM.js → chunk-G4CE5JB4.js} +5 -5
- package/dist/{chunk-UHMT3MWW.js → chunk-MHZABSGE.js} +5 -5
- package/dist/{chunk-J4MA2JIK.js → chunk-N6K7M2HZ.js} +5 -5
- package/dist/{chunk-RQPDQSHK.js → chunk-QIVUAERL.js} +777 -4
- package/dist/{chunk-FPHZVRV4.js → chunk-QJZIYUVB.js} +5 -5
- package/dist/{chunk-SLBBRUQS.js → chunk-QTXYAZFX.js} +5 -5
- package/dist/{chunk-FCSFS3ED.js → chunk-RQZTYVW5.js} +13 -13
- package/dist/{chunk-VAPKCPNH.js → chunk-T5DN4K4D.js} +14 -41
- package/dist/{chunk-4RWCRJYD.js → chunk-TFSZCVKC.js} +5 -5
- package/dist/{chunk-HPF5G47V.js → chunk-UPIULDLZ.js} +5 -5
- package/dist/{chunk-DUZ25E6S.js → chunk-VBYSSYR5.js} +33 -804
- package/dist/{chunk-R5SKCJDO.js → chunk-VDIJTVA3.js} +14 -14
- package/dist/{chunk-AFWVDOPK.js → chunk-XD4IL4LG.js} +5 -5
- package/dist/{chunk-FZA7UXNP.js → chunk-XWZZEGZ4.js} +5 -5
- package/dist/{chunk-BMDD7WQX.js → chunk-XYJGVQS2.js} +14 -14
- package/dist/cli/checkUnsupportedDataProxy.js +24 -24
- package/dist/cli/getSchema.js +29 -29
- package/dist/cli/hashes.js +24 -24
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +23 -23
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +8 -8
- package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
- package/dist/engine-commands/index.js +34 -34
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +9 -9
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +23 -23
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +23 -23
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +24 -24
- package/dist/get-generators/getGenerators.js +26 -26
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/index.js +63 -63
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +23 -23
- package/dist/tracing/types.d.ts +26 -16
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/getEnvPaths.js +23 -23
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.js +3 -3
- package/dist/utils/handlePanic.js +23 -23
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +23 -23
- package/dist/wasm.js +4 -4
- package/package.json +9 -9
@@ -26,17 +26,17 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_QJZIYUVB_exports = {};
|
30
|
+
__export(chunk_QJZIYUVB_exports, {
|
31
31
|
BinaryType: () => import_fetch_engine.BinaryType,
|
32
32
|
engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
|
33
33
|
maybeCopyToTmp: () => maybeCopyToTmp,
|
34
34
|
resolveBinary: () => resolveBinary,
|
35
35
|
safeResolveBinary: () => safeResolveBinary
|
36
36
|
});
|
37
|
-
module.exports = __toCommonJS(
|
37
|
+
module.exports = __toCommonJS(chunk_QJZIYUVB_exports);
|
38
38
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
39
|
-
var
|
39
|
+
var import_chunk_QIVUAERL = require("./chunk-QIVUAERL.js");
|
40
40
|
var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
|
41
41
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
42
42
|
var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
|
@@ -46,7 +46,7 @@ var import_fetch_engine = require("@prisma/fetch-engine");
|
|
46
46
|
var import_get_platform = require("@prisma/get-platform");
|
47
47
|
var import_fs = __toESM2(require("fs"));
|
48
48
|
var import_path = __toESM2(require("path"));
|
49
|
-
var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
49
|
+
var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QIVUAERL.require_lib)());
|
50
50
|
var import_temp_dir = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_TZCE3PWZ.require_temp_dir)());
|
51
51
|
async function getBinaryName(name) {
|
52
52
|
const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_QTXYAZFX_exports = {};
|
30
|
+
__export(chunk_QTXYAZFX_exports, {
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_QTXYAZFX_exports);
|
35
35
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
36
|
-
var
|
36
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
37
37
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
38
38
|
var import_get_platform = require("@prisma/get-platform");
|
39
39
|
var import_node_process = __toESM(require("node:process"));
|
@@ -379,7 +379,7 @@ function getGitHubIssueUrl({
|
|
379
379
|
});
|
380
380
|
}
|
381
381
|
async function wouldYouLikeToCreateANewIssue(options) {
|
382
|
-
const shouldCreateNewIssue = await (0,
|
382
|
+
const shouldCreateNewIssue = await (0, import_chunk_25RJ7YTB.z)(options.prompt).with(true, async () => {
|
383
383
|
const createNewIssueResponse = await (0, import_prompts.default)({
|
384
384
|
type: "select",
|
385
385
|
name: "value",
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_RQZTYVW5_exports = {};
|
30
|
+
__export(chunk_RQZTYVW5_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_RQZTYVW5_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
36
|
+
var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_XD4IL4LG = require("./chunk-XD4IL4LG.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
|
-
var
|
41
|
-
var
|
40
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
41
|
+
var import_chunk_FTRKB7FO = require("./chunk-FTRKB7FO.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:mergeSchemas");
|
49
49
|
var MergeSchemasError = class extends Error {
|
50
50
|
constructor(params) {
|
51
|
-
const constructedErrorMessage = (0,
|
51
|
+
const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: mergeSchemas]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_XD4IL4LG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "MergeSchemasError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
function mergeSchemas(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "mergeSchemasWasm");
|
69
69
|
debug(`Using mergeSchemas Wasm`);
|
70
70
|
const mergeSchemasEither = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
|
|
73
73
|
const params = JSON.stringify({
|
74
74
|
schema: options.schemas
|
75
75
|
});
|
76
|
-
return
|
76
|
+
return import_chunk_FTRKB7FO.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -85,7 +85,7 @@ function mergeSchemas(options) {
|
|
85
85
|
if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
|
86
86
|
return mergeSchemasEither.right;
|
87
87
|
}
|
88
|
-
const error = (0,
|
88
|
+
const error = (0, import_chunk_25RJ7YTB.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
|
89
89
|
debugErrorType(e);
|
90
90
|
console.error("");
|
91
91
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
|
|
108
108
|
return panic;
|
109
109
|
}
|
110
110
|
const errorOutput = e.error.message;
|
111
|
-
return new MergeSchemasError((0,
|
111
|
+
return new MergeSchemasError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
112
112
|
}).exhaustive();
|
113
113
|
throw error;
|
114
114
|
}
|
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_T5DN4K4D_exports = {};
|
30
|
+
__export(chunk_T5DN4K4D_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_T5DN4K4D_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
37
|
-
var
|
36
|
+
var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
|
37
|
+
var import_chunk_XD4IL4LG = require("./chunk-XD4IL4LG.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
|
-
var
|
40
|
-
var
|
39
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
40
|
+
var import_chunk_FTRKB7FO = require("./chunk-FTRKB7FO.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
49
49
|
var GetDmmfError = class extends Error {
|
50
50
|
constructor(params) {
|
51
|
-
const constructedErrorMessage = (0,
|
51
|
+
const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
@@ -60,13 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_XD4IL4LG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
async function getDMMF(options) {
|
68
|
-
|
69
|
-
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getDmmfWasm");
|
68
|
+
const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "getDmmfWasm");
|
70
69
|
debug(`Using getDmmf Wasm`);
|
71
70
|
const dmmfPipeline = (0, import_function.pipe)(
|
72
71
|
(0, import_chunk_7MD6344A.tryCatch2)(
|
@@ -91,13 +90,13 @@ async function getDMMF(options) {
|
|
91
90
|
() => {
|
92
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
93
92
|
debug("Triggering a Rust panic...");
|
94
|
-
|
93
|
+
import_chunk_FTRKB7FO.prismaSchemaWasm.debug_panic();
|
95
94
|
}
|
96
95
|
const params = JSON.stringify({
|
97
96
|
prismaSchema: datamodel,
|
98
97
|
noColor: Boolean(process.env.NO_COLOR)
|
99
98
|
});
|
100
|
-
const data =
|
99
|
+
const data = import_chunk_FTRKB7FO.prismaSchemaWasm.get_dmmf(params);
|
101
100
|
return data;
|
102
101
|
},
|
103
102
|
(e) => ({
|
@@ -130,7 +129,7 @@ async function getDMMF(options) {
|
|
130
129
|
const { right: data } = dmmfEither;
|
131
130
|
return Promise.resolve(data);
|
132
131
|
}
|
133
|
-
const error = (0,
|
132
|
+
const error = (0, import_chunk_25RJ7YTB.z)(dmmfEither.left).with({ type: "read-datamodel-path" }, (e) => {
|
134
133
|
debugErrorType(e);
|
135
134
|
return new GetDmmfError({
|
136
135
|
_tag: "unparsed",
|
@@ -158,36 +157,10 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
158
157
|
return panic;
|
159
158
|
}
|
160
159
|
const errorOutput = e.error.message;
|
161
|
-
return new GetDmmfError((0,
|
160
|
+
return new GetDmmfError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
162
161
|
}).with({ type: "parse-json" }, (e) => {
|
163
162
|
debugErrorType(e);
|
164
163
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
165
164
|
}).exhaustive();
|
166
165
|
throw error;
|
167
166
|
}
|
168
|
-
function warnOnDeprecatedFeatureFlag(previewFeatures) {
|
169
|
-
const getMessage = (flag) => `${(0, import_chunk_PG5FDKSF.blue)((0, import_chunk_PG5FDKSF.bold)("info"))} The preview flag "${flag}" is not needed anymore, please remove it from your schema.prisma`;
|
170
|
-
const removedFeatureFlagMap = {
|
171
|
-
insensitiveFilters: getMessage("insensitiveFilters"),
|
172
|
-
atomicNumberOperations: getMessage("atomicNumberOperations"),
|
173
|
-
connectOrCreate: getMessage("connectOrCreate"),
|
174
|
-
transaction: getMessage("transaction"),
|
175
|
-
nApi: getMessage("nApi"),
|
176
|
-
transactionApi: getMessage("transactionApi"),
|
177
|
-
uncheckedScalarInputs: getMessage("uncheckedScalarInputs"),
|
178
|
-
nativeTypes: getMessage("nativeTypes"),
|
179
|
-
createMany: getMessage("createMany"),
|
180
|
-
groupBy: getMessage("groupBy"),
|
181
|
-
referentialActions: getMessage("referentialActions"),
|
182
|
-
microsoftSqlServer: getMessage("microsoftSqlServer"),
|
183
|
-
selectRelationCount: getMessage("selectRelationCount"),
|
184
|
-
orderByRelation: getMessage("orderByRelation"),
|
185
|
-
orderByAggregateGroup: getMessage("orderByAggregateGroup")
|
186
|
-
};
|
187
|
-
previewFeatures?.forEach((f) => {
|
188
|
-
const removedMessage = removedFeatureFlagMap[f];
|
189
|
-
if (removedMessage && !process.env.PRISMA_HIDE_PREVIEW_FLAG_WARNINGS) {
|
190
|
-
console.warn(removedMessage);
|
191
|
-
}
|
192
|
-
});
|
193
|
-
}
|
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_TFSZCVKC_exports = {};
|
20
|
+
__export(chunk_TFSZCVKC_exports, {
|
21
21
|
SchemaEngineExitCode: () => SchemaEngineExitCode,
|
22
22
|
canConnectToDatabase: () => canConnectToDatabase,
|
23
23
|
createDatabase: () => createDatabase,
|
24
24
|
dropDatabase: () => dropDatabase,
|
25
25
|
execaCommand: () => execaCommand
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
27
|
+
module.exports = __toCommonJS(chunk_TFSZCVKC_exports);
|
28
28
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
29
|
-
var
|
29
|
+
var import_chunk_QJZIYUVB = require("./chunk-QJZIYUVB.js");
|
30
30
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
31
31
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
32
32
|
var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
|
@@ -141,7 +141,7 @@ async function execaCommand({
|
|
141
141
|
schemaEnginePath,
|
142
142
|
engineCommandName
|
143
143
|
}) {
|
144
|
-
schemaEnginePath = schemaEnginePath || await (0,
|
144
|
+
schemaEnginePath = schemaEnginePath || await (0, import_chunk_QJZIYUVB.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
|
145
145
|
try {
|
146
146
|
return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
|
147
147
|
cwd,
|
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_UPIULDLZ_exports = {};
|
30
|
+
__export(chunk_UPIULDLZ_exports, {
|
31
31
|
locateLocalCloudflareD1: () => locateLocalCloudflareD1
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
34
|
-
var
|
33
|
+
module.exports = __toCommonJS(chunk_UPIULDLZ_exports);
|
34
|
+
var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
|
35
35
|
var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
|
36
36
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
37
37
|
var import_node_path = __toESM(require("node:path"));
|
@@ -50,7 +50,7 @@ async function locateLocalCloudflareD1({ arg }) {
|
|
50
50
|
);
|
51
51
|
}
|
52
52
|
if (d1Databases.length > 1) {
|
53
|
-
const { originalArg, recommendedArg } = (0,
|
53
|
+
const { originalArg, recommendedArg } = (0, import_chunk_25RJ7YTB.z)(arg).with("--to-local-d1", (originalArg2) => ({
|
54
54
|
originalArg: originalArg2,
|
55
55
|
recommendedArg: "--to-url file:"
|
56
56
|
})).with("--from-local-d1", (originalArg2) => ({
|