@prisma/client-engine-runtime 6.14.0-dev.35 → 6.14.0-dev.36
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 +10 -10
- package/dist/index.mjs +10 -10
- package/dist/interpreter/{DataMapper.d.ts → data-mapper.d.ts} +1 -1
- package/dist/interpreter/in-memory-processing.d.ts +1 -1
- package/dist/interpreter/{QueryInterpreter.d.ts → query-interpreter.d.ts} +2 -2
- package/dist/interpreter/{renderQuery.d.ts → render-query.d.ts} +1 -1
- package/dist/interpreter/validation.d.ts +1 -1
- package/dist/{transactionManager/TransactionManagerErrors.d.ts → transaction-manager/transaction-manager-error.d.ts} +1 -1
- package/dist/{transactionManager/TransactionManager.d.ts → transaction-manager/transaction-manager.d.ts} +1 -1
- package/package.json +3 -3
- /package/dist/interpreter/{renderQuery.test.d.ts → render-query.test.d.ts} +0 -0
- /package/dist/interpreter/{serializeSql.d.ts → serialize-sql.d.ts} +0 -0
- /package/dist/interpreter/{serializeSql.test.d.ts → serialize-sql.test.d.ts} +0 -0
- /package/dist/{QueryPlan.d.ts → query-plan.d.ts} +0 -0
- /package/dist/{transactionManager/TransactionManager.test.d.ts → transaction-manager/transaction-manager.test.d.ts} +0 -0
- /package/dist/{transactionManager/Transaction.d.ts → transaction-manager/transaction.d.ts} +0 -0
- /package/dist/{UserFacingError.d.ts → user-facing-error.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ __export(index_exports, {
|
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(index_exports);
|
|
50
50
|
|
|
51
|
-
// src/interpreter/
|
|
51
|
+
// src/interpreter/data-mapper.ts
|
|
52
52
|
var import_decimal2 = __toESM(require("decimal.js"));
|
|
53
53
|
|
|
54
54
|
// src/utils.ts
|
|
@@ -143,7 +143,7 @@ function safeJsonStringify(obj) {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
// src/interpreter/
|
|
146
|
+
// src/interpreter/data-mapper.ts
|
|
147
147
|
var DataMapperError = class extends Error {
|
|
148
148
|
name = "DataMapperError";
|
|
149
149
|
};
|
|
@@ -422,7 +422,7 @@ async function withQuerySpanAndEvent({
|
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
// src/
|
|
425
|
+
// src/user-facing-error.ts
|
|
426
426
|
var import_driver_adapter_utils = require("@prisma/driver-adapter-utils");
|
|
427
427
|
var UserFacingError = class extends Error {
|
|
428
428
|
name = "UserFacingError";
|
|
@@ -800,7 +800,7 @@ function getRecordKey(record, fields) {
|
|
|
800
800
|
return JSON.stringify(fields.map((field) => record[field]));
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
// src/
|
|
803
|
+
// src/query-plan.ts
|
|
804
804
|
function isPrismaValuePlaceholder(value) {
|
|
805
805
|
return typeof value === "object" && value !== null && value["prisma__type"] === "param";
|
|
806
806
|
}
|
|
@@ -814,7 +814,7 @@ function isPrismaValueBigInt(value) {
|
|
|
814
814
|
return typeof value === "object" && value !== null && value["prisma__type"] === "bigint";
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
-
// src/interpreter/
|
|
817
|
+
// src/interpreter/render-query.ts
|
|
818
818
|
function renderQuery(dbQuery, scope, generators, maxChunkSize) {
|
|
819
819
|
const queryType = dbQuery.type;
|
|
820
820
|
const params = evaluateParams(dbQuery.params, scope, generators);
|
|
@@ -1067,7 +1067,7 @@ function chunkArray(array, chunkSize) {
|
|
|
1067
1067
|
return result;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
|
-
// src/interpreter/
|
|
1070
|
+
// src/interpreter/serialize-sql.ts
|
|
1071
1071
|
var import_driver_adapter_utils2 = require("@prisma/driver-adapter-utils");
|
|
1072
1072
|
function serializeSql(resultSet) {
|
|
1073
1073
|
const mappers = resultSet.columnTypes.map((type) => {
|
|
@@ -1326,7 +1326,7 @@ function getErrorCode2(error) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
|
-
// src/interpreter/
|
|
1329
|
+
// src/interpreter/query-interpreter.ts
|
|
1330
1330
|
var QueryInterpreter = class _QueryInterpreter {
|
|
1331
1331
|
#transactionManager;
|
|
1332
1332
|
#placeholderValues;
|
|
@@ -1780,7 +1780,7 @@ function normalizeValue(type, value) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
// src/
|
|
1783
|
+
// src/transaction-manager/transaction-manager.ts
|
|
1784
1784
|
var import_debug = require("@prisma/debug");
|
|
1785
1785
|
|
|
1786
1786
|
// src/crypto.ts
|
|
@@ -1792,7 +1792,7 @@ async function randomUUID() {
|
|
|
1792
1792
|
return crypto.randomUUID();
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
-
// src/
|
|
1795
|
+
// src/transaction-manager/transaction-manager-error.ts
|
|
1796
1796
|
var TransactionManagerError = class extends UserFacingError {
|
|
1797
1797
|
name = "TransactionManagerError";
|
|
1798
1798
|
constructor(message, meta) {
|
|
@@ -1845,7 +1845,7 @@ var InvalidTransactionIsolationLevelError = class extends TransactionManagerErro
|
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
|
|
1848
|
-
// src/
|
|
1848
|
+
// src/transaction-manager/transaction-manager.ts
|
|
1849
1849
|
var MAX_CLOSED_TRANSACTIONS = 100;
|
|
1850
1850
|
var debug = (0, import_debug.Debug)("prisma:client:transactionManager");
|
|
1851
1851
|
var COMMIT_QUERY = () => ({ sql: "COMMIT", args: [], argTypes: [] });
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/interpreter/
|
|
1
|
+
// src/interpreter/data-mapper.ts
|
|
2
2
|
import Decimal2 from "decimal.js";
|
|
3
3
|
|
|
4
4
|
// src/utils.ts
|
|
@@ -93,7 +93,7 @@ function safeJsonStringify(obj) {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
// src/interpreter/
|
|
96
|
+
// src/interpreter/data-mapper.ts
|
|
97
97
|
var DataMapperError = class extends Error {
|
|
98
98
|
name = "DataMapperError";
|
|
99
99
|
};
|
|
@@ -372,7 +372,7 @@ async function withQuerySpanAndEvent({
|
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
// src/
|
|
375
|
+
// src/user-facing-error.ts
|
|
376
376
|
import { isDriverAdapterError } from "@prisma/driver-adapter-utils";
|
|
377
377
|
var UserFacingError = class extends Error {
|
|
378
378
|
name = "UserFacingError";
|
|
@@ -750,7 +750,7 @@ function getRecordKey(record, fields) {
|
|
|
750
750
|
return JSON.stringify(fields.map((field) => record[field]));
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
// src/
|
|
753
|
+
// src/query-plan.ts
|
|
754
754
|
function isPrismaValuePlaceholder(value) {
|
|
755
755
|
return typeof value === "object" && value !== null && value["prisma__type"] === "param";
|
|
756
756
|
}
|
|
@@ -764,7 +764,7 @@ function isPrismaValueBigInt(value) {
|
|
|
764
764
|
return typeof value === "object" && value !== null && value["prisma__type"] === "bigint";
|
|
765
765
|
}
|
|
766
766
|
|
|
767
|
-
// src/interpreter/
|
|
767
|
+
// src/interpreter/render-query.ts
|
|
768
768
|
function renderQuery(dbQuery, scope, generators, maxChunkSize) {
|
|
769
769
|
const queryType = dbQuery.type;
|
|
770
770
|
const params = evaluateParams(dbQuery.params, scope, generators);
|
|
@@ -1017,7 +1017,7 @@ function chunkArray(array, chunkSize) {
|
|
|
1017
1017
|
return result;
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
|
-
// src/interpreter/
|
|
1020
|
+
// src/interpreter/serialize-sql.ts
|
|
1021
1021
|
import { ColumnTypeEnum } from "@prisma/driver-adapter-utils";
|
|
1022
1022
|
function serializeSql(resultSet) {
|
|
1023
1023
|
const mappers = resultSet.columnTypes.map((type) => {
|
|
@@ -1276,7 +1276,7 @@ function getErrorCode2(error) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
// src/interpreter/
|
|
1279
|
+
// src/interpreter/query-interpreter.ts
|
|
1280
1280
|
var QueryInterpreter = class _QueryInterpreter {
|
|
1281
1281
|
#transactionManager;
|
|
1282
1282
|
#placeholderValues;
|
|
@@ -1730,7 +1730,7 @@ function normalizeValue(type, value) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
|
|
1733
|
-
// src/
|
|
1733
|
+
// src/transaction-manager/transaction-manager.ts
|
|
1734
1734
|
import { Debug } from "@prisma/debug";
|
|
1735
1735
|
|
|
1736
1736
|
// src/crypto.ts
|
|
@@ -1742,7 +1742,7 @@ async function randomUUID() {
|
|
|
1742
1742
|
return crypto.randomUUID();
|
|
1743
1743
|
}
|
|
1744
1744
|
|
|
1745
|
-
// src/
|
|
1745
|
+
// src/transaction-manager/transaction-manager-error.ts
|
|
1746
1746
|
var TransactionManagerError = class extends UserFacingError {
|
|
1747
1747
|
name = "TransactionManagerError";
|
|
1748
1748
|
constructor(message, meta) {
|
|
@@ -1795,7 +1795,7 @@ var InvalidTransactionIsolationLevelError = class extends TransactionManagerErro
|
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
1797
|
|
|
1798
|
-
// src/
|
|
1798
|
+
// src/transaction-manager/transaction-manager.ts
|
|
1799
1799
|
var MAX_CLOSED_TRANSACTIONS = 100;
|
|
1800
1800
|
var debug = Debug("prisma:client:transactionManager");
|
|
1801
1801
|
var COMMIT_QUERY = () => ({ sql: "COMMIT", args: [], argTypes: [] });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ConnectionInfo, SqlQueryable, SqlResultSet } from '@prisma/driver-adapter-utils';
|
|
2
2
|
import { QueryEvent } from '../events';
|
|
3
|
-
import { QueryPlanNode } from '../
|
|
3
|
+
import { QueryPlanNode } from '../query-plan';
|
|
4
4
|
import { type SchemaProvider } from '../schema';
|
|
5
5
|
import { type TracingHelper } from '../tracing';
|
|
6
|
-
import { type TransactionManager } from '../
|
|
6
|
+
import { type TransactionManager } from '../transaction-manager/transaction-manager';
|
|
7
7
|
import { Value } from './scope';
|
|
8
8
|
export type QueryInterpreterTransactionManager = {
|
|
9
9
|
enabled: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqlQuery } from '@prisma/driver-adapter-utils';
|
|
2
|
-
import type { PrismaValue, QueryPlanDbQuery } from '../
|
|
2
|
+
import type { PrismaValue, QueryPlanDbQuery } from '../query-plan';
|
|
3
3
|
import { GeneratorRegistrySnapshot } from './generators';
|
|
4
4
|
import { ScopeBindings } from './scope';
|
|
5
5
|
export declare function renderQuery(dbQuery: QueryPlanDbQuery, scope: ScopeBindings, generators: GeneratorRegistrySnapshot, maxChunkSize?: number): SqlQuery[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DataRule, ValidationError } from '../
|
|
1
|
+
import { DataRule, ValidationError } from '../query-plan';
|
|
2
2
|
export declare function performValidation(data: unknown, rules: DataRule[], error: ValidationError): void;
|
|
3
3
|
export declare function doesSatisfyRule(data: unknown, rule: DataRule): boolean;
|
|
@@ -2,7 +2,7 @@ import { SqlDriverAdapter, Transaction } from '@prisma/driver-adapter-utils';
|
|
|
2
2
|
import { QueryEvent } from '../events';
|
|
3
3
|
import type { SchemaProvider } from '../schema';
|
|
4
4
|
import { TracingHelper } from '../tracing';
|
|
5
|
-
import { Options, TransactionInfo } from './
|
|
5
|
+
import { Options, TransactionInfo } from './transaction';
|
|
6
6
|
export declare class TransactionManager {
|
|
7
7
|
#private;
|
|
8
8
|
private transactions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "6.14.0-dev.
|
|
3
|
+
"version": "6.14.0-dev.36",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"nanoid": "5.1.5",
|
|
32
32
|
"ulid": "3.0.0",
|
|
33
33
|
"uuid": "11.1.0",
|
|
34
|
-
"@prisma/debug": "6.14.0-dev.
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.14.0-dev.
|
|
34
|
+
"@prisma/debug": "6.14.0-dev.36",
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.14.0-dev.36"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|