@prisma/driver-adapter-utils 5.18.0 → 5.19.0-dev.2

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,5 +1,12 @@
1
1
  import { Debug } from '@prisma/debug';
2
2
 
3
+ /**
4
+ * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
5
+ * Query arguments marked with this type are sanitized before being sent to the database.
6
+ * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
7
+ */
8
+ export declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
9
+
3
10
  export declare const bindAdapter: (adapter: DriverAdapter) => ErrorCapturingDriverAdapter;
4
11
 
5
12
  export declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
@@ -107,6 +114,7 @@ export declare function ok<T>(value: T): Result<T>;
107
114
  export declare type Query = {
108
115
  sql: string;
109
116
  args: Array<unknown>;
117
+ argTypes: Array<ArgType>;
110
118
  };
111
119
 
112
120
  export declare interface Queryable {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  import { Debug } from '@prisma/debug';
2
2
 
3
+ /**
4
+ * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
5
+ * Query arguments marked with this type are sanitized before being sent to the database.
6
+ * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
7
+ */
8
+ export declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
9
+
3
10
  export declare const bindAdapter: (adapter: DriverAdapter) => ErrorCapturingDriverAdapter;
4
11
 
5
12
  export declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
@@ -107,6 +114,7 @@ export declare function ok<T>(value: T): Result<T>;
107
114
  export declare type Query = {
108
115
  sql: string;
109
116
  args: Array<unknown>;
117
+ argTypes: Array<ArgType>;
110
118
  };
111
119
 
112
120
  export declare interface Queryable {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/driver-adapter-utils",
3
- "version": "5.18.0",
3
+ "version": "5.19.0-dev.2",
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": "5.18.0"
34
+ "@prisma/debug": "5.19.0-dev.2"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "DEV=true tsx helpers/build.ts",