@prisma/driver-adapter-utils 6.10.0-dev.3 → 6.10.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.
- package/dist/index.d.mts +32 -4
- package/dist/index.d.ts +32 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const ColumnTypeEnum: {
|
|
|
62
62
|
export declare type ConnectionInfo = {
|
|
63
63
|
schemaName?: string;
|
|
64
64
|
maxBindValues?: number;
|
|
65
|
+
supportsRelationJoins: boolean;
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
export { Debug }
|
|
@@ -99,10 +100,22 @@ declare type Error_2 = {
|
|
|
99
100
|
column?: string;
|
|
100
101
|
} | {
|
|
101
102
|
kind: 'UniqueConstraintViolation';
|
|
102
|
-
|
|
103
|
+
constraint?: {
|
|
104
|
+
fields: string[];
|
|
105
|
+
} | {
|
|
106
|
+
index: string;
|
|
107
|
+
} | {
|
|
108
|
+
foreignKey: {};
|
|
109
|
+
};
|
|
103
110
|
} | {
|
|
104
111
|
kind: 'NullConstraintViolation';
|
|
105
|
-
|
|
112
|
+
constraint?: {
|
|
113
|
+
fields: string[];
|
|
114
|
+
} | {
|
|
115
|
+
index: string;
|
|
116
|
+
} | {
|
|
117
|
+
foreignKey: {};
|
|
118
|
+
};
|
|
106
119
|
} | {
|
|
107
120
|
kind: 'ForeignKeyConstraintViolation';
|
|
108
121
|
constraint?: {
|
|
@@ -135,8 +148,19 @@ declare type Error_2 = {
|
|
|
135
148
|
} | {
|
|
136
149
|
kind: 'TooManyConnections';
|
|
137
150
|
cause: string;
|
|
151
|
+
} | {
|
|
152
|
+
kind: 'ValueOutOfRange';
|
|
153
|
+
cause: string;
|
|
154
|
+
} | {
|
|
155
|
+
kind: 'MissingFullTextSearchIndex';
|
|
138
156
|
} | {
|
|
139
157
|
kind: 'SocketTimeout';
|
|
158
|
+
} | {
|
|
159
|
+
kind: 'InconsistentColumnData';
|
|
160
|
+
cause: string;
|
|
161
|
+
} | {
|
|
162
|
+
kind: 'TransactionAlreadyClosed';
|
|
163
|
+
cause: string;
|
|
140
164
|
} | {
|
|
141
165
|
kind: 'postgres';
|
|
142
166
|
code: string;
|
|
@@ -157,6 +181,10 @@ declare type Error_2 = {
|
|
|
157
181
|
*/
|
|
158
182
|
extendedCode: number;
|
|
159
183
|
message: string;
|
|
184
|
+
} | {
|
|
185
|
+
kind: 'mssql';
|
|
186
|
+
code: number;
|
|
187
|
+
message: string;
|
|
160
188
|
};
|
|
161
189
|
export { Error_2 as Error }
|
|
162
190
|
|
|
@@ -225,11 +253,11 @@ export declare function mockMigrationAwareAdapterFactory(provider: 'mysql' | 'sq
|
|
|
225
253
|
|
|
226
254
|
export declare type OfficialDriverAdapterName = (typeof officialPrismaAdapters)[number];
|
|
227
255
|
|
|
228
|
-
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-
|
|
256
|
+
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql"];
|
|
229
257
|
|
|
230
258
|
export declare function ok<T>(value: T): Result<T>;
|
|
231
259
|
|
|
232
|
-
export declare type Provider = 'mysql' | 'postgres' | 'sqlite';
|
|
260
|
+
export declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver';
|
|
233
261
|
|
|
234
262
|
export declare interface Queryable<Query, Result> extends AdapterInfo {
|
|
235
263
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const ColumnTypeEnum: {
|
|
|
62
62
|
export declare type ConnectionInfo = {
|
|
63
63
|
schemaName?: string;
|
|
64
64
|
maxBindValues?: number;
|
|
65
|
+
supportsRelationJoins: boolean;
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
export { Debug }
|
|
@@ -99,10 +100,22 @@ declare type Error_2 = {
|
|
|
99
100
|
column?: string;
|
|
100
101
|
} | {
|
|
101
102
|
kind: 'UniqueConstraintViolation';
|
|
102
|
-
|
|
103
|
+
constraint?: {
|
|
104
|
+
fields: string[];
|
|
105
|
+
} | {
|
|
106
|
+
index: string;
|
|
107
|
+
} | {
|
|
108
|
+
foreignKey: {};
|
|
109
|
+
};
|
|
103
110
|
} | {
|
|
104
111
|
kind: 'NullConstraintViolation';
|
|
105
|
-
|
|
112
|
+
constraint?: {
|
|
113
|
+
fields: string[];
|
|
114
|
+
} | {
|
|
115
|
+
index: string;
|
|
116
|
+
} | {
|
|
117
|
+
foreignKey: {};
|
|
118
|
+
};
|
|
106
119
|
} | {
|
|
107
120
|
kind: 'ForeignKeyConstraintViolation';
|
|
108
121
|
constraint?: {
|
|
@@ -135,8 +148,19 @@ declare type Error_2 = {
|
|
|
135
148
|
} | {
|
|
136
149
|
kind: 'TooManyConnections';
|
|
137
150
|
cause: string;
|
|
151
|
+
} | {
|
|
152
|
+
kind: 'ValueOutOfRange';
|
|
153
|
+
cause: string;
|
|
154
|
+
} | {
|
|
155
|
+
kind: 'MissingFullTextSearchIndex';
|
|
138
156
|
} | {
|
|
139
157
|
kind: 'SocketTimeout';
|
|
158
|
+
} | {
|
|
159
|
+
kind: 'InconsistentColumnData';
|
|
160
|
+
cause: string;
|
|
161
|
+
} | {
|
|
162
|
+
kind: 'TransactionAlreadyClosed';
|
|
163
|
+
cause: string;
|
|
140
164
|
} | {
|
|
141
165
|
kind: 'postgres';
|
|
142
166
|
code: string;
|
|
@@ -157,6 +181,10 @@ declare type Error_2 = {
|
|
|
157
181
|
*/
|
|
158
182
|
extendedCode: number;
|
|
159
183
|
message: string;
|
|
184
|
+
} | {
|
|
185
|
+
kind: 'mssql';
|
|
186
|
+
code: number;
|
|
187
|
+
message: string;
|
|
160
188
|
};
|
|
161
189
|
export { Error_2 as Error }
|
|
162
190
|
|
|
@@ -225,11 +253,11 @@ export declare function mockMigrationAwareAdapterFactory(provider: 'mysql' | 'sq
|
|
|
225
253
|
|
|
226
254
|
export declare type OfficialDriverAdapterName = (typeof officialPrismaAdapters)[number];
|
|
227
255
|
|
|
228
|
-
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-
|
|
256
|
+
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql"];
|
|
229
257
|
|
|
230
258
|
export declare function ok<T>(value: T): Result<T>;
|
|
231
259
|
|
|
232
|
-
export declare type Provider = 'mysql' | 'postgres' | 'sqlite';
|
|
260
|
+
export declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver';
|
|
233
261
|
|
|
234
262
|
export declare interface Queryable<Query, Result> extends AdapterInfo {
|
|
235
263
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/driver-adapter-utils",
|
|
3
|
-
"version": "6.10.0-dev.
|
|
3
|
+
"version": "6.10.0-dev.30",
|
|
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.10.0-dev.
|
|
34
|
+
"@prisma/debug": "6.10.0-dev.30"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "DEV=true tsx helpers/build.ts",
|