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

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.
@@ -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 PrismaValueBytes = {
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: 'AffectedRows';
20
+ type: 'affectedRows';
61
21
  } | {
62
- type: 'Object';
22
+ type: 'object';
63
23
  fields: Record<string, ResultNode>;
64
24
  serializedName: string | null;
65
25
  skipNulls: boolean;
66
26
  } | {
67
- type: 'Value';
27
+ type: 'field';
68
28
  dbName: string;
69
- resultType: PrismaValueType;
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
- params: PrismaValue[];
38
+ args: PrismaValue[];
39
+ argTypes: ArgType[];
79
40
  } | {
80
41
  type: 'templateSql';
81
42
  fragments: Fragment[];
82
43
  placeholderFormat: PlaceholderFormat;
83
- params: PrismaValue[];
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "6.15.0-dev.3",
3
+ "version": "6.15.0-dev.30",
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.3",
35
- "@prisma/driver-adapter-utils": "6.15.0-dev.3"
34
+ "@prisma/debug": "6.15.0-dev.30",
35
+ "@prisma/driver-adapter-utils": "6.15.0-dev.30"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.14",