prisma 6.14.0-dev.16 → 6.14.0-dev.18
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/build/index.js +82 -82
- package/build/query_compiler_bg.cockroachdb.wasm +0 -0
- package/build/query_compiler_bg.mysql.wasm +0 -0
- package/build/query_compiler_bg.postgresql.wasm +0 -0
- package/build/query_compiler_bg.sqlite.wasm +0 -0
- package/build/query_compiler_bg.sqlserver.wasm +0 -0
- package/build/query_engine_bg.cockroachdb.wasm +0 -0
- package/build/query_engine_bg.mysql.wasm +0 -0
- package/build/query_engine_bg.postgresql.wasm +0 -0
- package/build/query_engine_bg.sqlite.wasm +0 -0
- package/build/query_engine_bg.sqlserver.wasm +0 -0
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +11 -11
- package/prisma-client/package.json +4 -4
- package/prisma-client/runtime/binary.js +2 -2
- package/prisma-client/runtime/binary.js.map +2 -2
- package/prisma-client/runtime/binary.mjs +2 -2
- package/prisma-client/runtime/binary.mjs.map +2 -2
- package/prisma-client/runtime/client.d.mts +113 -108
- package/prisma-client/runtime/client.d.ts +113 -108
- package/prisma-client/runtime/client.js +31 -31
- package/prisma-client/runtime/client.js.map +4 -4
- package/prisma-client/runtime/client.mjs +31 -31
- package/prisma-client/runtime/client.mjs.map +4 -4
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge-esm.js.map +3 -3
- package/prisma-client/runtime/edge.d.ts +113 -108
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/edge.js.map +3 -3
- package/prisma-client/runtime/library.d.mts +113 -108
- package/prisma-client/runtime/library.d.ts +113 -108
- package/prisma-client/runtime/library.js +2 -2
- package/prisma-client/runtime/library.js.map +2 -2
- package/prisma-client/runtime/library.mjs +2 -2
- package/prisma-client/runtime/library.mjs.map +2 -2
- package/prisma-client/runtime/react-native.d.ts +113 -108
- package/prisma-client/runtime/react-native.js +10 -10
- package/prisma-client/runtime/react-native.js.map +3 -3
- package/prisma-client/scripts/default-index.js +3 -3
|
@@ -1140,114 +1140,9 @@ declare interface EnvValue {
|
|
|
1140
1140
|
|
|
1141
1141
|
export declare type Equals<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? 1 : 0;
|
|
1142
1142
|
|
|
1143
|
-
declare type Error_2 = {
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
} | {
|
|
1147
|
-
kind: 'UnsupportedNativeDataType';
|
|
1148
|
-
type: string;
|
|
1149
|
-
} | {
|
|
1150
|
-
kind: 'InvalidIsolationLevel';
|
|
1151
|
-
level: string;
|
|
1152
|
-
} | {
|
|
1153
|
-
kind: 'LengthMismatch';
|
|
1154
|
-
column?: string;
|
|
1155
|
-
} | {
|
|
1156
|
-
kind: 'UniqueConstraintViolation';
|
|
1157
|
-
constraint?: {
|
|
1158
|
-
fields: string[];
|
|
1159
|
-
} | {
|
|
1160
|
-
index: string;
|
|
1161
|
-
} | {
|
|
1162
|
-
foreignKey: {};
|
|
1163
|
-
};
|
|
1164
|
-
} | {
|
|
1165
|
-
kind: 'NullConstraintViolation';
|
|
1166
|
-
constraint?: {
|
|
1167
|
-
fields: string[];
|
|
1168
|
-
} | {
|
|
1169
|
-
index: string;
|
|
1170
|
-
} | {
|
|
1171
|
-
foreignKey: {};
|
|
1172
|
-
};
|
|
1173
|
-
} | {
|
|
1174
|
-
kind: 'ForeignKeyConstraintViolation';
|
|
1175
|
-
constraint?: {
|
|
1176
|
-
fields: string[];
|
|
1177
|
-
} | {
|
|
1178
|
-
index: string;
|
|
1179
|
-
} | {
|
|
1180
|
-
foreignKey: {};
|
|
1181
|
-
};
|
|
1182
|
-
} | {
|
|
1183
|
-
kind: 'DatabaseNotReachable';
|
|
1184
|
-
host?: string;
|
|
1185
|
-
port?: number;
|
|
1186
|
-
} | {
|
|
1187
|
-
kind: 'DatabaseDoesNotExist';
|
|
1188
|
-
db?: string;
|
|
1189
|
-
} | {
|
|
1190
|
-
kind: 'DatabaseAlreadyExists';
|
|
1191
|
-
db?: string;
|
|
1192
|
-
} | {
|
|
1193
|
-
kind: 'DatabaseAccessDenied';
|
|
1194
|
-
db?: string;
|
|
1195
|
-
} | {
|
|
1196
|
-
kind: 'ConnectionClosed';
|
|
1197
|
-
} | {
|
|
1198
|
-
kind: 'TlsConnectionError';
|
|
1199
|
-
reason: string;
|
|
1200
|
-
} | {
|
|
1201
|
-
kind: 'AuthenticationFailed';
|
|
1202
|
-
user?: string;
|
|
1203
|
-
} | {
|
|
1204
|
-
kind: 'TransactionWriteConflict';
|
|
1205
|
-
} | {
|
|
1206
|
-
kind: 'TableDoesNotExist';
|
|
1207
|
-
table?: string;
|
|
1208
|
-
} | {
|
|
1209
|
-
kind: 'ColumnNotFound';
|
|
1210
|
-
column?: string;
|
|
1211
|
-
} | {
|
|
1212
|
-
kind: 'TooManyConnections';
|
|
1213
|
-
cause: string;
|
|
1214
|
-
} | {
|
|
1215
|
-
kind: 'ValueOutOfRange';
|
|
1216
|
-
cause: string;
|
|
1217
|
-
} | {
|
|
1218
|
-
kind: 'MissingFullTextSearchIndex';
|
|
1219
|
-
} | {
|
|
1220
|
-
kind: 'SocketTimeout';
|
|
1221
|
-
} | {
|
|
1222
|
-
kind: 'InconsistentColumnData';
|
|
1223
|
-
cause: string;
|
|
1224
|
-
} | {
|
|
1225
|
-
kind: 'TransactionAlreadyClosed';
|
|
1226
|
-
cause: string;
|
|
1227
|
-
} | {
|
|
1228
|
-
kind: 'postgres';
|
|
1229
|
-
code: string;
|
|
1230
|
-
severity: string;
|
|
1231
|
-
message: string;
|
|
1232
|
-
detail: string | undefined;
|
|
1233
|
-
column: string | undefined;
|
|
1234
|
-
hint: string | undefined;
|
|
1235
|
-
} | {
|
|
1236
|
-
kind: 'mysql';
|
|
1237
|
-
code: number;
|
|
1238
|
-
message: string;
|
|
1239
|
-
state: string;
|
|
1240
|
-
} | {
|
|
1241
|
-
kind: 'sqlite';
|
|
1242
|
-
/**
|
|
1243
|
-
* Sqlite extended error code: https://www.sqlite.org/rescode.html
|
|
1244
|
-
*/
|
|
1245
|
-
extendedCode: number;
|
|
1246
|
-
message: string;
|
|
1247
|
-
} | {
|
|
1248
|
-
kind: 'mssql';
|
|
1249
|
-
code: number;
|
|
1250
|
-
message: string;
|
|
1143
|
+
declare type Error_2 = MappedError & {
|
|
1144
|
+
originalCode?: string;
|
|
1145
|
+
originalMessage?: string;
|
|
1251
1146
|
};
|
|
1252
1147
|
|
|
1253
1148
|
declare type ErrorCapturingFunction<T> = T extends (...args: infer A) => Promise<infer R> ? (...args: A) => Promise<Result_4<ErrorCapturingInterface<R>>> : T extends (...args: infer A) => infer R ? (...args: A) => Result_4<ErrorCapturingInterface<R>> : T;
|
|
@@ -2183,6 +2078,116 @@ export declare function makeStrictEnum<T extends Record<PropertyKey, string | nu
|
|
|
2183
2078
|
|
|
2184
2079
|
export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
|
|
2185
2080
|
|
|
2081
|
+
declare type MappedError = {
|
|
2082
|
+
kind: 'GenericJs';
|
|
2083
|
+
id: number;
|
|
2084
|
+
} | {
|
|
2085
|
+
kind: 'UnsupportedNativeDataType';
|
|
2086
|
+
type: string;
|
|
2087
|
+
} | {
|
|
2088
|
+
kind: 'InvalidIsolationLevel';
|
|
2089
|
+
level: string;
|
|
2090
|
+
} | {
|
|
2091
|
+
kind: 'LengthMismatch';
|
|
2092
|
+
column?: string;
|
|
2093
|
+
} | {
|
|
2094
|
+
kind: 'UniqueConstraintViolation';
|
|
2095
|
+
constraint?: {
|
|
2096
|
+
fields: string[];
|
|
2097
|
+
} | {
|
|
2098
|
+
index: string;
|
|
2099
|
+
} | {
|
|
2100
|
+
foreignKey: {};
|
|
2101
|
+
};
|
|
2102
|
+
} | {
|
|
2103
|
+
kind: 'NullConstraintViolation';
|
|
2104
|
+
constraint?: {
|
|
2105
|
+
fields: string[];
|
|
2106
|
+
} | {
|
|
2107
|
+
index: string;
|
|
2108
|
+
} | {
|
|
2109
|
+
foreignKey: {};
|
|
2110
|
+
};
|
|
2111
|
+
} | {
|
|
2112
|
+
kind: 'ForeignKeyConstraintViolation';
|
|
2113
|
+
constraint?: {
|
|
2114
|
+
fields: string[];
|
|
2115
|
+
} | {
|
|
2116
|
+
index: string;
|
|
2117
|
+
} | {
|
|
2118
|
+
foreignKey: {};
|
|
2119
|
+
};
|
|
2120
|
+
} | {
|
|
2121
|
+
kind: 'DatabaseNotReachable';
|
|
2122
|
+
host?: string;
|
|
2123
|
+
port?: number;
|
|
2124
|
+
} | {
|
|
2125
|
+
kind: 'DatabaseDoesNotExist';
|
|
2126
|
+
db?: string;
|
|
2127
|
+
} | {
|
|
2128
|
+
kind: 'DatabaseAlreadyExists';
|
|
2129
|
+
db?: string;
|
|
2130
|
+
} | {
|
|
2131
|
+
kind: 'DatabaseAccessDenied';
|
|
2132
|
+
db?: string;
|
|
2133
|
+
} | {
|
|
2134
|
+
kind: 'ConnectionClosed';
|
|
2135
|
+
} | {
|
|
2136
|
+
kind: 'TlsConnectionError';
|
|
2137
|
+
reason: string;
|
|
2138
|
+
} | {
|
|
2139
|
+
kind: 'AuthenticationFailed';
|
|
2140
|
+
user?: string;
|
|
2141
|
+
} | {
|
|
2142
|
+
kind: 'TransactionWriteConflict';
|
|
2143
|
+
} | {
|
|
2144
|
+
kind: 'TableDoesNotExist';
|
|
2145
|
+
table?: string;
|
|
2146
|
+
} | {
|
|
2147
|
+
kind: 'ColumnNotFound';
|
|
2148
|
+
column?: string;
|
|
2149
|
+
} | {
|
|
2150
|
+
kind: 'TooManyConnections';
|
|
2151
|
+
cause: string;
|
|
2152
|
+
} | {
|
|
2153
|
+
kind: 'ValueOutOfRange';
|
|
2154
|
+
cause: string;
|
|
2155
|
+
} | {
|
|
2156
|
+
kind: 'MissingFullTextSearchIndex';
|
|
2157
|
+
} | {
|
|
2158
|
+
kind: 'SocketTimeout';
|
|
2159
|
+
} | {
|
|
2160
|
+
kind: 'InconsistentColumnData';
|
|
2161
|
+
cause: string;
|
|
2162
|
+
} | {
|
|
2163
|
+
kind: 'TransactionAlreadyClosed';
|
|
2164
|
+
cause: string;
|
|
2165
|
+
} | {
|
|
2166
|
+
kind: 'postgres';
|
|
2167
|
+
code: string;
|
|
2168
|
+
severity: string;
|
|
2169
|
+
message: string;
|
|
2170
|
+
detail: string | undefined;
|
|
2171
|
+
column: string | undefined;
|
|
2172
|
+
hint: string | undefined;
|
|
2173
|
+
} | {
|
|
2174
|
+
kind: 'mysql';
|
|
2175
|
+
code: number;
|
|
2176
|
+
message: string;
|
|
2177
|
+
state: string;
|
|
2178
|
+
} | {
|
|
2179
|
+
kind: 'sqlite';
|
|
2180
|
+
/**
|
|
2181
|
+
* Sqlite extended error code: https://www.sqlite.org/rescode.html
|
|
2182
|
+
*/
|
|
2183
|
+
extendedCode: number;
|
|
2184
|
+
message: string;
|
|
2185
|
+
} | {
|
|
2186
|
+
kind: 'mssql';
|
|
2187
|
+
code: number;
|
|
2188
|
+
message: string;
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2186
2191
|
declare type Mappings = ReadonlyDeep_2<{
|
|
2187
2192
|
modelOperations: ModelMapping[];
|
|
2188
2193
|
otherOperations: {
|