@prisma/migrate 6.17.0-integration-engines-6-17-0-4-integration-do-not-render-default-namespace-8d4739edba6d81075da5f45998d062d2444a0ed9.2 → 6.17.0-integration-feat-orm-1074-package-dev-export.1
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/bin.js +3 -3
- package/dist/{chunk-UQEITMMV.js → chunk-IKB544RB.js} +17 -4
- package/dist/commands/DbPull.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMysql.js +1450 -2526
- package/package.json +13 -11
package/dist/bin.js
CHANGED
|
@@ -34,7 +34,7 @@ var import_chunk_YEUENY2G = require("./chunk-YEUENY2G.js");
|
|
|
34
34
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
35
35
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
|
36
36
|
var import_chunk_U62JTEME = require("./chunk-U62JTEME.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_IKB544RB = require("./chunk-IKB544RB.js");
|
|
38
38
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
|
39
39
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
40
40
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
|
@@ -71,7 +71,7 @@ var import_config = require("@prisma/config");
|
|
|
71
71
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
72
72
|
var import_engines_version = require("@prisma/engines-version");
|
|
73
73
|
var import_internals = require("@prisma/internals");
|
|
74
|
-
var version = "6.17.0-integration-
|
|
74
|
+
var version = "6.17.0-integration-feat-orm-1074-package-dev-export.1";
|
|
75
75
|
process.on("uncaughtException", (e) => {
|
|
76
76
|
console.log(e);
|
|
77
77
|
});
|
|
@@ -102,7 +102,7 @@ async function main() {
|
|
|
102
102
|
}),
|
|
103
103
|
db: import_chunk_EJG7GKM7.DbCommand.new({
|
|
104
104
|
execute: import_chunk_U62JTEME.DbExecute.new(),
|
|
105
|
-
pull:
|
|
105
|
+
pull: import_chunk_IKB544RB.DbPull.new(),
|
|
106
106
|
push: import_chunk_WXE3X4AN.DbPush.new(),
|
|
107
107
|
// drop: DbDrop.new(),
|
|
108
108
|
seed: import_chunk_DYXEUKV3.DbSeed.new()
|
|
@@ -26,11 +26,11 @@ 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_IKB544RB_exports = {};
|
|
30
|
+
__export(chunk_IKB544RB_exports, {
|
|
31
31
|
DbPull: () => DbPull
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_IKB544RB_exports);
|
|
34
34
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
|
35
35
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
36
36
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|
|
@@ -157,6 +157,7 @@ Set composite types introspection depth to 2 levels
|
|
|
157
157
|
const { firstDatasource, schema, validationWarning } = await (0, import_chunk_AXR7LS2N.z)({ url, schemaContext, fromD1 }).when(
|
|
158
158
|
(input) => input.schemaContext !== null,
|
|
159
159
|
async (input) => {
|
|
160
|
+
const previewFeatures = input.schemaContext.generators.find(({ name }) => name === "client")?.previewFeatures;
|
|
160
161
|
const firstDatasource2 = input.schemaContext.primaryDatasource ? input.schemaContext.primaryDatasource : void 0;
|
|
161
162
|
if (input.url) {
|
|
162
163
|
let providerFromSchema = firstDatasource2?.provider;
|
|
@@ -184,7 +185,18 @@ Set composite types introspection depth to 2 levels
|
|
|
184
185
|
datamodel: schema2,
|
|
185
186
|
ignoreEnvVarErrors: true
|
|
186
187
|
});
|
|
187
|
-
|
|
188
|
+
const result = { firstDatasource: config2.datasources[0], schema: schema2, validationWarning: void 0 };
|
|
189
|
+
const hasDriverAdaptersPreviewFeature = (previewFeatures || []).includes("driverAdapters");
|
|
190
|
+
const validationWarning2 = `Without the ${(0, import_chunk_SKRR5WT4.bold)(
|
|
191
|
+
"driverAdapters"
|
|
192
|
+
)} preview feature, the schema introspected via the ${(0, import_chunk_SKRR5WT4.bold)("--local-d1")} flag will not work with ${(0, import_chunk_SKRR5WT4.bold)(
|
|
193
|
+
"@prisma/client"
|
|
194
|
+
)}.`;
|
|
195
|
+
if (hasDriverAdaptersPreviewFeature) {
|
|
196
|
+
return result;
|
|
197
|
+
} else {
|
|
198
|
+
return { ...result, validationWarning: validationWarning2 };
|
|
199
|
+
}
|
|
188
200
|
} else {
|
|
189
201
|
await (0, import_internals.getConfig)({
|
|
190
202
|
datamodel: input.schemaContext.schemaFiles,
|
|
@@ -200,6 +212,7 @@ Set composite types introspection depth to 2 levels
|
|
|
200
212
|
const pathToSQLiteFile = import_path.default.relative(process.cwd(), d1Database);
|
|
201
213
|
const schemaContent = `generator client {
|
|
202
214
|
provider = "prisma-client-js"
|
|
215
|
+
previewFeatures = ["driverAdapters"]
|
|
203
216
|
}
|
|
204
217
|
${this.urlToDatasource(`file:${pathToSQLiteFile}`, "sqlite")}`;
|
|
205
218
|
const schema2 = [["schema.prisma", schemaContent]];
|
package/dist/commands/DbPull.js
CHANGED
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var DbPull_exports = {};
|
|
20
20
|
__export(DbPull_exports, {
|
|
21
|
-
DbPull: () =>
|
|
21
|
+
DbPull: () => import_chunk_IKB544RB.DbPull
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(DbPull_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_IKB544RB = require("../chunk-IKB544RB.js");
|
|
25
25
|
var import_chunk_IINN7QUV = require("../chunk-IINN7QUV.js");
|
|
26
26
|
var import_chunk_JZ75RIMZ = require("../chunk-JZ75RIMZ.js");
|
|
27
27
|
var import_chunk_RR6BKMNO = require("../chunk-RR6BKMNO.js");
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ __export(index_exports, {
|
|
|
21
21
|
DbCommand: () => import_chunk_EJG7GKM7.DbCommand,
|
|
22
22
|
DbDrop: () => import_chunk_CXSHCKU6.DbDrop,
|
|
23
23
|
DbExecute: () => import_chunk_U62JTEME.DbExecute,
|
|
24
|
-
DbPull: () =>
|
|
24
|
+
DbPull: () => import_chunk_IKB544RB.DbPull,
|
|
25
25
|
DbPush: () => import_chunk_WXE3X4AN.DbPush,
|
|
26
26
|
DbSeed: () => import_chunk_DYXEUKV3.DbSeed,
|
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
|
@@ -54,7 +54,7 @@ var import_chunk_YEUENY2G = require("./chunk-YEUENY2G.js");
|
|
|
54
54
|
var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
|
|
55
55
|
var import_chunk_EJG7GKM7 = require("./chunk-EJG7GKM7.js");
|
|
56
56
|
var import_chunk_U62JTEME = require("./chunk-U62JTEME.js");
|
|
57
|
-
var
|
|
57
|
+
var import_chunk_IKB544RB = require("./chunk-IKB544RB.js");
|
|
58
58
|
var import_chunk_IINN7QUV = require("./chunk-IINN7QUV.js");
|
|
59
59
|
var import_chunk_JZ75RIMZ = require("./chunk-JZ75RIMZ.js");
|
|
60
60
|
var import_chunk_RR6BKMNO = require("./chunk-RR6BKMNO.js");
|