prisma 6.12.0-dev.1 → 6.12.0-dev.10
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/build/index.js +43 -43
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +41 -41
- package/prisma-client/package.json +5 -5
- package/prisma-client/runtime/binary.js +10 -10
- package/prisma-client/runtime/binary.mjs +4 -4
- package/prisma-client/runtime/client.js +26 -26
- package/prisma-client/runtime/client.mjs +28 -28
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/library.js +19 -19
- package/prisma-client/runtime/library.mjs +15 -15
- package/prisma-client/runtime/react-native.js +2 -2
- package/prisma-client/scripts/default-index.js +3 -3
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.12.0-dev.
|
|
2
|
+
"version": "6.12.0-dev.10",
|
|
3
3
|
"name": "prisma",
|
|
4
4
|
"description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
|
|
5
5
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node": ">=18.18"
|
|
42
42
|
},
|
|
43
43
|
"prisma": {
|
|
44
|
-
"prismaCommit": "
|
|
44
|
+
"prismaCommit": "dd58ba64547e77c25a2d5ceda5b3374314e5251e"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"README.md",
|
|
@@ -152,20 +152,20 @@
|
|
|
152
152
|
"xdg-app-paths": "8.3.0",
|
|
153
153
|
"zod": "3.24.2",
|
|
154
154
|
"zx": "8.4.1",
|
|
155
|
-
"@prisma/adapter-libsql": "6.12.0-dev.
|
|
156
|
-
"@prisma/client-generator-registry": "6.12.0-dev.
|
|
157
|
-
"@prisma/
|
|
158
|
-
"@prisma/
|
|
159
|
-
"@prisma/
|
|
160
|
-
"@prisma/
|
|
161
|
-
"@prisma/generator": "6.12.0-dev.
|
|
162
|
-
"@prisma/get-platform": "6.12.0-dev.
|
|
163
|
-
"@prisma/internals": "6.12.0-dev.
|
|
164
|
-
"@prisma/migrate": "6.12.0-dev.
|
|
155
|
+
"@prisma/adapter-libsql": "6.12.0-dev.10",
|
|
156
|
+
"@prisma/client-generator-registry": "6.12.0-dev.10",
|
|
157
|
+
"@prisma/debug": "6.12.0-dev.10",
|
|
158
|
+
"@prisma/client": "6.12.0-dev.10",
|
|
159
|
+
"@prisma/fetch-engine": "6.12.0-dev.10",
|
|
160
|
+
"@prisma/dmmf": "6.12.0-dev.10",
|
|
161
|
+
"@prisma/generator": "6.12.0-dev.10",
|
|
162
|
+
"@prisma/get-platform": "6.12.0-dev.10",
|
|
163
|
+
"@prisma/internals": "6.12.0-dev.10",
|
|
164
|
+
"@prisma/migrate": "6.12.0-dev.10"
|
|
165
165
|
},
|
|
166
166
|
"dependencies": {
|
|
167
|
-
"@prisma/config": "6.12.0-dev.
|
|
168
|
-
"@prisma/engines": "6.12.0-dev.
|
|
167
|
+
"@prisma/config": "6.12.0-dev.10",
|
|
168
|
+
"@prisma/engines": "6.12.0-dev.10"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"typescript": ">=5.1.0"
|
|
@@ -4515,18 +4515,18 @@ var require_common_path_prefix = __commonJS({
|
|
|
4515
4515
|
}
|
|
4516
4516
|
});
|
|
4517
4517
|
|
|
4518
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4518
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4/node_modules/@prisma/engines-version/package.json
|
|
4519
4519
|
var require_package = __commonJS({
|
|
4520
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4520
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
4521
4521
|
module2.exports = {
|
|
4522
4522
|
name: "@prisma/engines-version",
|
|
4523
|
-
version: "6.
|
|
4523
|
+
version: "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
4524
4524
|
main: "index.js",
|
|
4525
4525
|
types: "index.d.ts",
|
|
4526
4526
|
license: "Apache-2.0",
|
|
4527
4527
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
4528
4528
|
prisma: {
|
|
4529
|
-
enginesVersion: "
|
|
4529
|
+
enginesVersion: "f560fd5c80213d979714317a06077e85afd58ca4"
|
|
4530
4530
|
},
|
|
4531
4531
|
repository: {
|
|
4532
4532
|
type: "git",
|
|
@@ -4548,9 +4548,9 @@ var require_package = __commonJS({
|
|
|
4548
4548
|
}
|
|
4549
4549
|
});
|
|
4550
4550
|
|
|
4551
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4551
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4/node_modules/@prisma/engines-version/index.js
|
|
4552
4552
|
var require_engines_version = __commonJS({
|
|
4553
|
-
"../../node_modules/.pnpm/@prisma+engines-version@6.
|
|
4553
|
+
"../../node_modules/.pnpm/@prisma+engines-version@6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
4554
4554
|
"use strict";
|
|
4555
4555
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4556
4556
|
exports2.enginesVersion = void 0;
|
|
@@ -6715,12 +6715,12 @@ var Cache = class {
|
|
|
6715
6715
|
};
|
|
6716
6716
|
|
|
6717
6717
|
// ../client-common/src/casing.ts
|
|
6718
|
-
function capitalize(
|
|
6719
|
-
if (
|
|
6720
|
-
return
|
|
6718
|
+
function capitalize(self2) {
|
|
6719
|
+
if (self2.length === 0) return self2;
|
|
6720
|
+
return self2[0].toUpperCase() + self2.slice(1);
|
|
6721
6721
|
}
|
|
6722
|
-
function
|
|
6723
|
-
return
|
|
6722
|
+
function uncapitalize(self2) {
|
|
6723
|
+
return self2.substring(0, 1).toLowerCase() + self2.substring(1);
|
|
6724
6724
|
}
|
|
6725
6725
|
|
|
6726
6726
|
// ../client-common/src/Dictionary.ts
|
|
@@ -6792,7 +6792,7 @@ function getMappings(mappings, datamodel) {
|
|
|
6792
6792
|
return model.fields.some((f) => f.kind !== "object");
|
|
6793
6793
|
}).map((mapping) => ({
|
|
6794
6794
|
model: mapping.model,
|
|
6795
|
-
plural: (0, import_pluralize.default)(
|
|
6795
|
+
plural: (0, import_pluralize.default)(uncapitalize(mapping.model)),
|
|
6796
6796
|
// TODO not needed anymore
|
|
6797
6797
|
findUnique: mapping.findUnique || mapping.findSingle,
|
|
6798
6798
|
findUniqueOrThrow: mapping.findUniqueOrThrow,
|
|
@@ -7542,7 +7542,7 @@ var import_pkg_up = __toESM(require_pkg_up());
|
|
|
7542
7542
|
// package.json
|
|
7543
7543
|
var package_default = {
|
|
7544
7544
|
name: "@prisma/client",
|
|
7545
|
-
version: "6.12.0-dev.
|
|
7545
|
+
version: "6.12.0-dev.10",
|
|
7546
7546
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
7547
7547
|
keywords: [
|
|
7548
7548
|
"ORM",
|
|
@@ -7782,7 +7782,7 @@ var package_default = {
|
|
|
7782
7782
|
"@prisma/dmmf": "workspace:*",
|
|
7783
7783
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
7784
7784
|
"@prisma/engines": "workspace:*",
|
|
7785
|
-
"@prisma/engines-version": "6.
|
|
7785
|
+
"@prisma/engines-version": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
7786
7786
|
"@prisma/fetch-engine": "workspace:*",
|
|
7787
7787
|
"@prisma/generator": "workspace:*",
|
|
7788
7788
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -7791,8 +7791,8 @@ var package_default = {
|
|
|
7791
7791
|
"@prisma/internals": "workspace:*",
|
|
7792
7792
|
"@prisma/migrate": "workspace:*",
|
|
7793
7793
|
"@prisma/mini-proxy": "0.9.5",
|
|
7794
|
-
"@prisma/query-compiler-wasm": "6.
|
|
7795
|
-
"@prisma/query-engine-wasm": "6.
|
|
7794
|
+
"@prisma/query-compiler-wasm": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
7795
|
+
"@prisma/query-engine-wasm": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
7796
7796
|
"@prisma/ts-builders": "workspace:*",
|
|
7797
7797
|
"@snaplet/copycat": "6.0.0",
|
|
7798
7798
|
"@swc-node/register": "1.10.9",
|
|
@@ -7825,7 +7825,7 @@ var package_default = {
|
|
|
7825
7825
|
kleur: "4.1.5",
|
|
7826
7826
|
klona: "2.0.6",
|
|
7827
7827
|
mariadb: "3.4.0",
|
|
7828
|
-
memfs: "4.17.
|
|
7828
|
+
memfs: "4.17.2",
|
|
7829
7829
|
mssql: "11.0.1",
|
|
7830
7830
|
"new-github-issue-url": "0.2.1",
|
|
7831
7831
|
"p-retry": "4.6.2",
|
|
@@ -9458,7 +9458,7 @@ const ${ctx.singular} = await ${ctx.method}({
|
|
|
9458
9458
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
|
|
9459
9459
|
@example
|
|
9460
9460
|
// Create many ${ctx.plural}
|
|
9461
|
-
const ${
|
|
9461
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9462
9462
|
data: [
|
|
9463
9463
|
// ... provide data here
|
|
9464
9464
|
]
|
|
@@ -9472,7 +9472,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9472
9472
|
body: (ctx) => {
|
|
9473
9473
|
const onlySelect = ctx.firstScalar ? `
|
|
9474
9474
|
// Create many ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
|
|
9475
|
-
const ${
|
|
9475
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
|
|
9476
9476
|
select: { ${ctx.firstScalar.name}: true },
|
|
9477
9477
|
data: [
|
|
9478
9478
|
// ... provide data here
|
|
@@ -9482,7 +9482,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
|
|
|
9482
9482
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
|
|
9483
9483
|
@example
|
|
9484
9484
|
// Create many ${ctx.plural}
|
|
9485
|
-
const ${
|
|
9485
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9486
9486
|
data: [
|
|
9487
9487
|
// ... provide data here
|
|
9488
9488
|
]
|
|
@@ -9500,7 +9500,7 @@ ${undefinedNote}
|
|
|
9500
9500
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9501
9501
|
@example
|
|
9502
9502
|
// Get one ${ctx.singular}
|
|
9503
|
-
const ${
|
|
9503
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9504
9504
|
where: {
|
|
9505
9505
|
// ... provide filter here
|
|
9506
9506
|
}
|
|
@@ -9515,7 +9515,7 @@ if no matches were found.
|
|
|
9515
9515
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9516
9516
|
@example
|
|
9517
9517
|
// Get one ${ctx.singular}
|
|
9518
|
-
const ${
|
|
9518
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9519
9519
|
where: {
|
|
9520
9520
|
// ... provide filter here
|
|
9521
9521
|
}
|
|
@@ -9530,7 +9530,7 @@ ${undefinedNote}
|
|
|
9530
9530
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9531
9531
|
@example
|
|
9532
9532
|
// Get one ${ctx.singular}
|
|
9533
|
-
const ${
|
|
9533
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9534
9534
|
where: {
|
|
9535
9535
|
// ... provide filter here
|
|
9536
9536
|
}
|
|
@@ -9551,7 +9551,7 @@ ${undefinedNote}
|
|
|
9551
9551
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9552
9552
|
@example
|
|
9553
9553
|
// Get one ${ctx.singular}
|
|
9554
|
-
const ${
|
|
9554
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9555
9555
|
where: {
|
|
9556
9556
|
// ... provide filter here
|
|
9557
9557
|
}
|
|
@@ -9569,7 +9569,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9569
9569
|
body: (ctx) => {
|
|
9570
9570
|
const onlySelect = ctx.firstScalar ? `
|
|
9571
9571
|
// Only select the \`${ctx.firstScalar.name}\`
|
|
9572
|
-
const ${
|
|
9572
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
|
|
9573
9573
|
return `Find zero or more ${ctx.plural} that matches the filter.
|
|
9574
9574
|
${undefinedNote}
|
|
9575
9575
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to filter and select certain fields only.
|
|
@@ -9595,7 +9595,7 @@ ${onlySelect}
|
|
|
9595
9595
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one ${ctx.singular}.
|
|
9596
9596
|
@example
|
|
9597
9597
|
// Update one ${ctx.singular}
|
|
9598
|
-
const ${
|
|
9598
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9599
9599
|
where: {
|
|
9600
9600
|
// ... provide filter here
|
|
9601
9601
|
},
|
|
@@ -9614,7 +9614,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9614
9614
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update or create a ${ctx.singular}.
|
|
9615
9615
|
@example
|
|
9616
9616
|
// Update or create a ${ctx.singular}
|
|
9617
|
-
const ${
|
|
9617
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9618
9618
|
create: {
|
|
9619
9619
|
// ... data to create a ${ctx.singular}
|
|
9620
9620
|
},
|
|
@@ -9708,7 +9708,7 @@ ${undefinedNote}
|
|
|
9708
9708
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one or more rows.
|
|
9709
9709
|
@example
|
|
9710
9710
|
// Update many ${ctx.plural}
|
|
9711
|
-
const ${
|
|
9711
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9712
9712
|
where: {
|
|
9713
9713
|
// ... provide filter here
|
|
9714
9714
|
},
|
|
@@ -9727,7 +9727,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9727
9727
|
body: (ctx) => {
|
|
9728
9728
|
const onlySelect = ctx.firstScalar ? `
|
|
9729
9729
|
// Update zero or more ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
|
|
9730
|
-
const ${
|
|
9730
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
|
|
9731
9731
|
select: { ${ctx.firstScalar.name}: true },
|
|
9732
9732
|
where: {
|
|
9733
9733
|
// ... provide filter here
|
|
@@ -9740,7 +9740,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
|
|
|
9740
9740
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update many ${ctx.plural}.
|
|
9741
9741
|
@example
|
|
9742
9742
|
// Update many ${ctx.plural}
|
|
9743
|
-
const ${
|
|
9743
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9744
9744
|
where: {
|
|
9745
9745
|
// ... provide filter here
|
|
9746
9746
|
},
|
|
@@ -9778,7 +9778,7 @@ const { count } = await ${ctx.method}({
|
|
|
9778
9778
|
body: (ctx) => `Perform aggregation operations on a ${ctx.singular}.
|
|
9779
9779
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which aggregations you would like to apply.
|
|
9780
9780
|
@example
|
|
9781
|
-
const ${
|
|
9781
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9782
9782
|
pipeline: [
|
|
9783
9783
|
{ $match: { status: "registered" } },
|
|
9784
9784
|
{ $group: { _id: "$country", total: { $sum: 1 } } }
|
|
@@ -9793,7 +9793,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9793
9793
|
body: (ctx) => `Find zero or more ${ctx.plural} that matches the filter.
|
|
9794
9794
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which filters you would like to apply.
|
|
9795
9795
|
@example
|
|
9796
|
-
const ${
|
|
9796
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9797
9797
|
filter: { age: { $gt: 25 } }
|
|
9798
9798
|
})`,
|
|
9799
9799
|
fields: {
|
|
@@ -9809,7 +9809,7 @@ function getMethodJSDocBody(action2, mapping, model) {
|
|
|
9809
9809
|
singular: capitalize(mapping.model),
|
|
9810
9810
|
plural: capitalize(mapping.plural),
|
|
9811
9811
|
firstScalar: model.fields.find((f) => f.kind === "scalar"),
|
|
9812
|
-
method: `prisma.${
|
|
9812
|
+
method: `prisma.${uncapitalize(mapping.model)}.${action2}`,
|
|
9813
9813
|
action: action2,
|
|
9814
9814
|
mapping,
|
|
9815
9815
|
model
|
|
@@ -10020,7 +10020,7 @@ function buildModelPayload(model, context) {
|
|
|
10020
10020
|
scalars.add(buildModelOutputProperty(field, context.dmmf));
|
|
10021
10021
|
}
|
|
10022
10022
|
}
|
|
10023
|
-
const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(
|
|
10023
|
+
const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(uncapitalize(model.name)));
|
|
10024
10024
|
const payloadTypeDeclaration = typeDeclaration(
|
|
10025
10025
|
getPayloadName(model.name, false),
|
|
10026
10026
|
objectType().add(property("name", stringLiteral(model.name))).add(property("objects", objects)).add(property("scalars", scalarsType)).add(property("composites", composites))
|
|
@@ -10064,7 +10064,7 @@ function buildSelectType({
|
|
|
10064
10064
|
return buildExport(typeName, selectType);
|
|
10065
10065
|
}
|
|
10066
10066
|
function modelResultExtensionsType(modelName) {
|
|
10067
|
-
return extArgsParam.toArgument().subKey("result").subKey(
|
|
10067
|
+
return extArgsParam.toArgument().subKey("result").subKey(uncapitalize(modelName));
|
|
10068
10068
|
}
|
|
10069
10069
|
function buildScalarSelectType({ modelName, fields, context }) {
|
|
10070
10070
|
const object = buildSelectOrIncludeObject(
|
|
@@ -11827,7 +11827,7 @@ function globalOmitConfig(dmmf) {
|
|
|
11827
11827
|
const objectType2 = objectType().addMultiple(
|
|
11828
11828
|
dmmf.datamodel.models.map((model) => {
|
|
11829
11829
|
const type = namedType(getOmitName(model.name));
|
|
11830
|
-
return property(
|
|
11830
|
+
return property(uncapitalize(model.name), type).optional();
|
|
11831
11831
|
})
|
|
11832
11832
|
);
|
|
11833
11833
|
return moduleExport(typeDeclaration("GlobalOmitConfig", objectType2));
|
|
@@ -11840,7 +11840,7 @@ function clientTypeMapModelsDefinition(context) {
|
|
|
11840
11840
|
if (modelNames.length === 0) {
|
|
11841
11841
|
meta.add(property("modelProps", neverType));
|
|
11842
11842
|
} else {
|
|
11843
|
-
meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(
|
|
11843
|
+
meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(uncapitalize(name))))));
|
|
11844
11844
|
}
|
|
11845
11845
|
const isolationLevel = context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
|
|
11846
11846
|
meta.add(property("txIsolationLevel", isolationLevel));
|
|
@@ -12150,7 +12150,7 @@ var PrismaClientClass = class {
|
|
|
12150
12150
|
* \`\`\`
|
|
12151
12151
|
* const prisma = new PrismaClient()
|
|
12152
12152
|
* // Fetch zero or more ${capitalize2(example.plural)}
|
|
12153
|
-
* const ${
|
|
12153
|
+
* const ${uncapitalize(example.plural)} = await prisma.${uncapitalize(example.model)}.findMany()
|
|
12154
12154
|
* \`\`\`
|
|
12155
12155
|
*
|
|
12156
12156
|
*
|
|
@@ -12203,7 +12203,7 @@ ${[
|
|
|
12203
12203
|
|
|
12204
12204
|
${(0, import_indent_string7.default)(
|
|
12205
12205
|
dmmf.mappings.modelOperations.filter((m2) => m2.findMany).map((m2) => {
|
|
12206
|
-
let methodName =
|
|
12206
|
+
let methodName = uncapitalize(m2.model);
|
|
12207
12207
|
if (methodName === "constructor") {
|
|
12208
12208
|
methodName = '["constructor"]';
|
|
12209
12209
|
}
|
|
@@ -12213,7 +12213,7 @@ ${[
|
|
|
12213
12213
|
* Example usage:
|
|
12214
12214
|
* \`\`\`ts
|
|
12215
12215
|
* // Fetch zero or more ${capitalize2(m2.plural)}
|
|
12216
|
-
* const ${
|
|
12216
|
+
* const ${uncapitalize(m2.plural)} = await prisma.${methodName}.findMany()
|
|
12217
12217
|
* \`\`\`
|
|
12218
12218
|
*/
|
|
12219
12219
|
get ${methodName}(): Prisma.${m2.model}Delegate<${generics.join(", ")}>;`;
|
|
@@ -13524,7 +13524,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
|
13524
13524
|
var import_engines_version = __toESM(require_engines_version());
|
|
13525
13525
|
|
|
13526
13526
|
// ../client-generator-js/package.json
|
|
13527
|
-
var version = "6.12.0-dev.
|
|
13527
|
+
var version = "6.12.0-dev.10";
|
|
13528
13528
|
|
|
13529
13529
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13530
13530
|
var import_promises4 = __toESM(require("node:fs/promises"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.12.0-dev.
|
|
3
|
+
"version": "6.12.0-dev.10",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"@prisma/dmmf": "workspace:*",
|
|
241
241
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
242
242
|
"@prisma/engines": "workspace:*",
|
|
243
|
-
"@prisma/engines-version": "6.
|
|
243
|
+
"@prisma/engines-version": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
244
244
|
"@prisma/fetch-engine": "workspace:*",
|
|
245
245
|
"@prisma/generator": "workspace:*",
|
|
246
246
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -249,8 +249,8 @@
|
|
|
249
249
|
"@prisma/internals": "workspace:*",
|
|
250
250
|
"@prisma/migrate": "workspace:*",
|
|
251
251
|
"@prisma/mini-proxy": "0.9.5",
|
|
252
|
-
"@prisma/query-compiler-wasm": "6.
|
|
253
|
-
"@prisma/query-engine-wasm": "6.
|
|
252
|
+
"@prisma/query-compiler-wasm": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
253
|
+
"@prisma/query-engine-wasm": "6.12.0-1.f560fd5c80213d979714317a06077e85afd58ca4",
|
|
254
254
|
"@prisma/ts-builders": "workspace:*",
|
|
255
255
|
"@snaplet/copycat": "6.0.0",
|
|
256
256
|
"@swc-node/register": "1.10.9",
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"kleur": "4.1.5",
|
|
284
284
|
"klona": "2.0.6",
|
|
285
285
|
"mariadb": "3.4.0",
|
|
286
|
-
"memfs": "4.17.
|
|
286
|
+
"memfs": "4.17.2",
|
|
287
287
|
"mssql": "11.0.1",
|
|
288
288
|
"new-github-issue-url": "0.2.1",
|
|
289
289
|
"p-retry": "4.6.2",
|