@prisma/adapter-pg 7.9.0-dev.29 → 7.9.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/dist/index.js CHANGED
@@ -651,23 +651,20 @@ var PgQueryable = class {
651
651
  const { sql, args } = query;
652
652
  const values = args.map((arg, i) => mapArg(arg, query.argTypes[i]));
653
653
  try {
654
- const result = await this.client.query(
655
- {
656
- name: this.pgOptions?.statementNameGenerator?.(query),
657
- text: sql,
658
- values,
659
- rowMode: "array",
660
- types: {
661
- getTypeParser: (oid, format) => {
662
- if (format === "text" && customParsers[oid]) {
663
- return customParsers[oid];
664
- }
665
- return types2.getTypeParser(oid, format);
654
+ const result = await this.client.query({
655
+ name: this.pgOptions?.statementNameGenerator?.(query),
656
+ text: sql,
657
+ values,
658
+ rowMode: "array",
659
+ types: {
660
+ getTypeParser: (oid, format) => {
661
+ if (format === "text" && customParsers[oid]) {
662
+ return customParsers[oid];
666
663
  }
664
+ return types2.getTypeParser(oid, format);
667
665
  }
668
- },
669
- values
670
- );
666
+ }
667
+ });
671
668
  return result;
672
669
  } catch (e) {
673
670
  this.onError(e);
package/dist/index.mjs CHANGED
@@ -615,23 +615,20 @@ var PgQueryable = class {
615
615
  const { sql, args } = query;
616
616
  const values = args.map((arg, i) => mapArg(arg, query.argTypes[i]));
617
617
  try {
618
- const result = await this.client.query(
619
- {
620
- name: this.pgOptions?.statementNameGenerator?.(query),
621
- text: sql,
622
- values,
623
- rowMode: "array",
624
- types: {
625
- getTypeParser: (oid, format) => {
626
- if (format === "text" && customParsers[oid]) {
627
- return customParsers[oid];
628
- }
629
- return types2.getTypeParser(oid, format);
618
+ const result = await this.client.query({
619
+ name: this.pgOptions?.statementNameGenerator?.(query),
620
+ text: sql,
621
+ values,
622
+ rowMode: "array",
623
+ types: {
624
+ getTypeParser: (oid, format) => {
625
+ if (format === "text" && customParsers[oid]) {
626
+ return customParsers[oid];
630
627
  }
628
+ return types2.getTypeParser(oid, format);
631
629
  }
632
- },
633
- values
634
- );
630
+ }
631
+ });
635
632
  return result;
636
633
  } catch (e) {
637
634
  this.onError(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-pg",
3
- "version": "7.9.0-dev.29",
3
+ "version": "7.9.0-dev.30",
4
4
  "description": "Prisma's driver adapter for \"pg\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,10 +34,10 @@
34
34
  "pg": "^8.16.3",
35
35
  "postgres-array": "3.0.4",
36
36
  "@types/pg": "^8.16.0",
37
- "@prisma/driver-adapter-utils": "7.9.0-dev.29"
37
+ "@prisma/driver-adapter-utils": "7.9.0-dev.30"
38
38
  },
39
39
  "devDependencies": {
40
- "@prisma/debug": "7.9.0-dev.29"
40
+ "@prisma/debug": "7.9.0-dev.30"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "DEV=true tsx helpers/build.ts",