@prisma/client-engine-runtime 6.15.0-dev.2 → 6.15.0-dev.20
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 +31 -58
- package/dist/index.d.ts +31 -58
- package/dist/index.js +215 -210
- package/dist/index.mjs +215 -208
- package/dist/interpreter/generators.d.ts +1 -2
- package/dist/interpreter/render-query.d.ts +2 -2
- package/dist/query-plan.d.ts +26 -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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Provider } from '@prisma/driver-adapter-utils';
|
|
2
1
|
export declare class GeneratorRegistry {
|
|
3
2
|
#private;
|
|
4
3
|
constructor();
|
|
@@ -7,7 +6,7 @@ export declare class GeneratorRegistry {
|
|
|
7
6
|
* method being called, meaning that the built-in time-based generators will always return
|
|
8
7
|
* the same value on repeated calls as long as the same snapshot is used.
|
|
9
8
|
*/
|
|
10
|
-
snapshot(
|
|
9
|
+
snapshot(): Readonly<GeneratorRegistrySnapshot>;
|
|
11
10
|
/**
|
|
12
11
|
* Registers a new generator with the given name.
|
|
13
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SqlQuery } from '@prisma/driver-adapter-utils';
|
|
2
|
-
import
|
|
2
|
+
import { type 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[];
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function evaluateArg(arg: unknown, scope: ScopeBindings, generators: GeneratorRegistrySnapshot): unknown;
|
package/dist/query-plan.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ArgType, Arity } from '@prisma/driver-adapter-utils';
|
|
1
2
|
export type PrismaValuePlaceholder = {
|
|
2
3
|
prisma__type: 'param';
|
|
3
4
|
prisma__value: {
|
|
@@ -14,59 +15,18 @@ export type PrismaValueGenerator = {
|
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
17
|
export declare function isPrismaValueGenerator(value: unknown): value is PrismaValueGenerator;
|
|
17
|
-
export type
|
|
18
|
-
prisma__type: 'bytes';
|
|
19
|
-
prisma__value: string;
|
|
20
|
-
};
|
|
21
|
-
export declare function isPrismaValueBytes(value: unknown): value is PrismaValueBytes;
|
|
22
|
-
export type PrismaValueBigInt = {
|
|
23
|
-
prisma__type: 'bigint';
|
|
24
|
-
prisma__value: string;
|
|
25
|
-
};
|
|
26
|
-
export declare function isPrismaValueBigInt(value: unknown): value is PrismaValueBigInt;
|
|
27
|
-
export type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator | PrismaValueBytes | PrismaValueBigInt;
|
|
28
|
-
export type PrismaValueType = {
|
|
29
|
-
type: 'Any';
|
|
30
|
-
} | {
|
|
31
|
-
type: 'String';
|
|
32
|
-
} | {
|
|
33
|
-
type: 'Int';
|
|
34
|
-
} | {
|
|
35
|
-
type: 'BigInt';
|
|
36
|
-
} | {
|
|
37
|
-
type: 'Float';
|
|
38
|
-
} | {
|
|
39
|
-
type: 'Boolean';
|
|
40
|
-
} | {
|
|
41
|
-
type: 'Decimal';
|
|
42
|
-
} | {
|
|
43
|
-
type: 'Date';
|
|
44
|
-
} | {
|
|
45
|
-
type: 'Time';
|
|
46
|
-
} | {
|
|
47
|
-
type: 'Array';
|
|
48
|
-
inner: PrismaValueType;
|
|
49
|
-
} | {
|
|
50
|
-
type: 'Json';
|
|
51
|
-
} | {
|
|
52
|
-
type: 'Object';
|
|
53
|
-
} | {
|
|
54
|
-
type: 'Bytes';
|
|
55
|
-
} | {
|
|
56
|
-
type: 'Enum';
|
|
57
|
-
inner: string;
|
|
58
|
-
};
|
|
18
|
+
export type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
|
|
59
19
|
export type ResultNode = {
|
|
60
|
-
type: '
|
|
20
|
+
type: 'affectedRows';
|
|
61
21
|
} | {
|
|
62
|
-
type: '
|
|
22
|
+
type: 'object';
|
|
63
23
|
fields: Record<string, ResultNode>;
|
|
64
24
|
serializedName: string | null;
|
|
65
25
|
skipNulls: boolean;
|
|
66
26
|
} | {
|
|
67
|
-
type: '
|
|
27
|
+
type: 'field';
|
|
68
28
|
dbName: string;
|
|
69
|
-
|
|
29
|
+
fieldType: FieldType;
|
|
70
30
|
};
|
|
71
31
|
export type QueryPlanBinding = {
|
|
72
32
|
name: string;
|
|
@@ -75,14 +35,20 @@ export type QueryPlanBinding = {
|
|
|
75
35
|
export type QueryPlanDbQuery = {
|
|
76
36
|
type: 'rawSql';
|
|
77
37
|
sql: string;
|
|
78
|
-
|
|
38
|
+
args: PrismaValue[];
|
|
39
|
+
argTypes: ArgType[];
|
|
79
40
|
} | {
|
|
80
41
|
type: 'templateSql';
|
|
81
42
|
fragments: Fragment[];
|
|
82
43
|
placeholderFormat: PlaceholderFormat;
|
|
83
|
-
|
|
44
|
+
args: PrismaValue[];
|
|
45
|
+
argTypes: DynamicArgType[];
|
|
84
46
|
chunkable: boolean;
|
|
85
47
|
};
|
|
48
|
+
export type DynamicArgType = ArgType | {
|
|
49
|
+
arity: 'tuple';
|
|
50
|
+
elements: ArgType[];
|
|
51
|
+
};
|
|
86
52
|
export type Fragment = {
|
|
87
53
|
type: 'stringChunk';
|
|
88
54
|
chunk: string;
|
|
@@ -300,3 +266,15 @@ export type ValidationError = {
|
|
|
300
266
|
child: string;
|
|
301
267
|
};
|
|
302
268
|
};
|
|
269
|
+
export type FieldType = {
|
|
270
|
+
arity: Arity;
|
|
271
|
+
} & FieldScalarType;
|
|
272
|
+
export type FieldScalarType = {
|
|
273
|
+
type: 'string' | 'int' | 'bigint' | 'float' | 'boolean' | 'json' | 'object' | 'datetime' | 'decimal' | 'unsupported';
|
|
274
|
+
} | {
|
|
275
|
+
type: 'enum';
|
|
276
|
+
name: string;
|
|
277
|
+
} | {
|
|
278
|
+
type: 'bytes';
|
|
279
|
+
encoding: 'array' | 'base64' | 'hex';
|
|
280
|
+
};
|
|
@@ -9,9 +9,6 @@ export declare class TransactionNotFoundError extends TransactionManagerError {
|
|
|
9
9
|
export declare class TransactionClosedError extends TransactionManagerError {
|
|
10
10
|
constructor(operation: string);
|
|
11
11
|
}
|
|
12
|
-
export declare class TransactionClosingError extends TransactionManagerError {
|
|
13
|
-
constructor(operation: string);
|
|
14
|
-
}
|
|
15
12
|
export declare class TransactionRolledBackError extends TransactionManagerError {
|
|
16
13
|
constructor(operation: string);
|
|
17
14
|
}
|
|
@@ -20,10 +20,6 @@ export declare class TransactionManager {
|
|
|
20
20
|
startTransaction(options?: Options): Promise<TransactionInfo>;
|
|
21
21
|
commitTransaction(transactionId: string): Promise<void>;
|
|
22
22
|
rollbackTransaction(transactionId: string): Promise<void>;
|
|
23
|
-
getTransaction(txInfo: TransactionInfo, operation: string): Transaction
|
|
24
|
-
private getActiveTransaction;
|
|
23
|
+
getTransaction(txInfo: TransactionInfo, operation: string): Promise<Transaction>;
|
|
25
24
|
cancelAllTransactions(): Promise<void>;
|
|
26
|
-
private startTransactionTimeout;
|
|
27
|
-
private closeTransaction;
|
|
28
|
-
private validateOptions;
|
|
29
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "6.15.0-dev.
|
|
3
|
+
"version": "6.15.0-dev.20",
|
|
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.15.0-dev.
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.15.0-dev.
|
|
34
|
+
"@prisma/debug": "6.15.0-dev.20",
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.15.0-dev.20"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|