@prisma/client-engine-runtime 6.15.0-dev.2 → 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 +28 -58
- package/dist/index.d.ts +28 -58
- package/dist/index.js +188 -200
- package/dist/index.mjs +188 -198
- package/dist/interpreter/generators.d.ts +1 -2
- package/dist/interpreter/render-query.d.ts +2 -2
- package/dist/query-plan.d.ts +23 -48
- package/dist/transaction-manager/transaction-manager-error.d.ts +0 -3
- package/dist/transaction-manager/transaction-manager.d.ts +1 -5
- package/package.json +3 -3
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
|
|
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
|
-
|
|
273
|
+
args: PrismaValue[];
|
|
274
|
+
argTypes: ArgType[];
|
|
302
275
|
} | {
|
|
303
276
|
type: 'templateSql';
|
|
304
277
|
fragments: Fragment[];
|
|
305
278
|
placeholderFormat: PlaceholderFormat;
|
|
306
|
-
|
|
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: '
|
|
398
|
+
type: 'affectedRows';
|
|
425
399
|
} | {
|
|
426
|
-
type: '
|
|
400
|
+
type: 'object';
|
|
427
401
|
fields: Record<string, ResultNode>;
|
|
428
402
|
serializedName: string | null;
|
|
429
403
|
skipNulls: boolean;
|
|
430
404
|
} | {
|
|
431
|
-
type: '
|
|
405
|
+
type: 'field';
|
|
432
406
|
dbName: string;
|
|
433
|
-
|
|
407
|
+
fieldType: FieldType;
|
|
434
408
|
};
|
|
435
409
|
|
|
436
410
|
/**
|
|
@@ -471,12 +445,8 @@ export declare class TransactionManager {
|
|
|
471
445
|
startTransaction(options?: TransactionOptions): Promise<TransactionInfo>;
|
|
472
446
|
commitTransaction(transactionId: string): Promise<void>;
|
|
473
447
|
rollbackTransaction(transactionId: string): Promise<void>;
|
|
474
|
-
getTransaction(txInfo: TransactionInfo, operation: string): Transaction
|
|
475
|
-
private getActiveTransaction;
|
|
448
|
+
getTransaction(txInfo: TransactionInfo, operation: string): Promise<Transaction>;
|
|
476
449
|
cancelAllTransactions(): Promise<void>;
|
|
477
|
-
private startTransactionTimeout;
|
|
478
|
-
private closeTransaction;
|
|
479
|
-
private validateOptions;
|
|
480
450
|
}
|
|
481
451
|
|
|
482
452
|
export declare class TransactionManagerError extends UserFacingError {
|
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
|
|
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
|
-
|
|
273
|
+
args: PrismaValue[];
|
|
274
|
+
argTypes: ArgType[];
|
|
302
275
|
} | {
|
|
303
276
|
type: 'templateSql';
|
|
304
277
|
fragments: Fragment[];
|
|
305
278
|
placeholderFormat: PlaceholderFormat;
|
|
306
|
-
|
|
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: '
|
|
398
|
+
type: 'affectedRows';
|
|
425
399
|
} | {
|
|
426
|
-
type: '
|
|
400
|
+
type: 'object';
|
|
427
401
|
fields: Record<string, ResultNode>;
|
|
428
402
|
serializedName: string | null;
|
|
429
403
|
skipNulls: boolean;
|
|
430
404
|
} | {
|
|
431
|
-
type: '
|
|
405
|
+
type: 'field';
|
|
432
406
|
dbName: string;
|
|
433
|
-
|
|
407
|
+
fieldType: FieldType;
|
|
434
408
|
};
|
|
435
409
|
|
|
436
410
|
/**
|
|
@@ -471,12 +445,8 @@ export declare class TransactionManager {
|
|
|
471
445
|
startTransaction(options?: TransactionOptions): Promise<TransactionInfo>;
|
|
472
446
|
commitTransaction(transactionId: string): Promise<void>;
|
|
473
447
|
rollbackTransaction(transactionId: string): Promise<void>;
|
|
474
|
-
getTransaction(txInfo: TransactionInfo, operation: string): Transaction
|
|
475
|
-
private getActiveTransaction;
|
|
448
|
+
getTransaction(txInfo: TransactionInfo, operation: string): Promise<Transaction>;
|
|
476
449
|
cancelAllTransactions(): Promise<void>;
|
|
477
|
-
private startTransactionTimeout;
|
|
478
|
-
private closeTransaction;
|
|
479
|
-
private validateOptions;
|
|
480
450
|
}
|
|
481
451
|
|
|
482
452
|
export declare class TransactionManagerError extends UserFacingError {
|