@prisma/client-generator-ts 7.8.0-dev.1 → 7.8.0-dev.11

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/index.js CHANGED
@@ -3520,10 +3520,13 @@ function batchingTransactionDefinition(context) {
3520
3520
  Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
3521
3521
  `
3522
3522
  ).addGenericParameter(ts5.genericParameter("P").extends(ts5.array(prismaPromise(ts5.anyType)))).addParameter(ts5.parameter("arg", ts5.arraySpread(ts5.namedType("P")))).setReturnType(promise(ts5.namedType("runtime.Types.Utils.UnwrapTuple").addGenericArgument(ts5.namedType("P"))));
3523
+ const options = ts5.objectType().formatInline();
3524
+ options.add(ts5.property("maxWait", ts5.numberType).optional());
3525
+ options.add(ts5.property("timeout", ts5.numberType).optional());
3523
3526
  if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
3524
- const options = ts5.objectType().formatInline().add(ts5.property("isolationLevel", ts5.namedType("Prisma.TransactionIsolationLevel")).optional());
3525
- method3.addParameter(ts5.parameter("options", options).optional());
3527
+ options.add(ts5.property("isolationLevel", ts5.namedType("Prisma.TransactionIsolationLevel")).optional());
3526
3528
  }
3529
+ method3.addParameter(ts5.parameter("options", options).optional());
3527
3530
  return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
3528
3531
  }
3529
3532
  function interactiveTransactionDefinition(context) {
@@ -5742,6 +5745,22 @@ function buildClientOptions(context) {
5742
5745
  `)
5743
5746
  );
5744
5747
  }
5748
+ otherOptions.add(
5749
+ ts19.property("queryPlanCacheMaxSize", ts19.numberType).optional().setDocComment(ts19.docComment`
5750
+ Optional maximum size for the query plan cache. If not provided, a default size will be used.
5751
+ A value of \`0\` can be used to disable the cache entirely. A higher cache size can improve
5752
+ performance for applications that execute a large number of unique queries, while a smaller
5753
+ cache size can reduce memory usage.
5754
+
5755
+ @example
5756
+ \`\`\`
5757
+ const prisma = new PrismaClient({
5758
+ adapter,
5759
+ queryPlanCacheMaxSize: 100,
5760
+ })
5761
+ \`\`\`
5762
+ `)
5763
+ );
5745
5764
  const prismaClientOptions = ts19.intersectionType([mutuallyExclusiveOptions, otherOptions]);
5746
5765
  return ts19.typeDeclaration("PrismaClientOptions", prismaClientOptions);
5747
5766
  }
@@ -6379,7 +6398,7 @@ var import_internals7 = require("@prisma/internals");
6379
6398
  var import_get_tsconfig = require("get-tsconfig");
6380
6399
 
6381
6400
  // package.json
6382
- var version = "7.8.0-dev.1";
6401
+ var version = "7.8.0-dev.11";
6383
6402
 
6384
6403
  // src/module-format.ts
6385
6404
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -3514,10 +3514,13 @@ function batchingTransactionDefinition(context) {
3514
3514
  Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
3515
3515
  `
3516
3516
  ).addGenericParameter(ts5.genericParameter("P").extends(ts5.array(prismaPromise(ts5.anyType)))).addParameter(ts5.parameter("arg", ts5.arraySpread(ts5.namedType("P")))).setReturnType(promise(ts5.namedType("runtime.Types.Utils.UnwrapTuple").addGenericArgument(ts5.namedType("P"))));
3517
+ const options = ts5.objectType().formatInline();
3518
+ options.add(ts5.property("maxWait", ts5.numberType).optional());
3519
+ options.add(ts5.property("timeout", ts5.numberType).optional());
3517
3520
  if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
3518
- const options = ts5.objectType().formatInline().add(ts5.property("isolationLevel", ts5.namedType("Prisma.TransactionIsolationLevel")).optional());
3519
- method3.addParameter(ts5.parameter("options", options).optional());
3521
+ options.add(ts5.property("isolationLevel", ts5.namedType("Prisma.TransactionIsolationLevel")).optional());
3520
3522
  }
3523
+ method3.addParameter(ts5.parameter("options", options).optional());
3521
3524
  return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
3522
3525
  }
3523
3526
  function interactiveTransactionDefinition(context) {
@@ -5736,6 +5739,22 @@ function buildClientOptions(context) {
5736
5739
  `)
5737
5740
  );
5738
5741
  }
5742
+ otherOptions.add(
5743
+ ts19.property("queryPlanCacheMaxSize", ts19.numberType).optional().setDocComment(ts19.docComment`
5744
+ Optional maximum size for the query plan cache. If not provided, a default size will be used.
5745
+ A value of \`0\` can be used to disable the cache entirely. A higher cache size can improve
5746
+ performance for applications that execute a large number of unique queries, while a smaller
5747
+ cache size can reduce memory usage.
5748
+
5749
+ @example
5750
+ \`\`\`
5751
+ const prisma = new PrismaClient({
5752
+ adapter,
5753
+ queryPlanCacheMaxSize: 100,
5754
+ })
5755
+ \`\`\`
5756
+ `)
5757
+ );
5739
5758
  const prismaClientOptions = ts19.intersectionType([mutuallyExclusiveOptions, otherOptions]);
5740
5759
  return ts19.typeDeclaration("PrismaClientOptions", prismaClientOptions);
5741
5760
  }
@@ -6373,7 +6392,7 @@ import { parseEnvValue } from "@prisma/internals";
6373
6392
  import { getTsconfig } from "get-tsconfig";
6374
6393
 
6375
6394
  // package.json
6376
- var version = "7.8.0-dev.1";
6395
+ var version = "7.8.0-dev.11";
6377
6396
 
6378
6397
  // src/module-format.ts
6379
6398
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "7.8.0-dev.1",
3
+ "version": "7.8.0-dev.11",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@antfu/ni": "0.21.12",
28
- "@prisma/engines-version": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
28
+ "@prisma/engines-version": "7.8.0-4.8c287008617e9b12f313df99e2c821ae61ea9afa",
29
29
  "fast-glob": "3.3.3",
30
30
  "get-tsconfig": "4.10.0",
31
31
  "indent-string": "4.0.0",
@@ -33,15 +33,15 @@
33
33
  "package-up": "5.0.0",
34
34
  "pluralize": "8.0.0",
35
35
  "ts-pattern": "5.6.2",
36
- "@prisma/client-common": "7.8.0-dev.1",
37
- "@prisma/debug": "7.8.0-dev.1",
38
- "@prisma/dmmf": "7.8.0-dev.1",
39
- "@prisma/fetch-engine": "7.8.0-dev.1",
40
- "@prisma/generator": "7.8.0-dev.1",
41
- "@prisma/get-platform": "7.8.0-dev.1",
42
- "@prisma/internals": "7.8.0-dev.1",
43
- "@prisma/ts-builders": "7.8.0-dev.1",
44
- "@prisma/param-graph-builder": "7.8.0-dev.1"
36
+ "@prisma/client-common": "7.8.0-dev.11",
37
+ "@prisma/dmmf": "7.8.0-dev.11",
38
+ "@prisma/debug": "7.8.0-dev.11",
39
+ "@prisma/fetch-engine": "7.8.0-dev.11",
40
+ "@prisma/get-platform": "7.8.0-dev.11",
41
+ "@prisma/generator": "7.8.0-dev.11",
42
+ "@prisma/internals": "7.8.0-dev.11",
43
+ "@prisma/ts-builders": "7.8.0-dev.11",
44
+ "@prisma/param-graph-builder": "7.8.0-dev.11"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33"