prisma 5.20.0-dev.20 → 5.20.0-dev.21
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 +3 -3
- package/package.json +10 -10
- package/prisma-client/generator-build/index.js +1 -1
- package/prisma-client/package.json +1 -1
- package/prisma-client/runtime/binary.js +64 -64
- package/prisma-client/runtime/edge-esm.js +15 -15
- package/prisma-client/runtime/edge.js +15 -15
- package/prisma-client/runtime/library.d.ts +25 -6
- package/prisma-client/runtime/library.js +42 -42
- package/prisma-client/runtime/react-native.d.ts +25 -6
- package/prisma-client/runtime/react-native.js +24 -24
- package/prisma-client/scripts/default-index.js +1 -1
|
@@ -121,6 +121,13 @@ declare interface BinaryTargetsEnvValue {
|
|
|
121
121
|
native?: boolean;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
declare interface BoundDriverAdapter extends Queryable, WithTransaction {
|
|
125
|
+
/**
|
|
126
|
+
* Optional method that returns extra connection info
|
|
127
|
+
*/
|
|
128
|
+
getConnectionInfo?(): Result_4<ConnectionInfo>;
|
|
129
|
+
}
|
|
130
|
+
|
|
124
131
|
export declare type Call<F extends Fn, P> = (F & {
|
|
125
132
|
params: P;
|
|
126
133
|
})['returns'];
|
|
@@ -868,11 +875,7 @@ export declare namespace DMMF {
|
|
|
868
875
|
}
|
|
869
876
|
}
|
|
870
877
|
|
|
871
|
-
export declare interface DriverAdapter extends Queryable {
|
|
872
|
-
/**
|
|
873
|
-
* Starts new transaction.
|
|
874
|
-
*/
|
|
875
|
-
transactionContext(): Promise<Result_4<TransactionContext>>;
|
|
878
|
+
export declare interface DriverAdapter extends Queryable, WithTransactionDeprecated, WithTransaction {
|
|
876
879
|
/**
|
|
877
880
|
* Optional method that returns extra connection info
|
|
878
881
|
*/
|
|
@@ -1184,7 +1187,7 @@ declare type Error_2 = {
|
|
|
1184
1187
|
message: string;
|
|
1185
1188
|
};
|
|
1186
1189
|
|
|
1187
|
-
declare interface ErrorCapturingDriverAdapter extends
|
|
1190
|
+
declare interface ErrorCapturingDriverAdapter extends BoundDriverAdapter {
|
|
1188
1191
|
readonly errorRegistry: ErrorRegistry;
|
|
1189
1192
|
}
|
|
1190
1193
|
|
|
@@ -3375,4 +3378,20 @@ declare type WasmLoadingConfig = {
|
|
|
3375
3378
|
getQueryEngineWasmModule: () => Promise<unknown>;
|
|
3376
3379
|
};
|
|
3377
3380
|
|
|
3381
|
+
declare interface WithTransaction extends Queryable {
|
|
3382
|
+
/**
|
|
3383
|
+
* Starts new transaction.
|
|
3384
|
+
* If `startTransaction` is not defined, `transactionContext` must be defined.
|
|
3385
|
+
*/
|
|
3386
|
+
transactionContext?(): Promise<Result_4<TransactionContext>>;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
declare interface WithTransactionDeprecated extends Queryable {
|
|
3390
|
+
/**
|
|
3391
|
+
* Starts new transaction.
|
|
3392
|
+
* @deprecated Use `transactionContext` instead.
|
|
3393
|
+
*/
|
|
3394
|
+
startTransaction?(): Promise<Result_4<Transaction>>;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3378
3397
|
export { }
|