@prisma/client-engine-runtime 6.15.0-dev.3 → 6.15.0-dev.4

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.d.mts CHANGED
@@ -1,3 +1,5 @@
1
+ import { ArgType } from '@prisma/driver-adapter-utils';
2
+ import { Arity } from '@prisma/driver-adapter-utils';
1
3
  import { ConnectionInfo } from '@prisma/driver-adapter-utils';
2
4
  import { Context } from '@opentelemetry/api';
3
5
  import { Decimal } from 'decimal.js';
@@ -72,6 +74,11 @@ export declare function deserializeJsonResponse(result: unknown): unknown;
72
74
  */
73
75
  export declare function doKeysMatch(lhs: {}, rhs: {}): boolean;
74
76
 
77
+ export declare type DynamicArgType = ArgType | {
78
+ arity: 'tuple';
79
+ elements: ArgType[];
80
+ };
81
+
75
82
  export declare type EnumTaggedValue = {
76
83
  $type: 'Enum';
77
84
  value: string;
@@ -112,6 +119,17 @@ export declare type FieldRefTaggedValue = {
112
119
  };
113
120
  };
114
121
 
122
+ export declare type FieldScalarType = {
123
+ type: 'string' | 'int' | 'bigint' | 'float' | 'boolean' | 'json' | 'object' | 'datetime' | 'decimal' | 'bytes' | 'unsupported';
124
+ } | {
125
+ type: 'enum';
126
+ name: string;
127
+ };
128
+
129
+ export declare type FieldType = {
130
+ arity: Arity;
131
+ } & FieldScalarType;
132
+
115
133
  export declare type Fragment = {
116
134
  type: 'stringChunk';
117
135
  chunk: string;
@@ -140,10 +158,6 @@ export declare type InMemoryOps = {
140
158
  */
141
159
  export declare function isDeepStrictEqual(a: unknown, b: unknown): boolean;
142
160
 
143
- export declare function isPrismaValueBigInt(value: unknown): value is PrismaValueBigInt;
144
-
145
- export declare function isPrismaValueBytes(value: unknown): value is PrismaValueBytes;
146
-
147
161
  export declare function isPrismaValueGenerator(value: unknown): value is PrismaValueGenerator;
148
162
 
149
163
  export declare function isPrismaValuePlaceholder(value: unknown): value is PrismaValuePlaceholder;
@@ -190,17 +204,7 @@ export declare interface PlaceholderFormat {
190
204
  hasNumbering: boolean;
191
205
  }
192
206
 
193
- export declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator | PrismaValueBytes | PrismaValueBigInt;
194
-
195
- export declare type PrismaValueBigInt = {
196
- prisma__type: 'bigint';
197
- prisma__value: string;
198
- };
199
-
200
- export declare type PrismaValueBytes = {
201
- prisma__type: 'bytes';
202
- prisma__value: string;
203
- };
207
+ export declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
204
208
 
205
209
  export declare type PrismaValueGenerator = {
206
210
  prisma__type: 'generatorCall';
@@ -218,38 +222,6 @@ export declare type PrismaValuePlaceholder = {
218
222
  };
219
223
  };
220
224
 
221
- export declare type PrismaValueType = {
222
- type: 'Any';
223
- } | {
224
- type: 'String';
225
- } | {
226
- type: 'Int';
227
- } | {
228
- type: 'BigInt';
229
- } | {
230
- type: 'Float';
231
- } | {
232
- type: 'Boolean';
233
- } | {
234
- type: 'Decimal';
235
- } | {
236
- type: 'Date';
237
- } | {
238
- type: 'Time';
239
- } | {
240
- type: 'Array';
241
- inner: PrismaValueType;
242
- } | {
243
- type: 'Json';
244
- } | {
245
- type: 'Object';
246
- } | {
247
- type: 'Bytes';
248
- } | {
249
- type: 'Enum';
250
- inner: string;
251
- };
252
-
253
225
  export declare type QueryEvent = {
254
226
  timestamp: Date;
255
227
  query: string;
@@ -298,12 +270,14 @@ export declare type QueryPlanBinding = {
298
270
  export declare type QueryPlanDbQuery = {
299
271
  type: 'rawSql';
300
272
  sql: string;
301
- params: PrismaValue[];
273
+ args: PrismaValue[];
274
+ argTypes: ArgType[];
302
275
  } | {
303
276
  type: 'templateSql';
304
277
  fragments: Fragment[];
305
278
  placeholderFormat: PlaceholderFormat;
306
- params: PrismaValue[];
279
+ args: PrismaValue[];
280
+ argTypes: DynamicArgType[];
307
281
  chunkable: boolean;
308
282
  };
309
283
 
@@ -421,16 +395,16 @@ export declare type RawResponse = {
421
395
  };
422
396
 
423
397
  export declare type ResultNode = {
424
- type: 'AffectedRows';
398
+ type: 'affectedRows';
425
399
  } | {
426
- type: 'Object';
400
+ type: 'object';
427
401
  fields: Record<string, ResultNode>;
428
402
  serializedName: string | null;
429
403
  skipNulls: boolean;
430
404
  } | {
431
- type: 'Value';
405
+ type: 'field';
432
406
  dbName: string;
433
- resultType: PrismaValueType;
407
+ fieldType: FieldType;
434
408
  };
435
409
 
436
410
  /**
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { ArgType } from '@prisma/driver-adapter-utils';
2
+ import { Arity } from '@prisma/driver-adapter-utils';
1
3
  import { ConnectionInfo } from '@prisma/driver-adapter-utils';
2
4
  import { Context } from '@opentelemetry/api';
3
5
  import { Decimal } from 'decimal.js';
@@ -72,6 +74,11 @@ export declare function deserializeJsonResponse(result: unknown): unknown;
72
74
  */
73
75
  export declare function doKeysMatch(lhs: {}, rhs: {}): boolean;
74
76
 
77
+ export declare type DynamicArgType = ArgType | {
78
+ arity: 'tuple';
79
+ elements: ArgType[];
80
+ };
81
+
75
82
  export declare type EnumTaggedValue = {
76
83
  $type: 'Enum';
77
84
  value: string;
@@ -112,6 +119,17 @@ export declare type FieldRefTaggedValue = {
112
119
  };
113
120
  };
114
121
 
122
+ export declare type FieldScalarType = {
123
+ type: 'string' | 'int' | 'bigint' | 'float' | 'boolean' | 'json' | 'object' | 'datetime' | 'decimal' | 'bytes' | 'unsupported';
124
+ } | {
125
+ type: 'enum';
126
+ name: string;
127
+ };
128
+
129
+ export declare type FieldType = {
130
+ arity: Arity;
131
+ } & FieldScalarType;
132
+
115
133
  export declare type Fragment = {
116
134
  type: 'stringChunk';
117
135
  chunk: string;
@@ -140,10 +158,6 @@ export declare type InMemoryOps = {
140
158
  */
141
159
  export declare function isDeepStrictEqual(a: unknown, b: unknown): boolean;
142
160
 
143
- export declare function isPrismaValueBigInt(value: unknown): value is PrismaValueBigInt;
144
-
145
- export declare function isPrismaValueBytes(value: unknown): value is PrismaValueBytes;
146
-
147
161
  export declare function isPrismaValueGenerator(value: unknown): value is PrismaValueGenerator;
148
162
 
149
163
  export declare function isPrismaValuePlaceholder(value: unknown): value is PrismaValuePlaceholder;
@@ -190,17 +204,7 @@ export declare interface PlaceholderFormat {
190
204
  hasNumbering: boolean;
191
205
  }
192
206
 
193
- export declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator | PrismaValueBytes | PrismaValueBigInt;
194
-
195
- export declare type PrismaValueBigInt = {
196
- prisma__type: 'bigint';
197
- prisma__value: string;
198
- };
199
-
200
- export declare type PrismaValueBytes = {
201
- prisma__type: 'bytes';
202
- prisma__value: string;
203
- };
207
+ export declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
204
208
 
205
209
  export declare type PrismaValueGenerator = {
206
210
  prisma__type: 'generatorCall';
@@ -218,38 +222,6 @@ export declare type PrismaValuePlaceholder = {
218
222
  };
219
223
  };
220
224
 
221
- export declare type PrismaValueType = {
222
- type: 'Any';
223
- } | {
224
- type: 'String';
225
- } | {
226
- type: 'Int';
227
- } | {
228
- type: 'BigInt';
229
- } | {
230
- type: 'Float';
231
- } | {
232
- type: 'Boolean';
233
- } | {
234
- type: 'Decimal';
235
- } | {
236
- type: 'Date';
237
- } | {
238
- type: 'Time';
239
- } | {
240
- type: 'Array';
241
- inner: PrismaValueType;
242
- } | {
243
- type: 'Json';
244
- } | {
245
- type: 'Object';
246
- } | {
247
- type: 'Bytes';
248
- } | {
249
- type: 'Enum';
250
- inner: string;
251
- };
252
-
253
225
  export declare type QueryEvent = {
254
226
  timestamp: Date;
255
227
  query: string;
@@ -298,12 +270,14 @@ export declare type QueryPlanBinding = {
298
270
  export declare type QueryPlanDbQuery = {
299
271
  type: 'rawSql';
300
272
  sql: string;
301
- params: PrismaValue[];
273
+ args: PrismaValue[];
274
+ argTypes: ArgType[];
302
275
  } | {
303
276
  type: 'templateSql';
304
277
  fragments: Fragment[];
305
278
  placeholderFormat: PlaceholderFormat;
306
- params: PrismaValue[];
279
+ args: PrismaValue[];
280
+ argTypes: DynamicArgType[];
307
281
  chunkable: boolean;
308
282
  };
309
283
 
@@ -421,16 +395,16 @@ export declare type RawResponse = {
421
395
  };
422
396
 
423
397
  export declare type ResultNode = {
424
- type: 'AffectedRows';
398
+ type: 'affectedRows';
425
399
  } | {
426
- type: 'Object';
400
+ type: 'object';
427
401
  fields: Record<string, ResultNode>;
428
402
  serializedName: string | null;
429
403
  skipNulls: boolean;
430
404
  } | {
431
- type: 'Value';
405
+ type: 'field';
432
406
  dbName: string;
433
- resultType: PrismaValueType;
407
+ fieldType: FieldType;
434
408
  };
435
409
 
436
410
  /**