@prisma/client-engine-runtime 6.14.0-dev.2 → 6.14.0-dev.21

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.
@@ -46,6 +46,8 @@ export type PrismaValueType = {
46
46
  } | {
47
47
  type: 'Array';
48
48
  inner: PrismaValueType;
49
+ } | {
50
+ type: 'Json';
49
51
  } | {
50
52
  type: 'Object';
51
53
  } | {
@@ -78,6 +80,7 @@ export type QueryPlanDbQuery = {
78
80
  fragments: Fragment[];
79
81
  placeholderFormat: PlaceholderFormat;
80
82
  params: PrismaValue[];
83
+ chunkable: boolean;
81
84
  };
82
85
  export type Fragment = {
83
86
  type: 'stringChunk';
@@ -14,3 +14,4 @@ export declare class UserFacingError extends Error {
14
14
  };
15
15
  }
16
16
  export declare function rethrowAsUserFacing(error: any): never;
17
+ export declare function rethrowAsUserFacingRawError(error: any): never;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ConnectionInfo } from '@prisma/driver-adapter-utils';
1
2
  import { Context } from '@opentelemetry/api';
2
3
  import type { IsolationLevel } from '@prisma/driver-adapter-utils';
3
4
  import { Span } from '@opentelemetry/api';
@@ -139,6 +140,8 @@ export declare const noopTracingHelper: TracingHelper;
139
140
 
140
141
  export declare function normalizeJsonProtocolValues(result: unknown): unknown;
141
142
 
143
+ export declare function normalizeRawJsonProtocolResponse(response: RawResponse): RawResponse;
144
+
142
145
  export declare type Pagination = {
143
146
  cursor: Record<string, PrismaValue> | null;
144
147
  take: number | null;
@@ -200,6 +203,8 @@ export declare type PrismaValueType = {
200
203
  } | {
201
204
  type: 'Array';
202
205
  inner: PrismaValueType;
206
+ } | {
207
+ type: 'Json';
203
208
  } | {
204
209
  type: 'Object';
205
210
  } | {
@@ -218,13 +223,14 @@ export declare type QueryEvent = {
218
223
 
219
224
  export declare class QueryInterpreter {
220
225
  #private;
221
- constructor({ transactionManager, placeholderValues, onQuery, tracingHelper, serializer, rawSerializer, provider, }: QueryInterpreterOptions);
226
+ constructor({ transactionManager, placeholderValues, onQuery, tracingHelper, serializer, rawSerializer, provider, connectionInfo, }: QueryInterpreterOptions);
222
227
  static forSql(options: {
223
228
  transactionManager: QueryInterpreterTransactionManager;
224
229
  placeholderValues: Record<string, unknown>;
225
230
  onQuery?: (event: QueryEvent) => void;
226
231
  tracingHelper: TracingHelper;
227
232
  provider?: SchemaProvider;
233
+ connectionInfo?: ConnectionInfo;
228
234
  }): QueryInterpreter;
229
235
  run(queryPlan: QueryPlanNode, queryable: SqlQueryable): Promise<unknown>;
230
236
  private interpretNode;
@@ -238,6 +244,7 @@ export declare type QueryInterpreterOptions = {
238
244
  serializer: (results: SqlResultSet) => Value;
239
245
  rawSerializer?: (results: SqlResultSet) => Value;
240
246
  provider?: SchemaProvider;
247
+ connectionInfo?: ConnectionInfo;
241
248
  };
242
249
 
243
250
  export declare type QueryInterpreterTransactionManager = {
@@ -261,6 +268,7 @@ export declare type QueryPlanDbQuery = {
261
268
  fragments: Fragment[];
262
269
  placeholderFormat: PlaceholderFormat;
263
270
  params: PrismaValue[];
271
+ chunkable: boolean;
264
272
  };
265
273
 
266
274
  export declare type QueryPlanNode = {
@@ -376,6 +384,12 @@ export declare type QueryPlanNode = {
376
384
  };
377
385
  };
378
386
 
387
+ export declare type RawResponse = {
388
+ columns: string[];
389
+ types: string[];
390
+ rows: unknown[][];
391
+ };
392
+
379
393
  export declare type ResultNode = {
380
394
  type: 'AffectedRows';
381
395
  } | {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ConnectionInfo } from '@prisma/driver-adapter-utils';
1
2
  import { Context } from '@opentelemetry/api';
2
3
  import type { IsolationLevel } from '@prisma/driver-adapter-utils';
3
4
  import { Span } from '@opentelemetry/api';
@@ -139,6 +140,8 @@ export declare const noopTracingHelper: TracingHelper;
139
140
 
140
141
  export declare function normalizeJsonProtocolValues(result: unknown): unknown;
141
142
 
143
+ export declare function normalizeRawJsonProtocolResponse(response: RawResponse): RawResponse;
144
+
142
145
  export declare type Pagination = {
143
146
  cursor: Record<string, PrismaValue> | null;
144
147
  take: number | null;
@@ -200,6 +203,8 @@ export declare type PrismaValueType = {
200
203
  } | {
201
204
  type: 'Array';
202
205
  inner: PrismaValueType;
206
+ } | {
207
+ type: 'Json';
203
208
  } | {
204
209
  type: 'Object';
205
210
  } | {
@@ -218,13 +223,14 @@ export declare type QueryEvent = {
218
223
 
219
224
  export declare class QueryInterpreter {
220
225
  #private;
221
- constructor({ transactionManager, placeholderValues, onQuery, tracingHelper, serializer, rawSerializer, provider, }: QueryInterpreterOptions);
226
+ constructor({ transactionManager, placeholderValues, onQuery, tracingHelper, serializer, rawSerializer, provider, connectionInfo, }: QueryInterpreterOptions);
222
227
  static forSql(options: {
223
228
  transactionManager: QueryInterpreterTransactionManager;
224
229
  placeholderValues: Record<string, unknown>;
225
230
  onQuery?: (event: QueryEvent) => void;
226
231
  tracingHelper: TracingHelper;
227
232
  provider?: SchemaProvider;
233
+ connectionInfo?: ConnectionInfo;
228
234
  }): QueryInterpreter;
229
235
  run(queryPlan: QueryPlanNode, queryable: SqlQueryable): Promise<unknown>;
230
236
  private interpretNode;
@@ -238,6 +244,7 @@ export declare type QueryInterpreterOptions = {
238
244
  serializer: (results: SqlResultSet) => Value;
239
245
  rawSerializer?: (results: SqlResultSet) => Value;
240
246
  provider?: SchemaProvider;
247
+ connectionInfo?: ConnectionInfo;
241
248
  };
242
249
 
243
250
  export declare type QueryInterpreterTransactionManager = {
@@ -261,6 +268,7 @@ export declare type QueryPlanDbQuery = {
261
268
  fragments: Fragment[];
262
269
  placeholderFormat: PlaceholderFormat;
263
270
  params: PrismaValue[];
271
+ chunkable: boolean;
264
272
  };
265
273
 
266
274
  export declare type QueryPlanNode = {
@@ -376,6 +384,12 @@ export declare type QueryPlanNode = {
376
384
  };
377
385
  };
378
386
 
387
+ export declare type RawResponse = {
388
+ columns: string[];
389
+ types: string[];
390
+ rows: unknown[][];
391
+ };
392
+
379
393
  export declare type ResultNode = {
380
394
  type: 'AffectedRows';
381
395
  } | {