@prisma/query-plan-executor 7.11.0-dev.2 → 7.11.0-dev.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -29
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -72089,7 +72089,7 @@ __export(index_exports, {
72089
72089
  module.exports = __toCommonJS(index_exports);
72090
72090
 
72091
72091
  // package.json
72092
- var version = "7.11.0-dev.2";
72092
+ var version = "7.11.0-dev.3";
72093
72093
 
72094
72094
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
72095
72095
  function clampProp(e2, n2, t2, o2, r2) {
@@ -104891,12 +104891,7 @@ var PrismaPgAdapterFactory = class {
104891
104891
  config;
104892
104892
  externalPool;
104893
104893
  async connect() {
104894
- const client2 = this.externalPool ?? new esm_default.Pool(withSearchPath(this.config, this.options?.schema));
104895
- if (this.externalPool !== null && this.options?.schema !== void 0) {
104896
- debug6(
104897
- `The search path is not set on externally provided pools, schema "${this.options.schema}" is only used for generated queries. Set the search path on the pool itself if raw queries need it.`
104898
- );
104899
- }
104894
+ const client2 = this.externalPool ?? new esm_default.Pool(this.config);
104900
104895
  const onIdleClientError = (err) => {
104901
104896
  debug6(`Error from idle pool client: ${err.message} %O`, err);
104902
104897
  this.options?.onPoolError?.(err);
@@ -104926,28 +104921,6 @@ var PrismaPgAdapterFactory = class {
104926
104921
  });
104927
104922
  }
104928
104923
  };
104929
- function withSearchPath(config3, schema) {
104930
- if (schema === void 0 || setsSearchPath(config3.options)) {
104931
- return config3;
104932
- }
104933
- const searchPath = `-c search_path=${escapeOptionValue(quoteIdentifierIfNeeded(schema))},public`;
104934
- return {
104935
- ...config3,
104936
- options: config3.options ? `${config3.options} ${searchPath}` : searchPath
104937
- };
104938
- }
104939
- function setsSearchPath(options) {
104940
- return options !== void 0 && /(?:^|\s)(?:-c\s*|--)search[_-]path=/i.test(options);
104941
- }
104942
- function quoteIdentifierIfNeeded(name22) {
104943
- if (/^[a-z_][a-z0-9_$]*$/.test(name22)) {
104944
- return name22;
104945
- }
104946
- return `"${name22.replaceAll('"', '""')}"`;
104947
- }
104948
- function escapeOptionValue(value) {
104949
- return value.replace(/[\\\s]/g, (char) => `\\${char}`);
104950
- }
104951
104924
 
104952
104925
  // src/logic/adapter.ts
104953
104926
  function createAdapter(url2, supportedFactories = defaultFactories) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.11.0-dev.2",
3
+ "version": "7.11.0-dev.3",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,11 +19,11 @@
19
19
  "hono": "^4.12.23",
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "zod": "4.1.3",
22
- "@prisma/adapter-pg": "7.11.0-dev.2",
23
- "@prisma/adapter-mssql": "7.11.0-dev.2",
24
- "@prisma/client-engine-runtime": "7.11.0-dev.2",
25
- "@prisma/adapter-mariadb": "7.11.0-dev.2",
26
- "@prisma/driver-adapter-utils": "7.11.0-dev.2"
22
+ "@prisma/adapter-pg": "7.11.0-dev.3",
23
+ "@prisma/client-engine-runtime": "7.11.0-dev.3",
24
+ "@prisma/adapter-mariadb": "7.11.0-dev.3",
25
+ "@prisma/adapter-mssql": "7.11.0-dev.3",
26
+ "@prisma/driver-adapter-utils": "7.11.0-dev.3"
27
27
  },
28
28
  "files": [
29
29
  "dist"