prisma 6.6.0-dev.4 → 6.6.0-dev.41
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 +1070 -1175
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/package.json +16 -15
- package/preinstall/index.js +4 -4
- package/prisma-client/generator-build/index.js +140 -146
- package/prisma-client/package.json +8 -8
- package/prisma-client/runtime/binary.js +120 -120
- package/prisma-client/runtime/client.d.ts +41 -37
- package/prisma-client/runtime/client.js +38 -38
- package/prisma-client/runtime/edge-esm.js +18 -18
- package/prisma-client/runtime/edge.js +18 -18
- package/prisma-client/runtime/library.d.ts +41 -37
- package/prisma-client/runtime/library.js +56 -56
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/react-native.d.ts +41 -37
- package/prisma-client/runtime/react-native.js +23 -23
- package/prisma-client/scripts/default-index.js +3 -3
@@ -123,7 +123,7 @@ declare type BatchQueryOptionsCbArgs = {
|
|
123
123
|
};
|
124
124
|
|
125
125
|
declare type BatchTransactionOptions = {
|
126
|
-
isolationLevel?:
|
126
|
+
isolationLevel?: IsolationLevel;
|
127
127
|
};
|
128
128
|
|
129
129
|
declare interface BinaryTargetsEnvValue {
|
@@ -948,23 +948,15 @@ export declare namespace DMMF {
|
|
948
948
|
|
949
949
|
export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
|
950
950
|
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
/**
|
957
|
-
* Start new transaction.
|
958
|
-
*/
|
959
|
-
transactionContext(): Promise<TransactionContext>;
|
960
|
-
/**
|
961
|
-
* Optional method that returns extra connection info
|
962
|
-
*/
|
963
|
-
getConnectionInfo?(): ConnectionInfo;
|
951
|
+
/**
|
952
|
+
* A generic driver adapter factory that allows the user to instantiate a
|
953
|
+
* driver adapter. The query and result types are specific to the adapter.
|
954
|
+
*/
|
955
|
+
declare interface DriverAdapterFactory<Query, Result> extends AdapterInfo {
|
964
956
|
/**
|
965
|
-
*
|
957
|
+
* Instantiate a driver adapter.
|
966
958
|
*/
|
967
|
-
|
959
|
+
connect(): Promise<Queryable<Query, Result>>;
|
968
960
|
}
|
969
961
|
|
970
962
|
/** Client */
|
@@ -1161,7 +1153,7 @@ declare interface EngineConfig {
|
|
1161
1153
|
* rather than Prisma's Rust drivers.
|
1162
1154
|
* @remarks only used by LibraryEngine.ts
|
1163
1155
|
*/
|
1164
|
-
adapter?:
|
1156
|
+
adapter?: SqlDriverAdapterFactory;
|
1165
1157
|
/**
|
1166
1158
|
* The contents of the schema encoded into a string
|
1167
1159
|
* @remarks only used by DataProxyEngine.ts
|
@@ -1268,6 +1260,9 @@ declare type Error_2 = {
|
|
1268
1260
|
} | {
|
1269
1261
|
kind: 'UnsupportedNativeDataType';
|
1270
1262
|
type: string;
|
1263
|
+
} | {
|
1264
|
+
kind: 'InvalidIsolationLevel';
|
1265
|
+
level: string;
|
1271
1266
|
} | {
|
1272
1267
|
kind: 'postgres';
|
1273
1268
|
code: string;
|
@@ -1296,7 +1291,7 @@ declare type ErrorCapturingInterface<T> = {
|
|
1296
1291
|
[K in keyof T]: ErrorCapturingFunction<T[K]>;
|
1297
1292
|
};
|
1298
1293
|
|
1299
|
-
declare interface
|
1294
|
+
declare interface ErrorCapturingSqlDriverAdapter extends ErrorCapturingInterface<SqlDriverAdapter> {
|
1300
1295
|
readonly errorRegistry: ErrorRegistry;
|
1301
1296
|
}
|
1302
1297
|
|
@@ -1950,13 +1945,7 @@ declare type InternalRequestParams = {
|
|
1950
1945
|
customDataProxyFetch?: CustomDataProxyFetch;
|
1951
1946
|
} & Omit<QueryMiddlewareParams, 'runInTransaction'>;
|
1952
1947
|
|
1953
|
-
declare
|
1954
|
-
ReadUncommitted = "ReadUncommitted",
|
1955
|
-
ReadCommitted = "ReadCommitted",
|
1956
|
-
RepeatableRead = "RepeatableRead",
|
1957
|
-
Snapshot = "Snapshot",
|
1958
|
-
Serializable = "Serializable"
|
1959
|
-
}
|
1948
|
+
declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
|
1960
1949
|
|
1961
1950
|
declare function isSkip(value: unknown): value is Skip;
|
1962
1951
|
|
@@ -2002,7 +1991,7 @@ export declare interface JsonArray extends Array<JsonValue> {
|
|
2002
1991
|
export declare type JsonBatchQuery = {
|
2003
1992
|
batch: JsonQuery[];
|
2004
1993
|
transaction?: {
|
2005
|
-
isolationLevel?:
|
1994
|
+
isolationLevel?: IsolationLevel;
|
2006
1995
|
};
|
2007
1996
|
};
|
2008
1997
|
|
@@ -2416,7 +2405,7 @@ export declare type PrismaClientOptions = {
|
|
2416
2405
|
/**
|
2417
2406
|
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale.
|
2418
2407
|
*/
|
2419
|
-
adapter?:
|
2408
|
+
adapter?: SqlDriverAdapterFactory | null;
|
2420
2409
|
/**
|
2421
2410
|
* Overwrites the datasource url from your schema.prisma file
|
2422
2411
|
*/
|
@@ -2609,7 +2598,7 @@ declare type QueryCompilerOptions = {
|
|
2609
2598
|
declare type QueryEngineBatchGraphQLRequest = {
|
2610
2599
|
batch: QueryEngineRequest[];
|
2611
2600
|
transaction?: boolean;
|
2612
|
-
isolationLevel?:
|
2601
|
+
isolationLevel?: IsolationLevel;
|
2613
2602
|
};
|
2614
2603
|
|
2615
2604
|
declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery;
|
@@ -2627,7 +2616,7 @@ declare type QueryEngineConfig = {
|
|
2627
2616
|
};
|
2628
2617
|
|
2629
2618
|
declare interface QueryEngineConstructor {
|
2630
|
-
new (config: QueryEngineConfig, logger: (log: string) => void, adapter?:
|
2619
|
+
new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingSqlDriverAdapter): QueryEngineInstance;
|
2631
2620
|
}
|
2632
2621
|
|
2633
2622
|
declare type QueryEngineInstance = {
|
@@ -3217,6 +3206,29 @@ export declare class Sql {
|
|
3217
3206
|
};
|
3218
3207
|
}
|
3219
3208
|
|
3209
|
+
declare interface SqlDriverAdapter extends SqlQueryable {
|
3210
|
+
/**
|
3211
|
+
* Execute multiple SQL statements separated by semicolon.
|
3212
|
+
*/
|
3213
|
+
executeScript(script: string): Promise<void>;
|
3214
|
+
/**
|
3215
|
+
* Start new transaction.
|
3216
|
+
*/
|
3217
|
+
startTransaction(isolationLevel?: IsolationLevel): Promise<Transaction>;
|
3218
|
+
/**
|
3219
|
+
* Optional method that returns extra connection info
|
3220
|
+
*/
|
3221
|
+
getConnectionInfo?(): ConnectionInfo;
|
3222
|
+
/**
|
3223
|
+
* Dispose of the connection and release any resources.
|
3224
|
+
*/
|
3225
|
+
dispose(): Promise<void>;
|
3226
|
+
}
|
3227
|
+
|
3228
|
+
export declare interface SqlDriverAdapterFactory extends DriverAdapterFactory<SqlQuery, SqlResultSet> {
|
3229
|
+
connect(): Promise<SqlDriverAdapter>;
|
3230
|
+
}
|
3231
|
+
|
3220
3232
|
declare type SqlQuery = {
|
3221
3233
|
sql: string;
|
3222
3234
|
args: Array<unknown>;
|
@@ -3325,20 +3337,12 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
|
|
3325
3337
|
|
3326
3338
|
declare namespace Transaction_2 {
|
3327
3339
|
export {
|
3328
|
-
IsolationLevel,
|
3329
3340
|
TransactionOptions_2 as Options,
|
3330
3341
|
InteractiveTransactionInfo,
|
3331
3342
|
TransactionHeaders
|
3332
3343
|
}
|
3333
3344
|
}
|
3334
3345
|
|
3335
|
-
declare interface TransactionContext extends AdapterInfo, SqlQueryable {
|
3336
|
-
/**
|
3337
|
-
* Start new transaction.
|
3338
|
-
*/
|
3339
|
-
startTransaction(): Promise<Transaction>;
|
3340
|
-
}
|
3341
|
-
|
3342
3346
|
declare type TransactionHeaders = {
|
3343
3347
|
traceparent?: string;
|
3344
3348
|
};
|