@prisma/driver-adapter-utils 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 CHANGED
@@ -9,12 +9,15 @@ declare interface AdapterInfo {
9
9
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
10
10
  }
11
11
 
12
- /**
13
- * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
14
- * Query arguments marked with this type are sanitized before being sent to the database.
15
- * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
16
- */
17
- export declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time' | 'Unknown';
12
+ export declare type ArgScalarType = 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown';
13
+
14
+ export declare type ArgType = {
15
+ scalarType: ArgScalarType;
16
+ dbType?: string;
17
+ arity: Arity;
18
+ };
19
+
20
+ export declare type Arity = 'scalar' | 'list';
18
21
 
19
22
  export declare const bindAdapter: (adapter: SqlDriverAdapter, errorRegistry?: ErrorRegistryInternal) => ErrorCapturingSqlDriverAdapter;
20
23
 
package/dist/index.d.ts CHANGED
@@ -9,12 +9,15 @@ declare interface AdapterInfo {
9
9
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
10
10
  }
11
11
 
12
- /**
13
- * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
14
- * Query arguments marked with this type are sanitized before being sent to the database.
15
- * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
16
- */
17
- export declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time' | 'Unknown';
12
+ export declare type ArgScalarType = 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown';
13
+
14
+ export declare type ArgType = {
15
+ scalarType: ArgScalarType;
16
+ dbType?: string;
17
+ arity: Arity;
18
+ };
19
+
20
+ export declare type Arity = 'scalar' | 'list';
18
21
 
19
22
  export declare const bindAdapter: (adapter: SqlDriverAdapter, errorRegistry?: ErrorRegistryInternal) => ErrorCapturingSqlDriverAdapter;
20
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/driver-adapter-utils",
3
- "version": "6.15.0-dev.2",
3
+ "version": "6.15.0-dev.4",
4
4
  "description": "Internal set of utilities and types for Prisma's driver adapters.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "@prisma/debug": "6.15.0-dev.2"
34
+ "@prisma/debug": "6.15.0-dev.4"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "DEV=true tsx helpers/build.ts",