prisma 6.12.0-dev.3 → 6.12.0-dev.30
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 +642 -754
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +15 -15
- package/prisma-client/generator-build/index.js +46 -43
- package/prisma-client/package.json +10 -7
- package/prisma-client/runtime/binary.js +12 -12
- package/prisma-client/runtime/binary.js.map +7 -0
- package/prisma-client/runtime/binary.mjs +6 -6
- package/prisma-client/runtime/binary.mjs.map +7 -0
- package/prisma-client/runtime/client.js +28 -28
- package/prisma-client/runtime/client.js.map +7 -0
- package/prisma-client/runtime/client.mjs +31 -31
- package/prisma-client/runtime/client.mjs.map +7 -0
- package/prisma-client/runtime/edge-esm.js +5 -5
- package/prisma-client/runtime/edge-esm.js.map +7 -0
- package/prisma-client/runtime/edge.js +5 -5
- package/prisma-client/runtime/edge.js.map +7 -0
- package/prisma-client/runtime/index-browser.js.map +7 -0
- package/prisma-client/runtime/library.js +13 -13
- package/prisma-client/runtime/library.js.map +7 -0
- package/prisma-client/runtime/library.mjs +13 -13
- package/prisma-client/runtime/library.mjs.map +7 -0
- package/prisma-client/runtime/query_engine_bg.cockroachdb.js +2 -2
- package/prisma-client/runtime/query_engine_bg.cockroachdb.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlserver.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlserver.mjs +1 -1
- package/prisma-client/runtime/react-native.js +6 -6
- package/prisma-client/runtime/react-native.js.map +7 -0
- 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.30",
|
|
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": "5dd6992e4da9b139d45f2e51e195182464e3e60e"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"README.md",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"dotenv": "16.5.0",
|
|
126
126
|
"effect": "3.12.10",
|
|
127
127
|
"env-paths": "2.2.1",
|
|
128
|
-
"esbuild": "0.25.
|
|
128
|
+
"esbuild": "0.25.5",
|
|
129
129
|
"execa": "5.1.1",
|
|
130
130
|
"fast-glob": "3.3.3",
|
|
131
131
|
"fs-extra": "11.3.0",
|
|
@@ -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/
|
|
156
|
-
"@prisma/
|
|
157
|
-
"@prisma/
|
|
158
|
-
"@prisma/
|
|
159
|
-
"@prisma/
|
|
160
|
-
"@prisma/fetch-engine": "6.12.0-dev.
|
|
161
|
-
"@prisma/generator": "6.12.0-dev.
|
|
162
|
-
"@prisma/
|
|
163
|
-
"@prisma/internals": "6.12.0-dev.
|
|
164
|
-
"@prisma/
|
|
155
|
+
"@prisma/adapter-libsql": "6.12.0-dev.30",
|
|
156
|
+
"@prisma/debug": "6.12.0-dev.30",
|
|
157
|
+
"@prisma/client": "6.12.0-dev.30",
|
|
158
|
+
"@prisma/dmmf": "6.12.0-dev.30",
|
|
159
|
+
"@prisma/client-generator-registry": "6.12.0-dev.30",
|
|
160
|
+
"@prisma/fetch-engine": "6.12.0-dev.30",
|
|
161
|
+
"@prisma/generator": "6.12.0-dev.30",
|
|
162
|
+
"@prisma/migrate": "6.12.0-dev.30",
|
|
163
|
+
"@prisma/internals": "6.12.0-dev.30",
|
|
164
|
+
"@prisma/get-platform": "6.12.0-dev.30"
|
|
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.30",
|
|
168
|
+
"@prisma/engines": "6.12.0-dev.30"
|
|
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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db/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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db/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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
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: "c4261e444b23ae1c84edf7bd1b551230d4c692db"
|
|
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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db/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-13.c4261e444b23ae1c84edf7bd1b551230d4c692db/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.30",
|
|
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",
|
|
@@ -7634,6 +7634,10 @@ var package_default = {
|
|
|
7634
7634
|
},
|
|
7635
7635
|
"./runtime/client": {
|
|
7636
7636
|
types: "./runtime/client.d.ts",
|
|
7637
|
+
node: {
|
|
7638
|
+
require: "./runtime/client.js",
|
|
7639
|
+
default: "./runtime/client.js"
|
|
7640
|
+
},
|
|
7637
7641
|
require: "./runtime/client.js",
|
|
7638
7642
|
import: "./runtime/client.mjs",
|
|
7639
7643
|
default: "./runtime/client.mjs"
|
|
@@ -7727,7 +7731,6 @@ var package_default = {
|
|
|
7727
7731
|
files: [
|
|
7728
7732
|
"README.md",
|
|
7729
7733
|
"runtime",
|
|
7730
|
-
"!runtime/*.map",
|
|
7731
7734
|
"scripts",
|
|
7732
7735
|
"generator-build",
|
|
7733
7736
|
"edge.js",
|
|
@@ -7782,7 +7785,7 @@ var package_default = {
|
|
|
7782
7785
|
"@prisma/dmmf": "workspace:*",
|
|
7783
7786
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
7784
7787
|
"@prisma/engines": "workspace:*",
|
|
7785
|
-
"@prisma/engines-version": "6.
|
|
7788
|
+
"@prisma/engines-version": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
7786
7789
|
"@prisma/fetch-engine": "workspace:*",
|
|
7787
7790
|
"@prisma/generator": "workspace:*",
|
|
7788
7791
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -7791,8 +7794,8 @@ var package_default = {
|
|
|
7791
7794
|
"@prisma/internals": "workspace:*",
|
|
7792
7795
|
"@prisma/migrate": "workspace:*",
|
|
7793
7796
|
"@prisma/mini-proxy": "0.9.5",
|
|
7794
|
-
"@prisma/query-compiler-wasm": "6.
|
|
7795
|
-
"@prisma/query-engine-wasm": "6.
|
|
7797
|
+
"@prisma/query-compiler-wasm": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
7798
|
+
"@prisma/query-engine-wasm": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
7796
7799
|
"@prisma/ts-builders": "workspace:*",
|
|
7797
7800
|
"@snaplet/copycat": "6.0.0",
|
|
7798
7801
|
"@swc-node/register": "1.10.9",
|
|
@@ -7809,7 +7812,7 @@ var package_default = {
|
|
|
7809
7812
|
arg: "5.0.2",
|
|
7810
7813
|
benchmark: "2.1.4",
|
|
7811
7814
|
"decimal.js": "10.5.0",
|
|
7812
|
-
esbuild: "0.25.
|
|
7815
|
+
esbuild: "0.25.5",
|
|
7813
7816
|
execa: "5.1.1",
|
|
7814
7817
|
"expect-type": "1.2.0",
|
|
7815
7818
|
"fs-extra": "11.3.0",
|
|
@@ -7825,7 +7828,7 @@ var package_default = {
|
|
|
7825
7828
|
kleur: "4.1.5",
|
|
7826
7829
|
klona: "2.0.6",
|
|
7827
7830
|
mariadb: "3.4.0",
|
|
7828
|
-
memfs: "4.17.
|
|
7831
|
+
memfs: "4.17.2",
|
|
7829
7832
|
mssql: "11.0.1",
|
|
7830
7833
|
"new-github-issue-url": "0.2.1",
|
|
7831
7834
|
"p-retry": "4.6.2",
|
|
@@ -9458,7 +9461,7 @@ const ${ctx.singular} = await ${ctx.method}({
|
|
|
9458
9461
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
|
|
9459
9462
|
@example
|
|
9460
9463
|
// Create many ${ctx.plural}
|
|
9461
|
-
const ${
|
|
9464
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9462
9465
|
data: [
|
|
9463
9466
|
// ... provide data here
|
|
9464
9467
|
]
|
|
@@ -9472,7 +9475,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9472
9475
|
body: (ctx) => {
|
|
9473
9476
|
const onlySelect = ctx.firstScalar ? `
|
|
9474
9477
|
// Create many ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
|
|
9475
|
-
const ${
|
|
9478
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
|
|
9476
9479
|
select: { ${ctx.firstScalar.name}: true },
|
|
9477
9480
|
data: [
|
|
9478
9481
|
// ... provide data here
|
|
@@ -9482,7 +9485,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
|
|
|
9482
9485
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
|
|
9483
9486
|
@example
|
|
9484
9487
|
// Create many ${ctx.plural}
|
|
9485
|
-
const ${
|
|
9488
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9486
9489
|
data: [
|
|
9487
9490
|
// ... provide data here
|
|
9488
9491
|
]
|
|
@@ -9500,7 +9503,7 @@ ${undefinedNote}
|
|
|
9500
9503
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9501
9504
|
@example
|
|
9502
9505
|
// Get one ${ctx.singular}
|
|
9503
|
-
const ${
|
|
9506
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9504
9507
|
where: {
|
|
9505
9508
|
// ... provide filter here
|
|
9506
9509
|
}
|
|
@@ -9515,7 +9518,7 @@ if no matches were found.
|
|
|
9515
9518
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9516
9519
|
@example
|
|
9517
9520
|
// Get one ${ctx.singular}
|
|
9518
|
-
const ${
|
|
9521
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9519
9522
|
where: {
|
|
9520
9523
|
// ... provide filter here
|
|
9521
9524
|
}
|
|
@@ -9530,7 +9533,7 @@ ${undefinedNote}
|
|
|
9530
9533
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9531
9534
|
@example
|
|
9532
9535
|
// Get one ${ctx.singular}
|
|
9533
|
-
const ${
|
|
9536
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9534
9537
|
where: {
|
|
9535
9538
|
// ... provide filter here
|
|
9536
9539
|
}
|
|
@@ -9551,7 +9554,7 @@ ${undefinedNote}
|
|
|
9551
9554
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
|
|
9552
9555
|
@example
|
|
9553
9556
|
// Get one ${ctx.singular}
|
|
9554
|
-
const ${
|
|
9557
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9555
9558
|
where: {
|
|
9556
9559
|
// ... provide filter here
|
|
9557
9560
|
}
|
|
@@ -9569,7 +9572,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9569
9572
|
body: (ctx) => {
|
|
9570
9573
|
const onlySelect = ctx.firstScalar ? `
|
|
9571
9574
|
// Only select the \`${ctx.firstScalar.name}\`
|
|
9572
|
-
const ${
|
|
9575
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
|
|
9573
9576
|
return `Find zero or more ${ctx.plural} that matches the filter.
|
|
9574
9577
|
${undefinedNote}
|
|
9575
9578
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to filter and select certain fields only.
|
|
@@ -9595,7 +9598,7 @@ ${onlySelect}
|
|
|
9595
9598
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one ${ctx.singular}.
|
|
9596
9599
|
@example
|
|
9597
9600
|
// Update one ${ctx.singular}
|
|
9598
|
-
const ${
|
|
9601
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9599
9602
|
where: {
|
|
9600
9603
|
// ... provide filter here
|
|
9601
9604
|
},
|
|
@@ -9614,7 +9617,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9614
9617
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update or create a ${ctx.singular}.
|
|
9615
9618
|
@example
|
|
9616
9619
|
// Update or create a ${ctx.singular}
|
|
9617
|
-
const ${
|
|
9620
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9618
9621
|
create: {
|
|
9619
9622
|
// ... data to create a ${ctx.singular}
|
|
9620
9623
|
},
|
|
@@ -9708,7 +9711,7 @@ ${undefinedNote}
|
|
|
9708
9711
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one or more rows.
|
|
9709
9712
|
@example
|
|
9710
9713
|
// Update many ${ctx.plural}
|
|
9711
|
-
const ${
|
|
9714
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9712
9715
|
where: {
|
|
9713
9716
|
// ... provide filter here
|
|
9714
9717
|
},
|
|
@@ -9727,7 +9730,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9727
9730
|
body: (ctx) => {
|
|
9728
9731
|
const onlySelect = ctx.firstScalar ? `
|
|
9729
9732
|
// Update zero or more ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
|
|
9730
|
-
const ${
|
|
9733
|
+
const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
|
|
9731
9734
|
select: { ${ctx.firstScalar.name}: true },
|
|
9732
9735
|
where: {
|
|
9733
9736
|
// ... provide filter here
|
|
@@ -9740,7 +9743,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
|
|
|
9740
9743
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update many ${ctx.plural}.
|
|
9741
9744
|
@example
|
|
9742
9745
|
// Update many ${ctx.plural}
|
|
9743
|
-
const ${
|
|
9746
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9744
9747
|
where: {
|
|
9745
9748
|
// ... provide filter here
|
|
9746
9749
|
},
|
|
@@ -9778,7 +9781,7 @@ const { count } = await ${ctx.method}({
|
|
|
9778
9781
|
body: (ctx) => `Perform aggregation operations on a ${ctx.singular}.
|
|
9779
9782
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which aggregations you would like to apply.
|
|
9780
9783
|
@example
|
|
9781
|
-
const ${
|
|
9784
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9782
9785
|
pipeline: [
|
|
9783
9786
|
{ $match: { status: "registered" } },
|
|
9784
9787
|
{ $group: { _id: "$country", total: { $sum: 1 } } }
|
|
@@ -9793,7 +9796,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
|
|
|
9793
9796
|
body: (ctx) => `Find zero or more ${ctx.plural} that matches the filter.
|
|
9794
9797
|
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which filters you would like to apply.
|
|
9795
9798
|
@example
|
|
9796
|
-
const ${
|
|
9799
|
+
const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
|
|
9797
9800
|
filter: { age: { $gt: 25 } }
|
|
9798
9801
|
})`,
|
|
9799
9802
|
fields: {
|
|
@@ -9809,7 +9812,7 @@ function getMethodJSDocBody(action2, mapping, model) {
|
|
|
9809
9812
|
singular: capitalize(mapping.model),
|
|
9810
9813
|
plural: capitalize(mapping.plural),
|
|
9811
9814
|
firstScalar: model.fields.find((f) => f.kind === "scalar"),
|
|
9812
|
-
method: `prisma.${
|
|
9815
|
+
method: `prisma.${uncapitalize(mapping.model)}.${action2}`,
|
|
9813
9816
|
action: action2,
|
|
9814
9817
|
mapping,
|
|
9815
9818
|
model
|
|
@@ -10020,7 +10023,7 @@ function buildModelPayload(model, context) {
|
|
|
10020
10023
|
scalars.add(buildModelOutputProperty(field, context.dmmf));
|
|
10021
10024
|
}
|
|
10022
10025
|
}
|
|
10023
|
-
const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(
|
|
10026
|
+
const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(uncapitalize(model.name)));
|
|
10024
10027
|
const payloadTypeDeclaration = typeDeclaration(
|
|
10025
10028
|
getPayloadName(model.name, false),
|
|
10026
10029
|
objectType().add(property("name", stringLiteral(model.name))).add(property("objects", objects)).add(property("scalars", scalarsType)).add(property("composites", composites))
|
|
@@ -10064,7 +10067,7 @@ function buildSelectType({
|
|
|
10064
10067
|
return buildExport(typeName, selectType);
|
|
10065
10068
|
}
|
|
10066
10069
|
function modelResultExtensionsType(modelName) {
|
|
10067
|
-
return extArgsParam.toArgument().subKey("result").subKey(
|
|
10070
|
+
return extArgsParam.toArgument().subKey("result").subKey(uncapitalize(modelName));
|
|
10068
10071
|
}
|
|
10069
10072
|
function buildScalarSelectType({ modelName, fields, context }) {
|
|
10070
10073
|
const object = buildSelectOrIncludeObject(
|
|
@@ -11827,7 +11830,7 @@ function globalOmitConfig(dmmf) {
|
|
|
11827
11830
|
const objectType2 = objectType().addMultiple(
|
|
11828
11831
|
dmmf.datamodel.models.map((model) => {
|
|
11829
11832
|
const type = namedType(getOmitName(model.name));
|
|
11830
|
-
return property(
|
|
11833
|
+
return property(uncapitalize(model.name), type).optional();
|
|
11831
11834
|
})
|
|
11832
11835
|
);
|
|
11833
11836
|
return moduleExport(typeDeclaration("GlobalOmitConfig", objectType2));
|
|
@@ -11840,7 +11843,7 @@ function clientTypeMapModelsDefinition(context) {
|
|
|
11840
11843
|
if (modelNames.length === 0) {
|
|
11841
11844
|
meta.add(property("modelProps", neverType));
|
|
11842
11845
|
} else {
|
|
11843
|
-
meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(
|
|
11846
|
+
meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(uncapitalize(name))))));
|
|
11844
11847
|
}
|
|
11845
11848
|
const isolationLevel = context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
|
|
11846
11849
|
meta.add(property("txIsolationLevel", isolationLevel));
|
|
@@ -12150,7 +12153,7 @@ var PrismaClientClass = class {
|
|
|
12150
12153
|
* \`\`\`
|
|
12151
12154
|
* const prisma = new PrismaClient()
|
|
12152
12155
|
* // Fetch zero or more ${capitalize2(example.plural)}
|
|
12153
|
-
* const ${
|
|
12156
|
+
* const ${uncapitalize(example.plural)} = await prisma.${uncapitalize(example.model)}.findMany()
|
|
12154
12157
|
* \`\`\`
|
|
12155
12158
|
*
|
|
12156
12159
|
*
|
|
@@ -12203,7 +12206,7 @@ ${[
|
|
|
12203
12206
|
|
|
12204
12207
|
${(0, import_indent_string7.default)(
|
|
12205
12208
|
dmmf.mappings.modelOperations.filter((m2) => m2.findMany).map((m2) => {
|
|
12206
|
-
let methodName =
|
|
12209
|
+
let methodName = uncapitalize(m2.model);
|
|
12207
12210
|
if (methodName === "constructor") {
|
|
12208
12211
|
methodName = '["constructor"]';
|
|
12209
12212
|
}
|
|
@@ -12213,7 +12216,7 @@ ${[
|
|
|
12213
12216
|
* Example usage:
|
|
12214
12217
|
* \`\`\`ts
|
|
12215
12218
|
* // Fetch zero or more ${capitalize2(m2.plural)}
|
|
12216
|
-
* const ${
|
|
12219
|
+
* const ${uncapitalize(m2.plural)} = await prisma.${methodName}.findMany()
|
|
12217
12220
|
* \`\`\`
|
|
12218
12221
|
*/
|
|
12219
12222
|
get ${methodName}(): Prisma.${m2.model}Delegate<${generics.join(", ")}>;`;
|
|
@@ -13524,7 +13527,7 @@ var import_node_path3 = __toESM(require("node:path"));
|
|
|
13524
13527
|
var import_engines_version = __toESM(require_engines_version());
|
|
13525
13528
|
|
|
13526
13529
|
// ../client-generator-js/package.json
|
|
13527
|
-
var version = "6.12.0-dev.
|
|
13530
|
+
var version = "6.12.0-dev.30";
|
|
13528
13531
|
|
|
13529
13532
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13530
13533
|
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.30",
|
|
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",
|
|
@@ -92,6 +92,10 @@
|
|
|
92
92
|
},
|
|
93
93
|
"./runtime/client": {
|
|
94
94
|
"types": "./runtime/client.d.ts",
|
|
95
|
+
"node": {
|
|
96
|
+
"require": "./runtime/client.js",
|
|
97
|
+
"default": "./runtime/client.js"
|
|
98
|
+
},
|
|
95
99
|
"require": "./runtime/client.js",
|
|
96
100
|
"import": "./runtime/client.mjs",
|
|
97
101
|
"default": "./runtime/client.mjs"
|
|
@@ -185,7 +189,6 @@
|
|
|
185
189
|
"files": [
|
|
186
190
|
"README.md",
|
|
187
191
|
"runtime",
|
|
188
|
-
"!runtime/*.map",
|
|
189
192
|
"scripts",
|
|
190
193
|
"generator-build",
|
|
191
194
|
"edge.js",
|
|
@@ -240,7 +243,7 @@
|
|
|
240
243
|
"@prisma/dmmf": "workspace:*",
|
|
241
244
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
242
245
|
"@prisma/engines": "workspace:*",
|
|
243
|
-
"@prisma/engines-version": "6.
|
|
246
|
+
"@prisma/engines-version": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
244
247
|
"@prisma/fetch-engine": "workspace:*",
|
|
245
248
|
"@prisma/generator": "workspace:*",
|
|
246
249
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -249,8 +252,8 @@
|
|
|
249
252
|
"@prisma/internals": "workspace:*",
|
|
250
253
|
"@prisma/migrate": "workspace:*",
|
|
251
254
|
"@prisma/mini-proxy": "0.9.5",
|
|
252
|
-
"@prisma/query-compiler-wasm": "6.
|
|
253
|
-
"@prisma/query-engine-wasm": "6.
|
|
255
|
+
"@prisma/query-compiler-wasm": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
256
|
+
"@prisma/query-engine-wasm": "6.12.0-13.c4261e444b23ae1c84edf7bd1b551230d4c692db",
|
|
254
257
|
"@prisma/ts-builders": "workspace:*",
|
|
255
258
|
"@snaplet/copycat": "6.0.0",
|
|
256
259
|
"@swc-node/register": "1.10.9",
|
|
@@ -267,7 +270,7 @@
|
|
|
267
270
|
"arg": "5.0.2",
|
|
268
271
|
"benchmark": "2.1.4",
|
|
269
272
|
"decimal.js": "10.5.0",
|
|
270
|
-
"esbuild": "0.25.
|
|
273
|
+
"esbuild": "0.25.5",
|
|
271
274
|
"execa": "5.1.1",
|
|
272
275
|
"expect-type": "1.2.0",
|
|
273
276
|
"fs-extra": "11.3.0",
|
|
@@ -283,7 +286,7 @@
|
|
|
283
286
|
"kleur": "4.1.5",
|
|
284
287
|
"klona": "2.0.6",
|
|
285
288
|
"mariadb": "3.4.0",
|
|
286
|
-
"memfs": "4.17.
|
|
289
|
+
"memfs": "4.17.2",
|
|
287
290
|
"mssql": "11.0.1",
|
|
288
291
|
"new-github-issue-url": "0.2.1",
|
|
289
292
|
"p-retry": "4.6.2",
|